|
Boost Users : |
Subject: Re: [Boost-users] Slow build with clang?
From: Bill White (bill.white_at_[hidden])
Date: 2012-12-11 16:46:57
Is it possible you built Clang in Debug? If you don't build a release
version of Clang, everything is, indeed, very slow. I've made this
mistake, and I think it's really easy to do.
When I built boost 1.52.0 recently with a version of Clang very close to
3.2 it did not seem like it was building slowly to me. But I didn't
compare the build speed with g++, so maybe I don't know what I'm talking
about.
On Tue, Dec 11, 2012 at 4:28 PM, Richard Hadsell <hadsell_at_[hidden]
> wrote:
> I have been building the Boost libraries with g++ for many years. Someone
> recommended trying Clang, so I downloaded 1.52.0 and built it first with
> g++ 4.5.1 on Fedora 14. Then I started a build with clang 3.3, and it is
> taking forever. I have not made any measurements, but it must be at least
> an order of magnitude slower than g++. The math library seems to take the
> longest, but maybe there are other slow-building libraries yet to come.
>
> Am I doing something wrong, or should I expect the clang build to be very
> slow?
>
> In myuser-config I have this:
>
> using clang : 3.3 : /directory_where_we_installed_**clang/bin/clang
> :<compileflags>"-fPIC"<**linkflags>"-fPIC" ;
>
> The command line is this:
>
> bin/bjam --user-config=myuser-config threading=multi instruction-set=core2
> address-model=64 variant=release link=static,shared --stagedir=stageF14C
> clean
>
> The clang version is: clang version 3.3 (trunk 169541) (llvm/trunk 169537)
> The OS is Linux Fedora 14.
>
> --
> Dick Hadsell 203-992-6320 Fax: 203-992-6001
> Reply-to: hadsell_at_[hidden]
> Blue Sky Studios http://www.blueskystudios.com
> 1 American Lane, Greenwich, CT 06831-2560
>
> ______________________________**_________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/**mailman/listinfo.cgi/boost-**users
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net