Gentoo Archives: gentoo-user

From: "Thomas Andrè Skarsvåg" <lucid@×××××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Cannot compile anything: libc.so: file format not recognized; treating as linker script - glibc 2.4 upgrade related?
Date: Mon, 13 Mar 2006 18:16:18
Message-Id: 4415B42C.9080205@critical-fuzion.com
In Reply to: [gentoo-user] Cannot compile anything: libc.so: file format not recognized; treating as linker script - glibc 2.4 upgrade related? by Alexander Skwar
1 Alexander Skwar wrote:
2 > Hello!
3 >
4 > On one machine, I upgraded to glibc 2.4, and since that time,
5 > I cannot compile anything anymore :( I always get errors
6 > like this:
7 >
8 > checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
9 > checking for C compiler default output file name... configure: error: C compiler cannot create executables
10 > See `config.log' for more details.
11 >
12 > In the config.log, I find:
13 >
14 > configure:2398: checking for C compiler default output file name
15 > configure:2401: i686-pc-linux-gnu-gcc -march=prescott -O2 -pipe -fomit-frame-pointer -Wl,-z,now conftest.c >&5
16 > /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../libc.so: file format not recognized; treating as
17 > linker script
18 > /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../libc.so:5: syntax error
19 > collect2: ld returned 1 exit status
20 >
21 > That's "somewhat" annoying... :(
22 >
23 > Any ideas how I can fix this issue?
24 >
25 > Thanks,
26 >
27 > Alexander Skwar
28 >
29 Hello.
30
31 Try editing your make.conf to use CFLAGS="-march=pentium4 -02 -pipe
32 -fomit-frame-pointer" instead of '-march=prescott'
33
34 --
35 Thomas Andrè Skarsvåg
36 --
37 gentoo-user@g.o mailing list