Boost logo

Boost-Build :

Subject: [Boost-build] How to use multiple stlport toolsets?
From: Andreas Huber (ahd6974-spamboostorgtrap_at_[hidden])
Date: 2010-02-23 12:52:12


Hi

Variations of this question have been asked a few times but it seems none of
the suggested things to try work for me. I have the attached user-config.jam
and the following bjam command line:

bjam --with-date_time --with-filesystem --with-regex --with-serialization --with-system
 --with-thread --with-log --stagedir=stage/windows_ce/armv4i --toolset=msvc/toolset-msvc:version=9.0~wm6.5~stlport5.2/stdlib=stlport-5.2~evc9~armv4i
link=shared

I get the following output:

[snip]
...found 5888 targets...
...updating 99 targets...
msvc.link.dll
bin.v2\libs\regex\build\msvc-9.0~wm6.5~stlport5.2\debug\stdlib-stlport-5.2~evc9~armv4i\threading-multi\boost_regex-vc90-mt-gdp-1_41.dll
stlportstld.5.2.lib(stlportstld.5.2.dll) : fatal error LNK1112: module
machine type 'X86' conflicts with target machine type 'THUMB'

        call "%BUILDDIR%UseEvc90ForArmv4iWithStlPort.bat" x86 >nul
link /NOLOGO /INCREMENTAL:NO /DLL /DEBUG /MACHINE:X86 /subsystem:console
/out:"bin.v2\libs\regex\build\msvc-9.0~wm6.5~stlport5.2\debug\stdlib-stlport-5.2~evc9~armv4i\threading-multi\boost_regex-vc90-mt-gdp-1_41.dll"
/IMPLIB:"bin.v2\libs\regex\build\msvc-9.0~wm6.5~stlport5.2\debug\stdlib-stlport-5.2~evc9~armv4i\threading-multi\boost_regex-vc90-mt-gdp-1_41.lib"
/LIBPATH:"%STLPORTDIR%bin" /LIBPATH:"%STLPORTDIR%lib"
/NODEFAULTLIB:oldnames.lib /STACK:262144,4096 /machine:THUMB
/NODEFAULTLIB:libc.lib /subsystem:windowsce,5.02 coredll.lib corelibc.lib
ole32.lib oleaut32.lib uuid.lib commctrl.lib
@"bin.v2\libs\regex\build\msvc-9.0~wm6.5~stlport5.2\debug\stdlib-stlport-5.2~evc9~armv4i\threading-multi\boost_regex-vc90-mt-gdp-1_41.dll.rsp"
        if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
[snip]

Note the /LIBPATH:"%STLPORTDIR%lib" switch passed to the linker, which is
not what I would expect. From the attached user-config.jam I would expect
/LIBPATH:"%STLPORTDIR%lib\evc9-arm" to be passed to the linker.

How can I ensure that the correct /LIBPATH switches are passed to the
linker?

Thanks & Regards,

Andreas

begin 666 user-config.jam
M=7-I;F<@;7-V8R Z(#DN,'YS=&QP;W)T-2XR(#H@(D,Z+U!R;V=R86T_at_1FEL
M97,O36EC<F]S;V9T(%9I<W5A;"!3='5D:6\@.2XP+U9#+V)I;B]C;"YE>&4B
M(#H-"CQC;VUP:6QE9FQA9W,^+41?0U)47U-%0U5215].3U]705).24Y'4PT*
M/&-O;7!I;&5F;&%G<SXM1%]30TQ?4T5#55)%7TY/7U=!4DY)3D=3#0H\<V5T
M=7 ^(B5"54E,1$1)4B55<V5-<W9C.3!7:71H4W1L4&]R="YB870B(#L-"@T*
M=7-I;F<@;7-V8R Z(#DN,'YW;38N-7YS=&QP;W)T-2XR(#H@(D,Z+U!R;V=R
M86T_at_1FEL97,O36EC<F]S;V9T(%9I<W5A;"!3='5D:6\@.2XP+U9#+V-E+V)I
M;B]X.#9?87)M+V-L+F5X92(@._at_T*/&-O;7!I;&5F;&%G<SXM1%]#4E1?4T5#
M55)%7TY/7U=!4DY)3D=3#0H\8V]M<&EL969L86=S/BU$7U-#3%]314-54D5?
M3D]?5T%23DE.1U,-"CQC;VUP:6QE9FQA9W,^+41?5TE.,S)?5T-%/3!X-3 R
M#0H\8V]M<&EL969L86=S/BU$54Y$15)?0T4-"CQC;VUP:6QE9FQA9W,^+417
M24XS,E]03$%41D]235]04U!##0H\8V]M<&EL969L86=S/BU$5TE.0T4-"CQC
M;VUP:6QE9FQA9W,^+41!4DT-"CQC;VUP:6QE9FQA9W,^+41?05)-7PT*/&-O
M;7!I;&5F;&%G<SXM1%]53DE#3T1%#0H\8V]M<&EL969L86=S/BU$54Y)0T]$
M10T*/&-O;7!I;&5F;&%G<SXM1$%2358T20T*/&-O;7!I;&5F;&%G<SXM1$)/
M3U-47TQ/1U]54T5?0TA!4_at_T*/&QI;FMF;&%G<SXO3D]$149!54Q43$E".F]L
M9&YA;65S+FQI8_at_T*/&QI;FMF;&%G<SXO4U1!0TLZ,C8R,30T+#0P.38-"CQL
M:6YK9FQA9W,^+VUA8VAI;F4Z5$A534(-"CQL:6YK9FQA9W,^+TY/1$5&055,
M5$Q)0CIL:6)C+FQI8_at_T*/&QI;FMF;&%G<SXO<W5B<WES=&5M.G=I;F1O=W-C
M92PU+C R#0H\;&EN:V9L86=S/F-O<F5D;&PN;&EB#0H\;&EN:V9L86=S/F-O
M<F5L:6)C+FQI8_at_T*/&QI;FMF;&%G<SYO;&4S,BYL:6(-"CQL:6YK9FQA9W,^
M;VQE875T,S(N;&EB#0H\;&EN:V9L86=S/G5U:60N;&EB#0H\;&EN:V9L86=S
M/F-O;6UC=')L+FQI8_at_T*/'-E='5P/B(E0E5)3$1$25(E57-E179C.3!&;W)!
M<FUV-&E7:71H4W1L4&]R="YB870B(#L-"@T*=7-I;F<@<W1L<&]R=" Z(#4N
M,GYM<W9C.2 Z("(E4U1,4$]25$1)4B5S=&QP;W)T(B Z("(E4U1,4$]25$1)
M4B5L:6(B("(E4U1,4$]25$1)4B5B:6XB(#L-"G5S:6YG('-T;'!O<G0_at_.B U
M+C)^979C.7YA<FUV-&D_at_.B B)5-43%!/4E1$25(E<W1L<&]R="(@.B B)5-4
M3%!/4E1$25(E;&EB7&5V8SDM87)M(B B)5-43%!/4E1$25(E8FEN7&5V8SDM
&87)M(B [
`
end


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