Boost logo

Boost Users :

Subject: Re: [Boost-users] Some question about cross-compiling boost
From: ×ÞÀÚ (zoulei198547_at_[hidden])
Date: 2009-03-01 01:24:27


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_at_[hidden]> дµÀ£º

> ·¢¼þÈË: Vladimir Prus <vladimir_at_[hidden]>
> Ö÷Ìâ: Re: [Boost-users] Some question about cross-compiling boost
> ÊÕ¼þÈË: boost-users_at_[hidden]
> ÈÕÆÚ: 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users ___________________________________________________________ ºÃÍæºØ¿¨µÈÄã·¢£¬ÓÊÏäºØ¿¨È«ÐÂÉÏÏߣ¡ http://card.mail.cn.yahoo.com/


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