1 |
On Wednesday 21 April 2004 11:06, Andy Dustman wrote: |
2 |
> On Wed, 2004-04-21 at 09:53, Kevin wrote: |
3 |
> > checking for C compiler default output... configure: error: C |
4 |
> > compiler cannot create executables |
5 |
> > See `config.log' for more details. |
6 |
> |
7 |
> That might be useful information. (And you provide this later) |
8 |
> |
9 |
> > # These settings were set by the catalyst build script that |
10 |
> > automatically built this stage |
11 |
> > CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe |
12 |
> > -mcpu=pentium4" |
13 |
> |
14 |
> -march=pentium4 implies -mcpu=pentium4, so you don't need the later. |
15 |
> However, AFAIK, -march=pentium4 still causes some bad code to be |
16 |
> generated for SSE2 instructions, so what you really need is |
17 |
> -march=pentium3 -mcpu=pentium4 (use pentium3 instruction set, |
18 |
> optimize for pentium4). |
19 |
|
20 |
These changes have no effect on the outcome for me. I don't think it's |
21 |
a CFLAGS issue because if I tar -zxvf the findutils tarball myself, |
22 |
then ./configure it myself (using the same command as that which is |
23 |
listed in the config.log file from previous failed attempts at emerge |
24 |
findutils, located |
25 |
in /var/tmp/portage/findutils-4.1.20-r1/work/findutils-4.1.20/config.log), |
26 |
I get a successful configure. And yet, emerge findutils still fails at |
27 |
configure. |
28 |
|
29 |
The difference between what's happening when I emerge findutils and when |
30 |
I ./configure it myself is here (summarized to one segment each below |
31 |
these portions): |
32 |
|
33 |
Portions of config.log from a manual run of ./configure from the command |
34 |
line: |
35 |
=============================================================== |
36 |
This file contains any messages produced by compilers while |
37 |
running configure, to aid debugging if configure makes a mistake. |
38 |
|
39 |
It was created by configure, which was |
40 |
generated by GNU Autoconf 2.57. Invocation command line was |
41 |
|
42 |
$ ./configure --prefix=/usr --host=i686-pc-linux-gnu |
43 |
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/sha |
44 |
re --sysconfdir=/etc --localstatedir=/var/lib --enable-nls --with-afs |
45 |
|
46 |
## --------- ## |
47 |
## Platform. ## |
48 |
## --------- ## |
49 |
|
50 |
hostname = cdimage |
51 |
uname -m = i686 |
52 |
uname -r = 2.4.21-gss |
53 |
uname -s = Linux |
54 |
uname -v = #1 Wed Jul 23 22:49:43 Local time zone must be set--see zic |
55 |
manu |
56 |
|
57 |
/usr/bin/uname -p = Intel(R) Xeon(TM) CPU 2.40GHz |
58 |
/bin/uname -X = unknown |
59 |
|
60 |
/bin/arch = i686 |
61 |
/usr/bin/arch -k = unknown |
62 |
/usr/convex/getsysinfo = unknown |
63 |
hostinfo = unknown |
64 |
/bin/machine = unknown |
65 |
/usr/bin/oslevel = unknown |
66 |
/bin/universe = unknown |
67 |
|
68 |
PATH: /bin |
69 |
PATH: /sbin |
70 |
PATH: /usr/bin |
71 |
PATH: /usr/sbin |
72 |
PATH: /usr/local/bin |
73 |
PATH: /opt/bin |
74 |
PATH: /usr/afsws/bin |
75 |
PATH: /etc/afs/afsws |
76 |
PATH: /usr/afs/bin |
77 |
PATH: /usr/i686-pc-linux-gnu/gcc-bin/3.3 |
78 |
PATH: /usr/X11R6/bin |
79 |
|
80 |
|
81 |
## ----------- ## |
82 |
## Core tests. ## |
83 |
## ----------- ## |
84 |
|
85 |
configure:1317: checking build system type |
86 |
configure:1335: result: i686-pc-linux-gnu |
87 |
configure:1343: checking host system type |
88 |
configure:1357: result: i686-pc-linux-gnu |
89 |
configure:1381: checking for a BSD-compatible install |
90 |
configure:1435: result: /bin/install -c |
91 |
configure:1446: checking whether build environment is sane |
92 |
configure:1489: result: yes |
93 |
configure:1522: checking for gawk |
94 |
configure:1538: found /bin/gawk |
95 |
configure:1548: result: gawk |
96 |
configure:1558: checking whether make sets $(MAKE) |
97 |
configure:1578: result: yes |
98 |
configure:1657: checking for i686-pc-linux-gnu-strip |
99 |
configure:1686: result: no |
100 |
configure:1695: checking for strip |
101 |
configure:1711: found /usr/bin/strip |
102 |
configure:1722: result: strip |
103 |
configure:1761: checking for i686-pc-linux-gnu-gcc |
104 |
configure:1787: result: gcc |
105 |
configure:2069: checking for C compiler version |
106 |
configure:2072: gcc --version </dev/null >&5 |
107 |
gcc (GCC) 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) |
108 |
Copyright (C) 2003 Free Software Foundation, Inc. |
109 |
This is free software; see the source for copying conditions. There is |
110 |
NO |
111 |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR |
112 |
PURPOSE. |
113 |
|
114 |
configure:2075: $? = 0 |
115 |
configure:2077: gcc -v </dev/null >&5 |
116 |
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs |
117 |
Configured with: /var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/configure |
118 |
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-b |
119 |
in/3.3 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include |
120 |
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 -- |
121 |
mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man |
122 |
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info |
123 |
--enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu |
124 |
--with-system-zlib --enable-languages=c,c++,f77,objc,java --enable-t |
125 |
hreads=posix --enable-long-long --disable-checking --enable-cstdio=stdio |
126 |
--enable-clocale=generic --enable-__cxa_atexit --e |
127 |
nable-version-specific-runtime-libs |
128 |
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3 |
129 |
--with-l |
130 |
ocal-prefix=/usr/local --enable-shared --enable-nls |
131 |
--without-included-gettext --x-includes=/usr/X11R6/include --x-librarie |
132 |
s=/usr/X11R6/lib --enable-interpreter --enable-java-awt=xlib --with-x |
133 |
--disable-multilib |
134 |
Thread model: posix |
135 |
gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) |
136 |
configure:2080: $? = 0 |
137 |
configure:2082: gcc -V </dev/null >&5 |
138 |
gcc: `-V' option must have argument |
139 |
configure:2085: $? = 1 |
140 |
configure:2109: checking for C compiler default output |
141 |
configure:2112: gcc -O3 -march=pentium4 -fomit-frame-pointer -pipe |
142 |
-mcpu=pentium4 conftest.c >&5 |
143 |
configure:2115: $? = 0 |
144 |
configure:2161: result: a.out |
145 |
configure:2166: checking whether the C compiler works |
146 |
configure:2172: ./a.out |
147 |
configure:2175: $? = 0 |
148 |
configure:2192: result: yes |
149 |
configure:2199: checking whether we are cross compiling |
150 |
configure:2201: result: no |
151 |
configure:2204: checking for suffix of executables |
152 |
configure:2206: gcc -o conftest -O3 -march=pentium4 -fomit-frame-pointer |
153 |
-pipe -mcpu=pentium4 conftest.c >&5 |
154 |
configure:2209: $? = 0 |
155 |
configure:2234: result: |
156 |
configure:2240: checking for suffix of object files |
157 |
configure:2262: gcc -c -O3 -march=pentium4 -fomit-frame-pointer -pipe |
158 |
-mcpu=pentium4 conftest.c >&5 |
159 |
configure:2265: $? = 0 |
160 |
configure:2287: result: o |
161 |
configure:2291: checking whether we are using the GNU C compiler |
162 |
configure:2316: gcc -c -O3 -march=pentium4 -fomit-frame-pointer -pipe |
163 |
-mcpu=pentium4 conftest.c >&5 |
164 |
configure:2319: $? = 0 |
165 |
configure:2322: test -s conftest.o |
166 |
configure:2325: $? = 0 |
167 |
configure:2338: result: yes |
168 |
configure:2344: checking whether gcc accepts -g |
169 |
configure:2366: gcc -c -g conftest.c >&5 |
170 |
configure:2369: $? = 0 |
171 |
configure:2372: test -s conftest.o |
172 |
configure:2375: $? = 0 |
173 |
|
174 |
=============================================================== |
175 |
|
176 |
|
177 |
Corresponding portions of config.log from emerge findutils: |
178 |
=============================================================== |
179 |
This file contains any messages produced by compilers while |
180 |
running configure, to aid debugging if configure makes a mistake. |
181 |
|
182 |
It was created by configure, which was |
183 |
generated by GNU Autoconf 2.57. Invocation command line was |
184 |
|
185 |
$ ./configure --prefix=/usr --host=i686-pc-linux-gnu |
186 |
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/sha |
187 |
re --sysconfdir=/etc --localstatedir=/var/lib --enable-nls |
188 |
|
189 |
## --------- ## |
190 |
## Platform. ## |
191 |
## --------- ## |
192 |
|
193 |
hostname = cdimage |
194 |
uname -m = i686 |
195 |
uname -r = 2.4.21-gss |
196 |
uname -s = Linux |
197 |
uname -v = #1 Wed Jul 23 22:49:43 Local time zone must be set--see zic |
198 |
manu |
199 |
|
200 |
/usr/bin/uname -p = Intel(R) Xeon(TM) CPU 2.40GHz |
201 |
/bin/uname -X = unknown |
202 |
|
203 |
/bin/arch = i686 |
204 |
/usr/bin/arch -k = unknown |
205 |
/usr/convex/getsysinfo = unknown |
206 |
hostinfo = unknown |
207 |
/bin/machine = unknown |
208 |
/usr/bin/oslevel = unknown |
209 |
/bin/universe = unknown |
210 |
|
211 |
PATH: /sbin |
212 |
PATH: /usr/sbin |
213 |
PATH: /usr/lib/portage/bin |
214 |
PATH: /bin |
215 |
PATH: /usr/bin |
216 |
PATH: /usr/local/bin |
217 |
PATH: /opt/bin |
218 |
PATH: /usr/afsws/bin |
219 |
PATH: /etc/afs/afsws |
220 |
PATH: /usr/afs/bin |
221 |
PATH: /usr/i686-pc-linux-gnu/gcc-bin/3.3 |
222 |
PATH: /usr/X11R6/bin |
223 |
|
224 |
|
225 |
## ----------- ## |
226 |
## Core tests. ## |
227 |
## ----------- ## |
228 |
|
229 |
configure:1317: checking build system type |
230 |
configure:1335: result: i686-pc-linux-gnu |
231 |
configure:1343: checking host system type |
232 |
configure:1357: result: i686-pc-linux-gnu |
233 |
configure:1381: checking for a BSD-compatible install |
234 |
configure:1435: result: /bin/install -c |
235 |
configure:1446: checking whether build environment is sane |
236 |
configure:1489: result: yes |
237 |
configure:1522: checking for gawk |
238 |
configure:1538: found /bin/gawk |
239 |
configure:1548: result: gawk |
240 |
configure:1558: checking whether make sets $(MAKE) |
241 |
configure:1578: result: yes |
242 |
configure:1657: checking for i686-pc-linux-gnu-strip |
243 |
configure:1686: result: no |
244 |
configure:1695: checking for strip |
245 |
configure:1711: found /usr/bin/strip |
246 |
configure:1722: result: strip |
247 |
configure:1761: checking for i686-pc-linux-gnu-gcc |
248 |
configure:1787: result: gcc |
249 |
configure:2069: checking for C compiler version |
250 |
configure:2072: gcc --version </dev/null >&5 |
251 |
gcc (GCC) 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) |
252 |
Copyright (C) 2003 Free Software Foundation, Inc. |
253 |
This is free software; see the source for copying conditions. There is |
254 |
NO |
255 |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR |
256 |
PURPOSE. |
257 |
|
258 |
configure:2075: $? = 0 |
259 |
configure:2077: gcc -v </dev/null >&5 |
260 |
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs |
261 |
Configured with: /var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/configure |
262 |
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-b |
263 |
in/3.3 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include |
264 |
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 |
265 |
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man |
266 |
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shar |
267 |
ed --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu |
268 |
--with-system-zlib --enable-languages=c,c++,f77,objc,java --enable-t |
269 |
hreads=posix --enable-long-long --disable-checking --enable-cstdio=stdio |
270 |
--enable-clocale=generic --enable-__cxa_atexit --e |
271 |
nable-version-specific-runtime-libs |
272 |
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3 |
273 |
--with-l |
274 |
ocal-prefix=/usr/local --enable-shared --enable-nls |
275 |
--without-included-gettext --x-includes=/usr/X11R6/include --x-librarie |
276 |
s=/usr/X11R6/lib --enable-interpreter --enable-java-awt=xlib --with-x |
277 |
--disable-multilib |
278 |
Thread model: posix |
279 |
gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) |
280 |
configure:2080: $? = 0 |
281 |
configure:2082: gcc -V </dev/null >&5 |
282 |
gcc: `-V' option must have argument |
283 |
configure:2085: $? = 1 |
284 |
configure:2109: checking for C compiler default output |
285 |
configure:2112: gcc -O2 -march=pentium3 -fomit-frame-pointer -pipe |
286 |
-mcpu=pentium4 -I/usr/afsws/include -O2 -march=pentium3 |
287 |
-fomit-frame-pointer -pipe -mcpu=pentium4 -I/usr/afsws/include |
288 |
conftest.c /usr/afsws/lib/pam_afs.so.1 >&5 |
289 |
/usr/afsws/lib/pam_afs.so.1: undefined reference to `pam_get_item' |
290 |
/usr/afsws/lib/pam_afs.so.1: undefined reference to `pam_set_data' |
291 |
/usr/afsws/lib/pam_afs.so.1: undefined reference to `pam_putenv' |
292 |
/usr/afsws/lib/pam_afs.so.1: undefined reference to `pam_set_item' |
293 |
/usr/afsws/lib/pam_afs.so.1: undefined reference to `pam_get_data' |
294 |
/usr/afsws/lib/pam_afs.so.1: undefined reference to `pam_get_user' |
295 |
collect2: ld returned 1 exit status |
296 |
configure:2115: $? = 1 |
297 |
configure: failed program was: |
298 |
| #line 2088 "configure" |
299 |
| /* confdefs.h. */ |
300 |
| |
301 |
| #define PACKAGE_NAME "" |
302 |
| #define PACKAGE_TARNAME "" |
303 |
| #define PACKAGE_VERSION "" |
304 |
| #define PACKAGE_STRING "" |
305 |
| #define PACKAGE_BUGREPORT "" |
306 |
| #define PACKAGE "findutils" |
307 |
| #define VERSION "4.1.20" |
308 |
| /* end confdefs.h. */ |
309 |
| |
310 |
| int |
311 |
| main () |
312 |
| { |
313 |
| |
314 |
| ; |
315 |
| return 0; |
316 |
| } |
317 |
configure:2154: error: C compiler cannot create executables |
318 |
See `config.log' for more details. |
319 |
|
320 |
=============================================================== |
321 |
|
322 |
Summary versions: |
323 |
|
324 |
manual: |
325 |
=============================================================== |
326 |
configure:2109: checking for C compiler default output |
327 |
configure:2112: gcc -O3 -march=pentium4 -fomit-frame-pointer -pipe |
328 |
-mcpu=pentium4 conftest.c >&5 |
329 |
configure:2115: $? = 0 |
330 |
configure:2161: result: a.out |
331 |
================================================================ |
332 |
|
333 |
emerge: |
334 |
================================================================ |
335 |
configure:2109: checking for C compiler default output |
336 |
configure:2112: gcc -O3 -march=pentium4 -fomit-frame-pointer -pipe |
337 |
-mcpu=pentium4 -I/usr/afsws/include -O3 -march=pentium4 |
338 |
-fomit-frame-pointer -pipe -mcpu=pentium4 -I/usr/afsws/include |
339 |
conftest.c /usr/afsws/lib/pam_afs.so.1 >&5 |
340 |
/usr/afsws/lib/pam_afs.so.1: undefined reference to `pam_get_item' |
341 |
/usr/afsws/lib/pam_afs.so.1: undefined reference to `pam_set_data' |
342 |
/usr/afsws/lib/pam_afs.so.1: undefined reference to `pam_putenv' |
343 |
/usr/afsws/lib/pam_afs.so.1: undefined reference to `pam_set_item' |
344 |
/usr/afsws/lib/pam_afs.so.1: undefined reference to `pam_get_data' |
345 |
/usr/afsws/lib/pam_afs.so.1: undefined reference to `pam_get_user' |
346 |
collect2: ld returned 1 exit status |
347 |
configure:2115: $? = 1 |
348 |
================================================================ |
349 |
|
350 |
What's going on here? |
351 |
|
352 |
The value of my CFLAGS variable has been included twice here on the |
353 |
command line for the attempted emerge findutils, and I have two targets |
354 |
for the compile now instead of only one with the manual configuration. |
355 |
Where is /usr/afsws/lib/pam_afs.so.1 coming from as a compile object? |
356 |
It's not there when I do this manually. WTF? I checked my running |
357 |
Gentoo box against my server that I'm building as a Gentoo box, and |
358 |
the .ebuild files for findutils are identical. Can anyone tell me |
359 |
what's happening here for this screwy configure attempt by the portage |
360 |
system? |
361 |
|
362 |
Thanks in advance. |
363 |
|
364 |
-Kevin |