|
Boost-Build : |
From: Raoul Gough (raoulgough_at_[hidden])
Date: 2003-01-21 10:58:28
I've come up with a new gcc-nocygwin-tools.jam, which contains only
the following code:
extends-toolset gcc ;
CFLAGS += -mno-cygwin ;
C++FLAGS += -mno-cygwin ;
LINKFLAGS += -mno-cygwin ;
This requires an up-to-date gcc-tools.jam (since 2003/01/17) and an
up-to-date Cygwin gcc installation (support was added around October
2002, according to my information). I've posted the new documentation
at http://home.clara.net/raoulgough/boost/gcc-nocygwin-tools.html
Contrary to my initial reckoning, using gcc-tools.jam and setting
<cxxflags> on the command line does *not* work correctly, because it
confuses python.jam into thinking it has a Cygwin Python installation
(you need a Windows native Python for use with -mno-cygwin).
There seem to be some problems with building the Boost test libraries,
both with gcc-nocygwin and native mingw. See the attached traces for
details. I guess these problems are caused by differences between Unix
and Windows shared library linkage styles, but I haven't really
investigated (seems like it was already broken, since the mingw
toolset has exactly the same problems).
If there are no objections, I'll check the new nocygwin support into
CVS at the end of the week.
Regards,
Raoul Gough.
------=_NextPart_000_0048_01C2C165.F091CD60 Content-Type: text/plain;
name="nocygwin_bjam_errs.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="nocygwin_bjam_errs.txt"
...patience...
...patience...
...found 2567 targets...
...updating 24 targets...
gcc-Link-action libs\test\build\bin\boost_prg_exec_monitor.dll\gcc-nocygwin=
\debug\optimization-off\runtime-link-static\threading-single\boost_prg_exec=
_monitor.dll libs\test\build\bin\boost_prg_exec_monitor.dll\gcc-nocygwin\de=
bug\optimization-off\runtime-link-static\threading-single\boost_prg_exec_mo=
nitor.lib
Creating library file: libs\test\build\bin\boost_prg_exec_monitor.dll\gcc-n=
ocygwin\debug\optimization-off\runtime-link-static\threading-single\boost_p=
rg_exec_monitor.lib
libs\test\build\bin\boost_prg_exec_monitor.dll\gcc-nocygwin\debug\optimizat=
ion-off\runtime-link-static\threading-single\cpp_main.obj: In function `ZNK=
5boost19execution_exception4whatEv':
/d/boost/CVS/boost/d:/boost/CVS/boost/boost/test/execution_monitor.hpp(.tex=
t$_ZN43_GLOBAL__N_libs_test_src_cpp_main.cppyfSuib15cpp_main_caller8functio=
nEv+0x1a): undefined reference to `cpp_main(int, char**)'
=20=20=20=20
=20=20=20=20
g++ -Wl,--export-all-symbols -Wl,--exclude-symbols,_bss_end__:_bss_sta=
rt__:_data_end__:_data_start__ -Wl,--out-implib,libs\test\build\bin\boost_p=
rg_exec_monitor.dll\gcc-nocygwin\debug\optimization-off\runtime-link-static=
\threading-single\boost_prg_exec_monitor.lib -static -g -shared -mno-cygwi=
n -o "libs\test\build\bin\boost_prg_exec_monitor.dll\gcc-nocygwin\debug\op=
timization-off\runtime-link-static\threading-single\boost_prg_exec_monitor.=
dll" "libs\test\build\bin\boost_prg_exec_monitor.dll\gcc-nocygwin\debug\=
optimization-off\runtime-link-static\threading-single\execution_monitor.obj=
" "libs\test\build\bin\boost_prg_exec_monitor.dll\gcc-nocygwin\debug\optimi=
zation-off\runtime-link-static\threading-single\cpp_main.obj" =
=20
=20=20=20=20
...failed gcc-Link-action libs\test\build\bin\boost_prg_exec_monitor.dll\gc=
c-nocygwin\debug\optimization-off\runtime-link-static\threading-single\boos=
t_prg_exec_monitor.dll libs\test\build\bin\boost_prg_exec_monitor.dll\gcc-n=
ocygwin\debug\optimization-off\runtime-link-static\threading-single\boost_p=
rg_exec_monitor.lib...
...removing libs\test\build\bin\boost_prg_exec_monitor.dll\gcc-nocygwin\deb=
ug\optimization-off\runtime-link-static\threading-single\boost_prg_exec_mon=
itor.lib
...skipped <libs!test!build\boost_prg_exec_monitor.dll\gcc-nocygwin\debug\o=
ptimization-off\runtime-link-static\threading-single>boost_prg_exec_monitor=
.dll for lack of <libs!test!build\boost_prg_exec_monitor.dll\gcc-nocygwin\d=
ebug\optimization-off\runtime-link-static\threading-single>boost_prg_exec_m=
onitor.lib...
------=_NextPart_000_0048_01C2C165.F091CD60 Content-Type: text/plain;
name="mingw_bjam_errs.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="mingw_bjam_errs.txt"
...patience...
...patience...
...found 2595 targets...
...updating 27 targets...
FileClone libs\python\build\bin-stage\boost_python_debug.lib
1 file(s) copied.
FileClone libs\python\build\bin-stage\boost_python_debug.lib
1 file(s) copied.
FileClone libs\regex\build\bin-stage\boost_regex_debug.lib
1 file(s) copied.
FileClone libs\regex\build\bin-stage\boost_regex_debug.lib
1 file(s) copied.
FileClone libs\regex\build\bin-stage\boost_regex.lib
1 file(s) copied.
FileClone libs\regex\build\bin-stage\boost_regex.lib
1 file(s) copied.
mingw-Link-action libs\test\build\bin\boost_prg_exec_monitor.dll\mingw\debu=
g\optimization-off\runtime-link-static\threading-single\boost_prg_exec_moni=
tor.dll libs\test\build\bin\boost_prg_exec_monitor.dll\mingw\debug\optimiza=
tion-off\runtime-link-static\threading-single\boost_prg_exec_monitor.lib
Creating library file: libs\test\build\bin\boost_prg_exec_monitor.dll\mingw=
\debug\optimization-off\runtime-link-static\threading-single\boost_prg_exec=
_monitor.lib
libs\test\build\bin\boost_prg_exec_monitor.dll\mingw\debug\optimization-off=
\runtime-link-static\threading-single\cpp_main.obj: In function `ZNK5boost1=
9execution_exception4whatEv':
d:/boost/CVS/boost/d:/boost/CVS/boost/boost/test/execution_monitor.hpp(.tex=
t$_ZN43_GLOBAL__N_libs_test_src_cpp_main.cpp5Qfvib15cpp_main_caller8functio=
nEv+0x1a): undefined reference to `cpp_main(int, char**)'
f:\mingw\bin\g++ -Wl,--exclude-symbols,_bss_end__:_bss_start__:_data_e=
nd__:_data_start__ -Wl,--out-implib,libs\test\build\bin\boost_prg_exec_moni=
tor.dll\mingw\debug\optimization-off\runtime-link-static\threading-single\b=
oost_prg_exec_monitor.lib -static -g -shared -o "libs\test\build\bin\boos=
t_prg_exec_monitor.dll\mingw\debug\optimization-off\runtime-link-static\thr=
eading-single\boost_prg_exec_monitor.dll" -Lf:\mingw\lib "libs\test\buil=
d\bin\boost_prg_exec_monitor.dll\mingw\debug\optimization-off\runtime-link-=
static\threading-single\execution_monitor.obj" "libs\test\build\bin\boost_p=
rg_exec_monitor.dll\mingw\debug\optimization-off\runtime-link-static\thread=
ing-single\cpp_main.obj" -Wl,-rpath-link,.
...failed mingw-Link-action libs\test\build\bin\boost_prg_exec_monitor.dll\=
mingw\debug\optimization-off\runtime-link-static\threading-single\boost_prg=
_exec_monitor.dll libs\test\build\bin\boost_prg_exec_monitor.dll\mingw\debu=
g\optimization-off\runtime-link-static\threading-single\boost_prg_exec_moni=
tor.lib...
...removing libs\test\build\bin\boost_prg_exec_monitor.dll\mingw\debug\opti=
mization-off\runtime-link-static\threading-single\boost_prg_exec_monitor.li=
b
...skipped <libs!test!build\boost_prg_exec_monitor.dll\mingw\debug\optimiza=
tion-off\runtime-link-static\threading-single>boost_prg_exec_monitor.dll fo=
r lack of <libs!test!build\boost_prg_exec_monitor.dll\mingw\debug\optimizat=
ion-off\runtime-link-static\threading-single>boost_prg_exec_monitor.lib...
------=_NextPart_000_0048_01C2C165.F091CD60--
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk