[Q] any successes in building 1.38+GCC-4.3.2+cygwin
I was trying to test my code on gcc and since do not have access to linux, I used cygwin gcc v 4.3.2 with boost 1.38. I first built bjam (it went Ok). copied it to /bin then created symlink g++ to gcc-4 (cygwin has gcc 4.3.2 as gcc-4) and then with this command bjam toolset=gcc variant=debug release link=shared threading=multi runtime-link=shared stage started the build thread library built (although I am not sure if pthreads are supported on cygwin, may be it was just a dummy library). Many link errors. So wanted to ask if anybody has tried - or if you guys would recommend to try the same with gcc-3.4 thank you in advance -- V S P toreason@fastmail.fm -- http://www.fastmail.fm - One of many happy users: http://www.fastmail.fm/docs/quotes.html
V S P wrote:
I was trying to test my code on gcc and since do not have access to linux, I used cygwin gcc v 4.3.2 with boost 1.38.
I first built bjam (it went Ok). copied it to /bin then created symlink g++ to gcc-4 (cygwin has gcc 4.3.2 as gcc-4)
and then with this command bjam toolset=gcc variant=debug release link=shared threading=multi runtime-link=shared stage
started the build
thread library built (although I am not sure if pthreads are supported on cygwin, may be it was just a dummy library). Many link errors.
You need to always provide exact error you got.
then created symlink g++ to gcc-4 (cygwin has gcc 4.3.2 as gcc-4)
1. Why do you need a symlink in the first place? 2. If you need symlink for any reason, its destination should be a C++ compiler, e.g. g++-4. Making 'g++' symlink to gcc-something is not very honest, and won't work. - Volodya
I was trying to test my code on gcc and since do not have access to linux, I used cygwin gcc v 4.3.2 with boost 1.38.
I first built bjam (it went Ok). copied it to /bin then created symlink g++ to gcc-4 (cygwin has gcc 4.3.2 as gcc-4)
and then with this command bjam toolset=gcc variant=debug release link=shared threading=multi runtime-link=shared stage
started the build
thread library built (although I am not sure if pthreads are supported on cygwin, may be it was just a dummy library). Many link errors.
So wanted to ask if anybody has tried - or if you guys would recommend to try the same with gcc-3.4
I have not yet switch from 1.37 to 1.38 but I use the following user-config.jam to run the regression tests. Can you try with it? It has to be put in your home directory using gcc : cygwin_4.3.2 : /usr/bin/g++-4 : <compileflags>-DBOOST_POSIX_API <compileflags>-DBOOST_POSIX_PATH ; and bjam --with-toolset=gcc-cygwin_4.3.2 Avis : Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes en tout ou en partie. Notice: This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.
Hi, thank you for suggesting the switches. I think it built most of it. I removed by symlink from g++ to gcc-4 (just in case as Vladimir recommended) and used your settings (except I specified toolset= instead of --with-toolset (as that was erroring out). I saved the bulid log file and only saw a couple of errors ---- gcc.compile.c++ bin.v2/libs/serialization/build/gcc-cygwin_4.3.2/release/threadi ng-multi/basic_text_wiprimitive.o^M libs\serialization\src\basic_text_wiprimitive.cpp:14:2: error: #error "wide char i/o not supported on this platform"^M -------------- gcc.compile.c++ bin.v2/libs/thread/build/gcc-cygwin_4.3.2/release/threading-mult i/pthread/thread.o^M In file included from ./boost/thread/detail/platform.hpp:17,^M from ./boost/thread/detail/config.hpp:20,^M from libs\thread\src\pthread\thread.cpp:8:^M ./boost/config/requires_threads.hpp:29:4: error: #error "Threading support unava liable: it has been explicitly disabled with BOOST_DISABLE_THREADS"^M ------------------------ libs\thread\src\pthread\thread.cpp:356: error: 'to_timespec_duration' was not de clared in this scope^M ------------------------------ gcc.compile.c++ bin.v2/libs/math/build/has_long_double_support.test/gcc-cygwin_4 .3.2/release/link-static/threading-multi/has_long_double_support.o^M libs\math\build\has_long_double_support.cpp:9:2: error: #error "long double supp ort is not supported by Boost.Math on this Plaform: the long double version of t he TR1 library will not be built."^M -------------------------------- The libraries it built: ---------------------------- boost_date_time-gcc-mt-1_38.so boost_filesystem-gcc-mt-1_38.so boost_graph-gcc-mt-1_38.so boost_iostreams-gcc-mt-1_38.so boost_math_c99-gcc-mt-1_38.so boost_math_c99f-gcc-mt-1_38.so boost_math_tr1-gcc-mt-1_38.so boost_math_tr1f-gcc-mt-1_38.so boost_prg_exec_monitor-gcc-mt-1_38.so boost_program_options-gcc-mt-1_38.so boost_python-gcc-mt-1_38.so boost_regex-gcc-mt-1_38.so boost_serialization-gcc-mt-1_38.so boost_signals-gcc-mt-1_38.so boost_system-gcc-mt-1_38.so boost_unit_test_framework-gcc-mt-1_38.so libboost_date_time-gcc-mt-1_38.a libboost_date_time-gcc-mt.a libboost_filesystem-gcc-mt-1_38.a libboost_filesystem-gcc-mt.a libboost_graph-gcc-mt-1_38.a libboost_graph-gcc-mt.a libboost_iostreams-gcc-mt-1_38.a libboost_iostreams-gcc-mt.a libboost_math_c99-gcc-mt-1_38.a libboost_math_c99-gcc-mt.a libboost_math_c99f-gcc-mt-1_38.a libboost_math_c99f-gcc-mt.a libboost_math_tr1-gcc-mt-1_38.a libboost_math_tr1-gcc-mt.a libboost_math_tr1f-gcc-mt-1_38.a libboost_math_tr1f-gcc-mt.a libboost_prg_exec_monitor-gcc-mt-1_38.a libboost_prg_exec_monitor-gcc-mt.a libboost_program_options-gcc-mt-1_38.a libboost_program_options-gcc-mt.a libboost_python-gcc-mt-1_38.a libboost_python-gcc-mt.a libboost_regex-gcc-mt-1_38.a libboost_regex-gcc-mt.a libboost_serialization-gcc-mt-1_38.a libboost_serialization-gcc-mt.a libboost_signals-gcc-mt-1_38.a libboost_signals-gcc-mt.a libboost_system-gcc-mt-1_38.a libboost_system-gcc-mt.a libboost_test_exec_monitor-gcc-mt-1_38.a libboost_test_exec_monitor-gcc-mt.a libboost_unit_test_framework-gcc-mt-1_38.a libboost_unit_test_framework-gcc-mt.a libboost_wave-gcc-mt-1_38.a libboost_wave-gcc-mt.a --------------------------------------------------------------- Even python built ! :-) thanks again, Vlad
I have not yet switch from 1.37 to 1.38 but I use the following user-config.jam to run the regression tests. Can you try with it? It has to be put in your home directory
using gcc : cygwin_4.3.2 : /usr/bin/g++-4 : <compileflags>-DBOOST_POSIX_API <compileflags>-DBOOST_POSIX_PATH ;
and bjam --with-toolset=gcc-cygwin_4.3.2
Avis :
-- V S P toreason@fastmail.fm -- http://www.fastmail.fm - Does exactly what it says on the tin
"wide char i/o not supported on this platform"
This is normal on cygwin, no wide char support for now (it is coming).
./boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
This may be an issue with 4.3.2 as it works fine with 3.4.4. F. Bron Avis : Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes en tout ou en partie. Notice: This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.
frederic.bron@alcan.com wrote:
./boost/config/requires_threads.hpp:29:4: error: #error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
This may be an issue with 4.3.2 as it works fine with 3.4.4.
AFAIR, there is no pthreads in gcc-4 on cygwin.
participants (4)
-
frederic.bron@alcan.com
-
Ilya Sokolov
-
V S P
-
Vladimir Prus