Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to specifiy multiple gcc compilers using windows 8.1
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2015-06-05 14:09:09


> -----Original Message-----
> From: Vladimir Prus [mailto:vladimir.prus_at_[hidden]]
> Sent: 05 June 2015 08:52
> To: boost-build_at_[hidden]
> Subject: Re: [Boost-build] How to specifiy multiple gcc compilers using windows 8.1
>
> On 6/4/2015 3:20 PM, Paul A. Bristow wrote:
> > I am trying to specify multiple version of GCC compilers in my
> > user-config like this
> >
> > using gcc
> > : # version
> > 4.8.1
> > : # compiler exe location
> > "C:\Program Files\mingw-builds\x64-4.8.1-win32-seh-rev5\mingw64\bin\g++.exe"
> > : # options
> > ;
> >
> > or forward slash
> >
> > 'C:/Program' is not recognized as an internal or external command,
> > operable program or batch file.
>
> Paul,
>
> I've checked in a fix for this:
>
> https://github.com/boostorg/build/commit/831e37cedb1aeefb53f20afd600618a7946241e9
>
> Could you please try again after updating your Boost.Build?

Updated to 831e37cedb1aeefb53f20afd600618a7946241e9

ran bootstrap.bat

(I presume that this updates boost Boost.Build?)

I:\modular-boost\libs\fixed_point>b2 --toolset=gcc-5.1.0 --debug-configuration

notice: will use 'C:\Program Files\mingw-w64\x86_64-5.1.0-win32-seh-rt_v4-rev0\mingw64\bin\g++.exe'
for gcc, condition <toolset>gcc-5.1.0-mingw

notice: using gcc libraries :: <toolset>gcc-5.1.0-mingw :: C:\Program Files\mingw-w64\x86_64-5.1.0-w
in32-seh-rt_v4-rev0\mingw64/bin C:\Program Files\mingw-w64\x86_64-5.1.0-win32-seh-rt_v4-rev0\mingw64
/lib C:\Program Files\mingw-w64\x86_64-5.1.0-win32-seh-rt_v4-rev0\mingw64/lib32 C:\Program Files\min
gw-w64\x86_64-5.1.0-win32-seh-rt_v4-rev0\mingw64/lib64

warning: toolset gcc initialization: can not find tool C:/Program Files/mingw-w64/x86_64-5.1.0-win32
-seh-rt_v4-rev0/mingw64/x86_64-w64-mingw32/bin/ar.exe

warning: initialized from C:\Users\Paul\user-config.jam:93

notice: using gcc archiver :: <toolset>gcc-5.1.0-mingw :: C:/Program Files/mingw-w64/x86_64-5.1.0-wi
n32-seh-rt_v4-rev0/mingw64/x86_64-w64-mingw32/bin/ar.exe

warning: toolset gcc initialization: can not find tool C:/Program Files/mingw-w64/x86_64-5.1.0-win32
-seh-rt_v4-rev0/mingw64/x86_64-w64-mingw32/bin/ranlib.exe

warning: initialized from C:\Users\Paul\user-config.jam:93

notice: using gcc ranlib :: <toolset>gcc-5.1.0-mingw :: C:/Program Files/mingw-w64/x86_64-5.1.0-win3
2-seh-rt_v4-rev0/mingw64/x86_64-w64-mingw32/bin/ranlib.exe

notice: using rc compiler :: <toolset>gcc-5.1.0-mingw :: C:\Program Files\mingw-w64\x86_64-5.1.0-win
32-seh-rt_v4-rev0\mingw64\bin\windres.exe

and the run passes as expected.

link-static\test_fixed_point_constuct.exe
testing.capture-output ..\..\..\bin.v2\libs\fixed_point\test\test_fixed_point_constuct.test\gcc-ming
w-5.1.0\debug\link-static\test_fixed_point_constuct.run
        1 file(s) copied.
**passed** ..\..\..\bin.v2\libs\fixed_point\test\test_fixed_point_constuct.test\gcc-mingw-5.1.0\debu
g\link-static\test_fixed_point_constuct.test
...updated 64 targets...

So now much more MS friendly ;-)

Many thanks for a prompt fix.

Paul

---
Paul A. Bristow
Prizet Farmhouse
Kendal UK LA8 8AB
+44 (0) 1539 561830

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