|
Boost-Build : |
Subject: Re: [Boost-build] FW: [boost] User config commands needed to find Clang tools ar and ranlib
From: Jürgen Hunold (jhunold_at_[hidden])
Date: 2012-11-20 03:22:06
Hi Paul,
On Monday, 19. November 2012 17:38:58 Paul A. Bristow wrote:
> > -----Original Message-----
> > From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
> > On Behalf Of Paul A. Bristow
> > Sent: Monday, November 19, 2012 1:10 PM
> > config.jam to select the compiler (thanks Jurgen Hunold) , but the link
> > stage tools are not being found.
>
> > Can anyone suggest what bjam incantation is needed ?
The clang toolset seems to be incomplete (or maybe just broken) as it does not
honour the <ranlib> and <archiver> options used by gcc.jam to explicitly
specify the tools. gcc.jam also has some logic to query the full paths from
gcc which clang(-linux).jam does not use either. Unfortunately, my Boost.Build
knowledge ends here.
I was able to get things going by putting "C:/mingw32-dw2/bin/" into PATH and
thus making
> > "ranlib"
work. Not nice, especially if you want several toolsets, but the only solution
for now, I fear.
> > using clang
> >
> > : #version
> >
> > 3.1
> >
> > : # compiler
> >
> > "C:/mingw32-dw2/bin/clang++.exe"
> > #"C:/mingw32-dw2/bin/ar.exe" <<<< actual locations of
> > tools
> > #"C:/mingw32-dw2/bin/ranlib.exe" <<<< actual locations of
> > tools
> >
> > : # options
> >
> > <cxxflags>-v # verbose for testing.
> > <cxxflags>-IC:/mingw32-dw2/include/c++/4.6.3 # for stdlib?
> > #e:/dev/apps/mingw64/include/c++/4.7.2
> > <cxxflags>-IC:/mingw32-dw2/i686-w64-mingw32/include
> > #e:/dev/apps/mingw64/include/c++/4.7.2/x86_64-w64-mingw32
> > # <cxxflags>-std="c++11"
> >
> > <root>"C:/mingw32-dw2/bin" # attempt to find the link tools
I can use clang without the extra include flags. And <include> feature is
broken, too.
For the record, the full invocation should be:
using clang : 3.1
: e:/dev/apps/mingw32-dw2/bin/clang++
: # options
<ranlib>e:/dev/apps/mingw32-dw2/bin/ranlib
<archiver>e:/dev/apps/mingw32-dw2/bin/ar
;
as soon as <ranlib> and <archiver> work. But those should be autodetected as
in gcc.jam
Yours,
Jürgen
-- * Dipl.-Math. Jürgen Hunold ! * voice: ++49 4257 300 ! Fährstraße 1 * fax : ++49 4257 300 ! 31609 Balge/Sebbenhausen * jhunold_at_gmx.eu ! Germany
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