[cfe-dev] Trying to build libcxx/libcxxabi on Linux 64 bit
Shriramana Sharma
samjnaa at gmail.com
Mon Jun 24 03:09:29 PDT 2013
On Mon, Jun 24, 2013 at 3:11 PM, Matthew Dempsky <matthew at dempsky.org> wrote:
>
>
> That's a bug in libc++'s CMakeLists.txt: libc++abi no longer provides
> cxa_demangle.h (http://llvm.org/viewvc/llvm-project?view=revision&revision=184118),
> so libc++ shouldn't be checking for it anymore. On line 141, change
> "cxxabi.h;cxa_demangle.h" to just "cxxabi.h".
Hello thank you very much for your help. I did that and the compiling
went on fine but failed at the last stage of linking:
Linking CXX shared library libc++.so
/usr/bin/ld: error: cannot find -lc++abi
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libc++.so.1.0] Error 1
make[1]: *** [lib/CMakeFiles/cxx.dir/all] Error 2
make: *** [all] Error 2
The libcxxabi buildit script had only produced libc++abi.so.1.0 so
that is what I copied to /usr/lib, but now apparently I have to
manually produce the symlink of this file to libc++abi.so without the
versioning and doing that fixed the problem.
Thank you very much. I hope the libcxx developers fix the problem with
the CMakeLists.txt and the libcxxabi developers add a small README
note saying libunwind-dev may need to be installed. (I am not
knowledgeable enough about compiler internals to know whether it is
the place of Clang to provide all the functionality that libunwind
does so I'm not filing the bug you suggested. Since obviously you know
more than me, perhaps you should file it!)
--
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा
More information about the cfe-dev
mailing list