|
Boost Users : |
From: Ken Roser (boost_at_[hidden])
Date: 2005-10-05 11:34:39
Per the suggestion, I installed a copy of binutils-2.15.94.0.1 from
http://www.kernel.org/pub/linux/devel/binutils/binutils-2.15.94.0.1.tar.bz2
Now I get an error that seems to indicate this version of ld doesn't
like the format of my /usr/lib/libc.so file.
The error is:
/usr/local/gcc/gcc34/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/libc.so:
file format not recognized; treating as linker script
/usr/local/gcc/gcc34/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/libc.so:5:
syntax error
collect2: ld returned 1 exit status
...failed gcc-Link-action
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/libboost_serialization-gcc-1_33.so...
...skipped
<@boost!libs!serialization!build/libboost_wserialization.so/gcc/release/shared-linkable-true>libboost_wserialization-gcc-1_33.so
for lack of
<@boost!libs!serialization!build/libboost_serialization.so/gcc/release/shared-linkable-true>libboost_serialization-gcc-1_33.so...
/usr/lib/libc actually contains the following:
/* 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 ) )
So what compiler does work with boost on Fedora Core 4? Just the gcc
4.0 series?
Vladimir Prus wrote:
>Ken Roser wrote:
>
>
>
>>I've recently switched my Linux system to Fedora Core 4 which has gcc
>>4.0.1 as the default compiler. Since the code I'm developing must be
>>built with gcc 3.4.4, I have installed a copy of gcc 3.4.4 at
>>/usr/local/gcc/gcc34. When I build boost with this compiler I get
>>hundred of similar errors from /usr/bin/ld. I'll attach those warnings
>>to the end of this email.
>>
>>
>...
>
>
>>/usr/bin/ld: `.L8' referenced in section `.rodata' of
>>
>>
>
>
>This is a bug in gcc:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16625
>
>For some reasons, gcc developers don't give it much priority, maybe if you
>add "me too" comment to the bug it will help a bit.
>
>
>
>>I do see boost get built using my specified compiler but get all the
>>warnings. Building boost without specifying the gcc 3.4.4 compiler
>>does not produce any errors. I suspect the problem has something to do
>>with the version of ld that gets invoked but even if it does, how would
>>I fix it. ld is version:
>>
>>GNU ld version 2.15.94.0.2.2 20041220
>>
>>
>
>You can downgrade binutils to suppress the warning (the bug report above
>names exact version number). But this is just workaround.
>
>- Volodya
>
>_______________________________________________
>Boost-users mailing list
>Boost-users_at_[hidden]
>http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net