Boost logo

Boost-Build :

Subject: Re: [Boost-build] Cross-compiling
From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2008-10-01 07:20:18


Hi Volodya !

An'n Mittwoch 01 Oktober 2008 hest Du schreven:

> I know what's going on here, but first -- what is you exact command line?

hunold_at_lin-hunold ~/packages/boost/libs/thread/example $ bjam
toolset=gcc-4.3.2-mingw target-os=windows threading=multi
threadapi=win32 --with-thread

This doesn't work .

> Does the problem go away if you use:
>
>         toolset=gcc-<whatever version your mingw compiler is>

bjam toolset=gcc-4.3.2 target-os=windows threading=multi
threadapi=win32 --with-thread

works ;-))

> In addition to my other email, what is the output of
>
> which i386-mingw32-g++

 which i386-mingw32-g++
/usr/local/bin/i386-mingw32-g++

i386-mingw32-g++ -v
Using built-in specs.
Target: i386-mingw32
Configured
with: ../gcc-4.3.2/configure --target=i386-mingw32 --prefix=/usr/local --with-local-prefix=/usr/local/i386-mingw32 --enable-libgomp --enable-threads --with-arch=i686 --with-tune=generic --disable-werror --disable-nls --enable-languages=c,c++,fortran,objc,obj-c++,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libstdcxx-debug --enable-cxx-flags='-fno-function-sections -fno-data-sections' --enable-version-specific-runtime-libs --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization
Thread model: win32
gcc version 4.3.2 (GCC)

And while we're at it:

There seems to be a bug in the code which registers the "mingw"-part of the
toolset name.
As soon as I add one mingw compiler, _all_ other gcc variant get changed
to "gcc-mingw-XXX" where XXX is the correct version.

That means:

 bjam toolset=gcc-4.3

will result in

libs/thread/example/gcc-mingw-4.3/debug/xtime

Please note that --debug-configuration shows the correct values for the
toolset, e.g

notice: will use '/usr/bin/g++-4.1' for gcc, condition <toolset>gcc-4.1.3

but this will produced path elements like gcc-mingw-4.1.3

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

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