[cfe-dev] Building libc++ on Linux

Xeo ... hivemaster at hotmail.de
Sun Feb 19 21:58:58 PST 2012

> sudo cp /usr/include/c++/4.6/cxxabi.h /usr/local/include/

> sudo mkdir /usr/local/include/bits
> sudo cp /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h
> /usr/local/include/bits
> sudo cp /usr/include/c++/4.6/x86_64-linux-gnu/bits/os_defines.h
> /usr/local/include/bits
> sudo cp /usr/include/c++/4.6/x86_64-linux-gnu/bits/cpu_defines.h
> /usr/local/include/bits
> sudo cp /usr/include/c++/4.6/x86_64-linux-gnu/bits/cxxabi_tweaks.h
> /usr/local/include/bits
> sudo cp /usr/include/c++/4.6/bits/cxxabi_forced.h /usr/local/include/bits

I had to tweak this work-around a bit for Debian Squeeze with GCC 4.4.
(Aside from changing 4.6 to 4.4, of course.)

Namely, "cxxabi_forced.h" is spelled with a dash instead of an underscore,
aka "cxxabi-forced.h" and resides in the toplevel include directory.
With that change, the last line looks like this for me:

sudo cp /usr/include/c++/4.4/cxxabi-forced.h /usr/local/include

And libc++ compiles fine again. Thanks! :)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120220/3dff4cdf/attachment.html>

More information about the cfe-dev mailing list