|
Boost : |
Subject: Re: [boost] Boost 1.61.0 Release Candidate 1
From: Thomas Trummer (th.trummer_at_[hidden])
Date: 2016-05-07 15:06:13
> On 07 May 2016, at 17:18, Vladimir Prus <vladimir.prus_at_[hidden]> wrote:
>
> could you say which 'hacks' you have in mind. It builds out of the box on OSX with system
> compiler, for sure.
Vladimir,
here are the different build options and the corresponding results:
$ ./b2
Works correctly out of the box and builds to 'darwin-4.2.1â.
$ ./b2 toolset=gcc
Fails to build with everything failing due to '/bin/sh: line 1: -ftemplate-depth-128: command not foundâ. There is probably no value in this working since âgcc' is just a symlink to âclangâ anyway, I just want to mention it for completeness.
$ ./b2 toolset=gcc-4.9
Correctly pickups the compiler but fails to build with
- clang: error: unsupported option 'â64'
- ld: unknown option: -h
The âclangâ errors result from the assembler files of Boost.Context. The linker errors result from the build system expecting the gcc linker instead of the darwin linker.
$ ./b2 toolset=gcc-5
Correctly pickups the compiler but fails for the same reasons as gcc-4.9.
The âhackâ or workaround for this is to define '#using darwin : 5.3.0 : g++-5 : <linker-type>darwin ;â in user-config.jam and build with ' ./b2 toolset=darwin-5.3.0â. This is not a big deal itâs just not obvious.
Thomas
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk