Gentoo Archives: gentoo-embedded

From: Jean-Claude Gervais <jc.gervais@×××××××××.ca>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] C compiler cannot create executables
Date: Tue, 06 Nov 2007 17:28:04
Message-Id: 1194370017.22183.8.camel@mercury.sprymusic
In Reply to: Re: [gentoo-embedded] C compiler cannot create executables by Ned Ludd
1 Same problem, different environment:
2
3 I produced a cross-development toolkit by using the following command:
4
5 .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
6 SYSROOT="/usr/arm-softfloat-linux-uclibc"
7
8 UCLIBC_CPU="ARM920T" USE="-*" crossdev -v -S --binutils 2.17 --gcc
9 3.4.6-r2 --kernel 2.6.19-r2 --libc 0.9.28.3 --ex-gdb --target
10 arm-softfloat-linux-uclibc
11 .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
12
13 This went well; all the required tools were built.
14
15 But now when I try to use the (modified) xmerge script, I get the
16 "C compiler cannot create executables" error
17
18 Here is my modified xmerge script:
19 .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
20 #!/bin/bash
21 SYSROOT="/usr/arm-softfloat-linux-uclibc"
22 export SYSROOT
23 CBUILD=$(portageq envvar CHOST)
24 PORTAGE_CONFIGROOT="$SYSROOT"
25 if [[ "$1" == "--root" ]] ; then
26 ROOT="$2"
27 shift 2
28 else
29 ROOT="$SYSROOT"
30 fi
31 export CBUILD PORTAGE_CONFIGROOT ROOT
32
33 emerge $*
34 .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
35
36 My questions are these;
37
38 Should I have other variables set beforehand? Could that explain the
39 problem?
40
41 Why does the compiler seem to work when invoked to retrieve its version
42 but not to actually compile?
43
44 Thanks.
45
46
47
48 PS - Here's the config log:
49 .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
50
51 This file contains any messages produced by compilers while
52 running configure, to aid debugging if configure makes a mistake.
53
54 It was created by configure, which was
55 generated by GNU Autoconf 2.52.20061216. Invocation command line was
56
57 $ /var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/configure
58 --prefix=/usr --host=i686-softfloat-linux-uclibc --mandir=/usr/share/man
59 --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
60 --localstatedir=/var/lib --libdir=/lib
61 --with-terminfo-dirs=/etc/terminfo:/usr/share/terminfo --disable-termcap
62 --with-shared --with-rcs-ids --enable-symlinks --enable-const
63 --with-chtype=long --with-mmask-t=long --with-manpage-format=normal
64 --without-debug --without-gpm --without-trace --build=i686-pc-linux-gnu
65
66 ## ---------- ##
67 ## Platform. ##
68 ## ---------- ##
69
70 hostname = jeancg-wks1
71 uname -m = i686
72 uname -r = 2.6.22-gentoo-r5
73 uname -s = Linux
74 uname -v = #14 SMP Mon Oct 29 17:04:28 EDT 2007
75
76 /usr/bin/uname -p = Intel(R) Pentium(R) 4 CPU 2.40GHz
77 /bin/uname -X = unknown
78
79 /bin/arch = i686
80 /usr/bin/arch -k = i686
81 /usr/convex/getsysinfo = unknown
82 hostinfo = unknown
83 /bin/machine = unknown
84 /usr/bin/oslevel = unknown
85 /bin/universe = unknown
86
87 PATH = /sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:
88
89 ## ------------ ##
90 ## Core tests. ##
91 ## ------------ ##
92
93 configure:1080: PATH=".;."; conftest.sh
94 /var/tmp/portage/sys-libs/ncurses-5.6-r1/work/ncurses-5.6/configure:
95 line 1081: conftest.sh: command not found
96 configure:1083: $? = 127
97 configure:1096: checking for egrep
98 configure:1106: result: grep -E
99 configure:1120: result: Configuring NCURSES 5.6 ABI 5 (Tue Nov 6
100 12:17:54 EST 2007)
101 configure:1225: checking build system type
102 configure:1243: result: i686-pc-linux-gnu
103 configure:1250: checking host system type
104 configure:1264: result: i686-softfloat-linux-uclibc
105 configure:1272: checking target system type
106 configure:1286: result: i686-softfloat-linux-uclibc
107 configure:1317: result: Configuring for linux-uclibc
108 configure:1341: checking for prefix
109 configure:1353: result: /usr
110 configure:1394: checking for i686-softfloat-linux-uclibc-gcc
111 configure:1420: result: no
112 configure:1429: checking for gcc
113 configure:1444: found /usr/bin/gcc
114 configure:1452: result: gcc
115 configure:1680: checking for C compiler version
116 configure:1683: gcc --version </dev/null >&5
117 gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.0.1)
118 Copyright (C) 2006 Free Software Foundation, Inc.
119 This is free software; see the source for copying conditions. There is
120 NO
121 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
122 PURPOSE.
123
124 configure:1686: $? = 0
125 configure:1688: gcc -v </dev/null >&5
126 Using built-in specs.
127 Target: i686-pc-linux-gnu
128 Configured
129 with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure
130 --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2
131 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include
132 --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2
133 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man
134 --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info
135 --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g
136 ++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu
137 --disable-altivec --enable-nls --without-included-gettext
138 --with-system-zlib --disable-checking --disable-werror
139 --enable-secureplt --disable-libunwind-exceptions --disable-multilib
140 --enable-libmudflap --disable-libssp --disable-libgcj --with-arch=i686
141 --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix
142 --enable-__cxa_atexit --enable-clocale=gnu
143 Thread model: posix
144 gcc version 4.1.2 (Gentoo 4.1.2 p1.0.1)
145 configure:1691: $? = 0
146 configure:1693: gcc -V </dev/null >&5
147 gcc: '-V' option must have argument
148 configure:1696: $? = 1
149 configure:1716: checking for C compiler default output
150 configure:1719: gcc -Os -pipe -mfloat-abi=softfp -mfpu=vfp conftest.c
151 >&5
152 cc1: error: unrecognized command line option "-mfloat-abi=softfp"
153 cc1: error: unrecognized command line option "-mfpu=vfp"
154 configure:1722: $? = 1
155 configure: failed program was:
156 #line 1700 "configure"
157 #include "confdefs.h"
158
159 int
160 main ()
161 {
162
163 ;
164 return 0;
165 }
166 configure:1745: error: C compiler cannot create executables
167
168 ## ----------------- ##
169 ## Cache variables. ##
170 ## ----------------- ##
171
172 ac_cv_build=i686-pc-linux-gnu
173 ac_cv_build_alias=i686-pc-linux-gnu
174 ac_cv_env_CC_set=
175 ac_cv_env_CC_value=
176 ac_cv_env_CFLAGS_set=set
177 ac_cv_env_CFLAGS_value='-Os -pipe -mfloat-abi=softfp -mfpu=vfp'
178 ac_cv_env_CPPFLAGS_set=
179 ac_cv_env_CPPFLAGS_value=
180 ac_cv_env_CPP_set=
181 ac_cv_env_CPP_value=
182 ac_cv_env_CXXCPP_set=
183 ac_cv_env_CXXCPP_value=
184 ac_cv_env_CXXFLAGS_set=set
185 ac_cv_env_CXXFLAGS_value='-Os -pipe -mfloat-abi=softfp -mfpu=vfp'
186 ac_cv_env_CXX_set=
187 ac_cv_env_CXX_value=
188 ac_cv_env_LDFLAGS_set=
189 ac_cv_env_LDFLAGS_value=
190 ac_cv_env_build_alias_set=set
191 ac_cv_env_build_alias_value=i686-pc-linux-gnu
192 ac_cv_env_host_alias_set=set
193 ac_cv_env_host_alias_value=i686-softfloat-linux-uclibc
194 ac_cv_env_target_alias_set=
195 ac_cv_env_target_alias_value=
196 ac_cv_host=i686-softfloat-linux-uclibc
197 ac_cv_host_alias=i686-softfloat-linux-uclibc
198 ac_cv_prog_ac_ct_CC=gcc
199 ac_cv_prog_egrep='grep -E'
200 ac_cv_target=i686-softfloat-linux-uclibc
201 ac_cv_target_alias=i686-softfloat-linux-uclibc
202 cf_cv_abi_version=5
203 cf_cv_rel_version=5.6
204 cf_cv_system_name=linux-uclibc
205 cf_cv_timestamp='Tue Nov 6 12:17:54 EST 2007'
206
207 ## ------------ ##
208 ## confdefs.h. ##
209 ## ------------ ##
210
211 #define SYSTEM_NAME "linux-uclibc"
212
213
214 configure: exit 77
215
216
217 --
218 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] C compiler cannot create executables Jason <gentoo@××××××××××.net>