Some question about cross-compiling boost

Hi, Volodya. Thanks for your reply. I have tried the method in the document ( http://www.boost.org/boost-build2/doc/html/bbv2/tasks/crosscompile.html ), there were still some problems. Some libraries has been built successfully, but many not (such as libboost_serialization, libboost_wave and so on). I got the information as following:
...failed gcc.compile.c++ bin.v2/libs/math/build/gcc-3.8.0/release/link-static/threading-multi/sph_neumannf.o... .......... ...skipped <p/usr/local/lib/>libboost_serialization-gcc38-mt.a for lack of<p/usr/local/lib>libboost_serialization-gcc38-mt-1_38.a...
I didn't know why these libraries built failed. I wonder whether the problem is due to my gcc kernel of cross-compiler . Maybe it's version is too low to build that libraries? How to solve the problem? Thank you! Zou ___________________________________________________________ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/

邹磊 wrote:
Hi, Volodya. Thanks for your reply. I have tried the method in the document ( http://www.boost.org/boost-build2/doc/html/bbv2/tasks/crosscompile.html ), there were still some problems. Some libraries has been built successfully, but many not (such as libboost_serialization, libboost_wave and so on). I got the information as following:
...failed gcc.compile.c++ bin.v2/libs/math/build/gcc-3.8.0/release/link-static/threading-multi/sph_neumannf.o... .......... ...skipped <p/usr/local/lib/>libboost_serialization-gcc38-mt.a for lack of<p/usr/local/lib>libboost_serialization-gcc38-mt-1_38.a...
I didn't know why these libraries built failed. I wonder whether the problem is due to my gcc kernel of cross-compiler . Maybe it's version is too low to build that libraries? How to solve the problem?
Please quote the error message from the compiler, not the diagnostic message from Boost.Build. - Volodya

Hi,Volodya. I'm sorry to trouble you again. At your last respond you suggested me to quote the error message from the compiler. I got the message as following: ...patience... ...found 11853 targets... ...updating 10 targets... gcc.compile.c++ bin.v2/libs/serialization/build/gcc-3.4.3/release/threading-multi/xml_grammar.o In file included from libs/serialization/src/basic_xml_grammar.ipp:22, from libs/serialization/src/xml_grammar.cpp:63: ./boost/spirit/core/primitives/numerics.hpp:122: error: declaration of `template<class ScannerT> struct boost::spirit::sign_parser::result' ./boost/spirit/core/parser.hpp:123: error: conflicts with previous declaration `template<class ScannerT> struct boost::spirit::parser<boost::spirit::sign_parser>::result' "/opt/SEED_DVS357-SDK/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -fPIC -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_SERIALIZATION_DYN_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/serialization/build/gcc-3.4.3/release/threading-multi/xml_grammar.o" "libs/serialization/src/xml_grammar.cpp" ...failed gcc.compile.c++ bin.v2/libs/serialization/build/gcc-3.4.3/release/threading-multi/xml_grammar.o... ...skipped <pbin.v2/libs/serialization/build/gcc-3.4.3/release/threading-multi>libboost_serialization-gcc34-mt-1_35.so.1.35.0 for lack of <pbin.v2/libs/serialization/build/gcc-3.4.3/release/threading-multi>xml_grammar.o... ...skipped <p/usr/local/lib/boost_1_35_0>libboost_serialization-gcc34-mt-1_35.so.1.35.0 for lack of <pbin.v2/libs/serialization/build/gcc-3.4.3/release/threading-multi>libboost_serialization-gcc34-mt-1_35.so.1.35.0... ...skipped <p/usr/local/lib/boost_1_35_0>libboost_serialization-gcc34-mt.so for lack of <p/usr/local/lib/boost_1_35_0>libboost_serialization-gcc34-mt-1_35.so.1.35.0... gcc.compile.c++ bin.v2/libs/serialization/build/gcc-3.4.3/release/threading-multi/xml_wgrammar.o In file included from libs/serialization/src/basic_xml_grammar.ipp:22, from libs/serialization/src/xml_wgrammar.cpp:243: ./boost/spirit/core/primitives/numerics.hpp:122: error: declaration of `template<class ScannerT> struct boost::spirit::sign_parser::result' ./boost/spirit/core/parser.hpp:123: error: conflicts with previous declaration `template<class ScannerT> struct boost::spirit::parser<boost::spirit::sign_parser>::result' "/opt/SEED_DVS357-SDK/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -fPIC -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_SERIALIZATION_DYN_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/serialization/build/gcc-3.4.3/release/threading-multi/xml_wgrammar.o" "libs/serialization/src/xml_wgrammar.cpp" ...failed gcc.compile.c++ bin.v2/libs/serialization/build/gcc-3.4.3/release/threading-multi/xml_wgrammar.o... ...skipped <pbin.v2/libs/serialization/build/gcc-3.4.3/release/threading-multi>libboost_wserialization-gcc34-mt-1_35.so.1.35.0 for lack of <pbin.v2/libs/serialization/build/gcc-3.4.3/release/threading-multi>xml_wgrammar.o... ...skipped <p/usr/local/lib/boost_1_35_0>libboost_wserialization-gcc34-mt-1_35.so.1.35.0 for lack of <pbin.v2/libs/serialization/build/gcc-3.4.3/release/threading-multi>libboost_wserialization-gcc34-mt-1_35.so.1.35.0... ...skipped <p/usr/local/lib/boost_1_35_0>libboost_wserialization-gcc34-mt.so for lack of <p/usr/local/lib/boost_1_35_0>libboost_wserialization-gcc34-mt-1_35.so.1.35.0... ...skipped <p/usr/local/lib/boost_1_35_0>libboost_serialization-gcc34-mt-1_35.so for lack of <p/usr/local/lib/boost_1_35_0>libboost_serialization-gcc34-mt-1_35.so.1.35.0... ...skipped <p/usr/local/lib/boost_1_35_0>libboost_wserialization-gcc34-mt-1_35.so for lack of <p/usr/local/lib/boost_1_35_0>libboost_wserialization-gcc34-mt-1_35.so.1.35.0... ...failed updating 2 targets... ...skipped 8 targets... I think that maybe there are some definition conflict in the library, or the gcc kernel(3.4.3) of my cross-compiler is too old. But I still don't know how to deal with these problems. Could you help me? Thanks. with my best wished! Zou --- 09年2月28日,周六, Vladimir Prus <vladimir@codesourcery.com> 写道:
发件人: Vladimir Prus <vladimir@codesourcery.com> 主题: Re: [Boost-users] Some question about cross-compiling boost 收件人: boost-users@lists.boost.org 日期: 2009,228,周六,2:44下午 邹磊 wrote:
Hi, Volodya. Thanks for your reply. I have tried the method in the
document (
http://www.boost.org/boost-build2/doc/html/bbv2/tasks/crosscompile.html ), there were still some
problems. Some libraries has been built successfully, but many not (such as libboost_serialization, libboost_wave and so on). I got the information as following:
...failed gcc.compile.c++ bin.v2/libs/math/build/gcc-3.8.0/release/link-static/threading-multi/sph_neumannf.o... .......... ...skipped <p/usr/local/lib/>libboost_serialization-gcc38-mt.a for lack of<p/usr/local/lib>libboost_serialization-gcc38-mt-1_38.a...
I didn't know why these libraries built failed. I wonder whether the problem is due to my gcc kernel of cross-compiler . Maybe it's version is too low to build that libraries? How to solve the problem?
Please quote the error message from the compiler, not the diagnostic message from Boost.Build.
- Volodya
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
___________________________________________________________ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/

邹磊 wrote:
Hi,Volodya. I'm sorry to trouble you again. At your last respond you suggested me to quote the error message from the compiler. I got the message as following:
...patience... ...found 11853 targets... ...updating 10 targets... gcc.compile.c++ bin.v2/libs/serialization/build/gcc-3.4.3/release/threading-multi/xml_grammar.o In file included from libs/serialization/src/basic_xml_grammar.ipp:22, from libs/serialization/src/xml_grammar.cpp:63: ./boost/spirit/core/primitives/numerics.hpp:122: error: declaration of `template<class ScannerT> struct boost::spirit::sign_parser::result' ./boost/spirit/core/parser.hpp:123: error: conflicts with previous declaration `template<class ScannerT> struct boost::spirit::parser<boost::spirit::sign_parser>::result'
This probably means your compiler is too old to handle Boost.Serialization use of Boost.Sprit. No, I don't have any idea why a trivial task of parsing small subset of XML requires advanced C++ support. If you need Boost.Serialization library, try getting a newer compiler. - Volodya
participants (2)
-
Vladimir Prus
-
邹磊