sun sparc g++ filesystem build error
Cd /usr/local/boost_1_32_0/libs/filesystem/test When I try to buld using below command /usr/local/boost_1_32_0/bjam "-sBUILD=g++" I get below error ...found 795 targets... ...updating 36 targets... MkDir1 ../../../bin/boost/libs/filesystem/build/libboost_filesystem.a/gcc/g++ gcc-C++-action ../../../bin/boost/libs/filesystem/build/libboost_filesystem.a/gcc/g++/e xception.o gcc-C++-action ../../../bin/boost/libs/filesystem/build/libboost_filesystem.a/gcc/g++/o perations_posix_windows.o gcc-C++-action ../../../bin/boost/libs/filesystem/build/libboost_filesystem.a/gcc/g++/p ath_posix_windows.o gcc-C++-action ../../../bin/boost/libs/filesystem/build/libboost_filesystem.a/gcc/g++/c onvenience.o gcc-Archive-action ../../../bin/boost/libs/filesystem/build/libboost_filesystem.a/gcc/g++/l ibboost_filesystem-gcc-1_32.a ar: creating ../../../bin/boost/libs/filesystem/build/libboost_filesystem.a/gcc/g++/l ibboost_filesystem-gcc-1_32.a MkDir1 ../../../bin/boost/libs/filesystem/test/path_test.test/gcc/g++ gcc-C++-action ../../../bin/boost/libs/filesystem/test/path_test.test/gcc/g++/path_test .o gcc-Link-action ../../../bin/boost/libs/filesystem/test/path_test.test/gcc/g++/path_test Chmod1 ../../../bin/boost/libs/filesystem/test/path_test.test/gcc/g++/path_test MkDir1 ../../../bin/boost/libs/filesystem/test/default_name_check_test.test/gcc /g++ gcc-C++-action ../../../bin/boost/libs/filesystem/test/default_name_check_test.test/gcc /g++/default_name_check_test.o gcc-Link-action ../../../bin/boost/libs/filesystem/test/default_name_check_test.test/gcc /g++/default_name_check_test Chmod1 ../../../bin/boost/libs/filesystem/test/default_name_check_test.test/gcc /g++/default_name_check_test MkDir1 ../../../bin/boost/libs/filesystem/test/operations_test.test/gcc/g++ gcc-C++-action ../../../bin/boost/libs/filesystem/test/operations_test.test/gcc/g++/ope rations_test.o gcc-Link-action ../../../bin/boost/libs/filesystem/test/operations_test.test/gcc/g++/ope rations_test Chmod1 ../../../bin/boost/libs/filesystem/test/operations_test.test/gcc/g++/ope rations_test MkDir1 ../../../bin/boost/libs/filesystem/test/fstream_test.test/gcc/g++ gcc-C++-action ../../../bin/boost/libs/filesystem/test/fstream_test.test/gcc/g++/fstrea m_test.o In file included from /usr/local/boost_1_32_0/libs/filesystem/test/fstream_test.cpp:10: /usr/local/boost_1_32_0/boost/filesystem/fstream.hpp:27: parse error before `<' /usr/local/boost_1_32_0/boost/filesystem/fstream.hpp:33: `traits' was not declared in this scope /usr/local/boost_1_32_0/boost/filesystem/fstream.hpp:33: syntax error before `*' /usr/local/boost_1_32_0/boost/filesystem/fstream.hpp:42: syntax error before `;' /usr/local/boost_1_32_0/boost/filesystem/fstream.hpp:47: parse error before `<' /usr/local/boost_1_32_0/boost/filesystem/fstream.hpp:53: parse error before `&' /usr/local/boost_1_32_0/boost/filesystem/fstream.hpp:55: ANSI C++ forbids declaration `basic_ifstream' with no type /usr/local/boost_1_32_0/boost/filesystem/fstream.hpp:55: only constructors can be declared `explicit' /usr/local/boost_1_32_0/boost/filesystem/fstream.hpp: In function `int basic_ifstream(...)': /usr/local/boost_1_32_0/boost/filesystem/fstream.hpp:55: confused by earlier errors, bailing out set -e "g++" -c -Wall -ftemplate-depth-255 -DBOOST_ALL_NO_LIB=1 -g -O0 -fno-inline -I"../../../bin/boost/libs/filesystem/test" -I "/usr/local/boost_1_32_0" -o "../../../bin/boost/libs/filesystem/test/fstream_test.test/gcc/g++/fstre am_test.o" "/usr/local/boost_1_32_0/libs/filesystem/test/fstream_test.cpp" ...failed gcc-C++-action ../../../bin/boost/libs/filesystem/test/fstream_test.test/gcc/g++/fstrea m_test.o... ...skipped <@boost!libs!filesystem!test/fstream_test.test/gcc/g++>fstream_test for lack of <@boost!libs!filesystem!test/fstream_test.test/gcc/g++>fstream_test.o... MkDir1 ../../../bin/boost/libs/filesystem/test/convenience_test.test/gcc/g++ gcc-C++-action ../../../bin/boost/libs/filesystem/test/convenience_test.test/gcc/g++/co nvenience_test.o gcc-Link-action ../../../bin/boost/libs/filesystem/test/convenience_test.test/gcc/g++/co nvenience_test Chmod1 ../../../bin/boost/libs/filesystem/test/convenience_test.test/gcc/g++/co nvenience_test MkDir1 ../../../bin/boost/libs/filesystem/test/large_file_support_test.test/gcc /g++ gcc-C++-action ../../../bin/boost/libs/filesystem/test/large_file_support_test.test/gcc /g++/large_file_support_test.o gcc-Link-action ../../../bin/boost/libs/filesystem/test/large_file_support_test.test/gcc /g++/large_file_support_test Chmod1 ../../../bin/boost/libs/filesystem/test/large_file_support_test.test/gcc /g++/large_file_support_test execute-test ../../../bin/boost/libs/filesystem/test/path_test.test/gcc/g++/path_test .run **passed** ../../../bin/boost/libs/filesystem/test/path_test.test/gcc/g++/path_test .test execute-test ../../../bin/boost/libs/filesystem/test/default_name_check_test.test/gcc /g++/default_name_check_test.run **passed** ../../../bin/boost/libs/filesystem/test/default_name_check_test.test/gcc /g++/default_name_check_test.test execute-test ../../../bin/boost/libs/filesystem/test/operations_test.test/gcc/g++/ope rations_test.run **passed** ../../../bin/boost/libs/filesystem/test/operations_test.test/gcc/g++/ope rations_test.test ...skipped <@boost!libs!filesystem!test/fstream_test.test/gcc/g++>fstream_test.run for lack of <@boost!libs!filesystem!test/fstream_test.test/gcc/g++>fstream_test... execute-test ../../../bin/boost/libs/filesystem/test/convenience_test.test/gcc/g++/co nvenience_test.run **passed** ../../../bin/boost/libs/filesystem/test/convenience_test.test/gcc/g++/co nvenience_test.test execute-test ../../../bin/boost/libs/filesystem/test/large_file_support_test.test/gcc /g++/large_file_support_test.run ====== BEGIN OUTPUT ====== The operating system is using an integer type to report file sizes that can not represent file sizes greater that 2 gigabytes (31-bits). Thus the Filesystem Library will not correctly deal with such large files. If you think that this operatiing system should be able to support large files, please report the problem to the Boost developers mailing list. EXIT STATUS: 1 ====== END OUTPUT ====== ../../../bin/boost/libs/filesystem/test/large_file_support_test.test/gcc /g++/large_file_support_test > ../../../bin/boost/libs/filesystem/test/large_file_support_test.test/gcc /g++/large_file_support_test.output 2>&1 status=$? echo >> ../../../bin/boost/libs/filesystem/test/large_file_support_test.test/gcc /g++/large_file_support_test.output echo EXIT STATUS: $status >> ../../../bin/boost/libs/filesystem/test/large_file_support_test.test/gcc /g++/large_file_support_test.output if test $status -eq 0 ; then cp -f ../../../bin/boost/libs/filesystem/test/large_file_support_test.test/gcc /g++/large_file_support_test.output ../../../bin/boost/libs/filesystem/test/large_file_support_test.test/gcc /g++/large_file_support_test.run fi verbose=1 if test $status -ne 0 ; then verbose=0 fi if test $verbose -eq 0 ; then echo ====== BEGIN OUTPUT ====== cat ../../../bin/boost/libs/filesystem/test/large_file_support_test.test/gcc /g++/large_file_support_test.output echo ====== END OUTPUT ====== fi exit $status ...failed execute-test ../../../bin/boost/libs/filesystem/test/large_file_support_test.test/gcc /g++/large_file_support_test.run... ...failed updating 2 targets... ...skipped 4 targets... ...updated 30 targets... AIRCOM to present our integrated OSS Solution at the TeleMangement World, Nice 2005, held May 16th - 19th, in Nice, France at the Acropolis Convention Centre. Visit us at booth 107. www.tmforum.org Disclaimer: The information contained in this e-mail, including any attachments to it, is confidential and intended only for the person(s) to whom it is addressed. Any examination, distribution, disclosure, printing, or copying of this information, or reliance upon this information by any person other than the intended recipient(s) is strictly prohibited. If this e-mail has been misdirected and you are not the intended recipient, please notify the sender immediately and delete this e-mail from your system. The views and opinions contained in this transmission represent those of the author and do not necessarily reflect those of AIRCOM International. AIRCOM International may monitor incoming and outgoing e-mails. By replying to this message, you consent to this monitoring. This e-mail has been scanned by McAfee Group Shield prior to transmission. However, recipients are advised to apply their own antivirus detection measures to this e-mail and any attachments upon receipt. AIRCOM International does not accept liability for any damage or losses arising as a result of receiving this e-mail.
Naeem ahmad wrote: <snip long error message> Have a look at http://tinyurl.com/6ue2b. There you will see that this failure is a known error for gcc-2.95.3 on Linux. The rest of the FS library seems to work ok. But if I were you, I _really_ would try to use a more recent version of g++. HTH, Markus
Naeem ahmad wrote:
Cd /usr/local/boost_1_32_0/libs/filesystem/test
When I try to buld using below command
/usr/local/boost_1_32_0/bjam "-sBUILD=g++"
There is no toolset named "g++", and you don't specify the toolset with the "BUILD" variable. If you look in the list of toolsets supported: http://www.boost.org/more/getting_started.html#step3 You'll see that the toolset name is "gcc". And if you look at the example invocations: http://www.boost.org/more/getting_started.html#step5 You'll see that "TOOLS" variable is how you specify which toolset to compile with. Hence you should do: /usr/local/boost_1_32_0/bjam "-sTOOLS=gcc" -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org
Rene Rivera wrote:
Naeem ahmad wrote:
/usr/local/boost_1_32_0/bjam "-sBUILD=g++"
Hence you should do:
/usr/local/boost_1_32_0/bjam "-sTOOLS=gcc"
PS. What Markus said also applies. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org
participants (3)
-
Markus Schöpflin
-
Naeem ahmad
-
Rene Rivera