Boost logo

Boost Users :

From: Ken Roser (boost_at_[hidden])
Date: 2005-10-04 16:55:52


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.

I invoked the build with the command:

./bjam -d2 --with-serialization
-sGCC_ROOT_DIRECTORY=/usr/local/gcc/gcc34 -sBUILD="release"

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

Can anyone help?

Build output follows in the proximity of the warnings:

LD_LIBRARY_PATH=bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH
    "/usr/local/gcc/gcc34/bin/g++" -s -fPIC -shared -o
"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/libboost_serialization-gcc-1_33.so.1.33.0"

-L"/usr/local/gcc/gcc34/lib"
"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_archive.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_archive_impl.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_iarchive.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_iserializer.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oserializer.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_pointer_iserializer.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_pointer_oserializer.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_serializer_map.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_text_iprimitive.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_text_oprimitive.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_xml_archive.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/binary_iarchive.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/binary_oarchive.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/extended_type_info.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/extended_type_info_no_rtti.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/extended_type_info_typeid.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/polymorphic_iarchive.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/polymorphic_oarchive.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/stl_port.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/text_iarchive.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/text_oarchive.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/void_cast.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/xml_grammar.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/xml_iarchive.o"

"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/xml_oarchive.o"

-Wl,-rpath-link,. -Wl,-soname,libboost_serialization-gcc-1_33.so.1.33.0
    ln -fs "libboost_serialization-gcc-1_33.so.1.33.0"
"bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/libboost_serialization-gcc-1_33.so"

/usr/bin/ld: `.L3' referenced in section `.rodata' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o:

defined in discarded section
`.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o

/usr/bin/ld: `.L13' referenced in section `.rodata' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o:

defined in discarded section
`.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o

/usr/bin/ld: `.L4' referenced in section `.rodata' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o:

defined in discarded section
`.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o

/usr/bin/ld: `.L5' referenced in section `.rodata' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o:

defined in discarded section
`.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o

/usr/bin/ld: `.L6' referenced in section `.rodata' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o:

defined in discarded section
`.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o

/usr/bin/ld: `.L7' referenced in section `.rodata' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o:

defined in discarded section
`.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o

/usr/bin/ld: `.L8' referenced in section `.rodata' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o:

defined in discarded section
`.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o

/usr/bin/ld: `.L9' referenced in section `.rodata' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o:

defined in discarded section
`.gnu.linkonce.t._ZNK5boost7archive17archive_exception4whatEv' of
bin/boost/libs/serialization/build/libboost_serialization.so/gcc/release/shared-linkable-true/basic_oarchive.o


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