Boost logo

Boost-Build :

Subject: Re: [Boost-build] bjam for Mac OS X - LLVM-1.5
From: Vladimir Prus (ghost_at_[hidden])
Date: 2011-03-09 02:48:45


On Saturday, March 05, 2011 18:45:21 er wrote:
> On 3/4/11 11:10 PM, er wrote:
> > On 2/22/11 4:29 PM, er wrote:
> >>> Please try
> >>> sudo bjam toolset=darwin-4.4 -a
> >>> and let us know what happens.
> >>
> >> Thank you, the matter is indeed resolved by following the steps above.
> >
> > To recap:
> >
> > using darwin : 4.0 : g++-4.0 ;
> > using darwin : 4.2 : g++-4.2 ;
> > using darwin : 4.4 : g++-4 : <linkflags>\"-L/sw/bin\" ; # fink ;
> > using clang : 4.2 : "/usr/llvm-gcc-4.2/bin/llvm-g++-4.2" ;
> >
> > and they all seem to do fine.
> >
> > As for for LLVM-1.5 (known as clang), I believe the relevant file is
> > /usr/bin/clang. Tried variations on the above such as
> >
> > user-config.jam:
> > using clang : 1.5 : clang ;
> >
> > $ sudo bjam clang-1.5 -a
> >
> > but it has only spat out junk:
> >
> > ...patience...
> > ...patience...
> > ...found 1812 targets...
> > ...updating 37 targets...
> > clang-darwin.compile.c++
> > ../../../../../bin.v2/libs/assign/v2/test/unit_testing/detail.test/clang-
> > darwin-1.5/debug/detail.o
> >
> > clang: warning: not using the clang compiler for C++ inputs
> > /tmp/cc-97ZBwS.s:43:suffix or operands invalid for `push'
> > /tmp/cc-97ZBwS.s:70:suffix or operands invalid for `push'
> > /tmp/cc-97ZBwS.s:79:suffix or operands invalid for `pop'
> > /tmp/cc-97ZBwS.s:102:suffix or operands invalid for `push'
> > /tmp/cc-97ZBwS.s:117:suffix or operands invalid for `call'
> > /tmp/cc-97ZBwS.s:129:suffix or operands invalid for `push'
> > /tmp/cc-97ZBwS.s:152:suffix or operands invalid for `call'
> > etc.
>
> PS:
>
> using clang : 1.5 : /usr/bin/clang ;
>
> $sudo bjam clang-1.5 -a
>
> clang: error: assembler command failed with exit code 1 (use -v to see
> invocation)
>
> "/usr/bin/clang" -x c++ -O0 -g -O0 -fno-inline -Wall -pedantic -g
> -DBOOST_ALL_NO_LIB=1 -I"../../../../.." -c -o
> "../../../../../bin.v2/libs/test/build/clang-darwin-1.5/debug/link-static/u
> nit_test_monitor.o" "../../../../../libs/test/src/unit_test_monitor.cpp"
>
> ...failed clang-darwin.compile.c++
> ../../../../../bin.v2/libs/test/build/clang-darwin-1.5/debug/link-static/un
> it_test_monitor.o...

I am confused what's being discussed here? Is clang failing when compiling boost? Because
it generates invalid assembler? That would seem like a bug in clang and had to be reported
to LLVM folks.

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2

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