[gentoo-user] Cannot compile anything: libc.so: file format not recognized; treating as linker script - glibc 2.4 upgrade related?

2006-03-13 Thread Alexander Skwar
Hello!

On one machine, I upgraded to glibc 2.4, and since that time,
I cannot compile anything anymore :( I always get errors
like this:

checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C 
compiler cannot create executables
See `config.log' for more details.

In the config.log, I find:

configure:2398: checking for C compiler default output file name
configure:2401: i686-pc-linux-gnu-gcc -march=prescott -O2 -pipe 
-fomit-frame-pointer   -Wl,-z,now conftest.c  >&5
/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
linker script
/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
collect2: ld returned 1 exit status

That's "somewhat" annoying... :(

Any ideas how I can fix this issue?

Thanks,

Alexander Skwar
-- 
MCSE == Mentally Challenged Slave of the Empire.

   -- Gareth Barnard
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Cannot compile anything: libc.so: file format not recognized; treating as linker script - glibc 2.4 upgrade related?

2006-03-13 Thread Richard Fish
On 3/13/06, Alexander Skwar <[EMAIL PROTECTED]> wrote:
/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
> linker script
> /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

Can you post the output of:

carcharias lib # emerge -pv glibc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-libs/glibc-2.4  USE="nptl nptlonly pic userlocales
-build -glibc-omitfp -hardened -nls -profile" 16 kB

Total size of downloads: 16 kB

carcharias lib # equery belongs /usr/lib/libc.so
[ Searching for file(s) /usr/lib/libc.so in *... ]
sys-libs/glibc-2.4 (/usr/lib/libc.so)

carcharias lib # equery check glibc
[ Checking sys-libs/glibc-2.4 ]
!!! /etc/nsswitch.conf has incorrect md5sum
!!! /etc/host.conf has incorrect md5sum
 * 1379 out of 1381 files good

carcharias lib # ls -l /usr/lib/libc.so
-rwxr-xr-x 1 root root 238 Mar 10 20:23 /usr/lib/libc.so

carcharias lib # cat /usr/lib/libc.so
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED (
/lib/ld-linux.so.2 ) )

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Cannot compile anything: libc.so: file format not recognized; treating as linker script - glibc 2.4 upgrade related?

2006-03-13 Thread Thomas Andrè Skarsvåg

Alexander Skwar wrote:

Hello!

On one machine, I upgraded to glibc 2.4, and since that time,
I cannot compile anything anymore :( I always get errors
like this:

checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C 
compiler cannot create executables
See `config.log' for more details.

In the config.log, I find:

configure:2398: checking for C compiler default output file name
configure:2401: i686-pc-linux-gnu-gcc -march=prescott -O2 -pipe -fomit-frame-pointer   
-Wl,-z,now conftest.c  >&5
/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
linker script
/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
collect2: ld returned 1 exit status

That's "somewhat" annoying... :(

Any ideas how I can fix this issue?

Thanks,

Alexander Skwar
  

Hello.

Try editing your make.conf to use CFLAGS="-march=pentium4 -02 -pipe 
-fomit-frame-pointer" instead of '-march=prescott'


--
Thomas Andrè Skarsvåg
--
gentoo-user@gentoo.org mailing list