Boost logo

Boost-Build :

Subject: Re: [Boost-build] [Boost][build] Building Boost 1.56 with clang
From: Aaron Levy (aaron.levy_at_[hidden])
Date: 2014-09-02 14:29:27


02.09.2014, 10:18, "Ben Pope" <benpope81_at_[hidden]>:
> On Saturday, August 30, 2014 03:12 AM, Aaron Levy wrote:
>> šI am trying to build Boost 1.56 on Linux with clang 3.5 with the following command-line and getting several "header file not found" errors for C++ headers.
>>
>> š$ cd boost_1_56_0
>> š$ ./bootstrap.sh
>> š$ ./b2 install --prefix=<install-prefix> --build-dir=<build-dir> toolset=clang layout=tagged variant=release link=shared runtime-link=shared threading=multi cxxflags=" -stdlib=libc++" linkflags=" -stdlib=libc++"
>>
>> šAny problems with the above command-lines?
>
> It would help if you gave the error, and mentioned your platform, and
> told us where you got Clang 3.5 (since it hasn't been released) and how
> you built libc++, since the pre-release builds on llvm don't build and
> properly package libc++ for Linux.
>

I had an incomplete clang setup. Just fixed it. Here are the details:

OS: Lubuntu 14.04, i386.
clang: clang 3.4 (3.5 was incorrect info).

I installed using the following commands:

$ sudo apt-get install clang
$ sudo apt-get install llvm
$ sudo apt-get install libc++-dev

The following does not work because of the layout=tagged property. I didn't try to find out the alternative - maybe it cannot be overridden for clang build.s
$ ./b2 install --prefix=<install-prefix> --build-dir=<build-dir> toolset=clang layout=tagged variant=release link=shared runtime-link=shared threading=multi cxxflags=" -stdlib=libc++" linkflags=" -stdlib=libc++"

Regards,
Arindam


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