[llvm-bugs] [Bug 31291] New: can't build llvm (with libcxx) on ubuntu 14.04

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 6 02:59:01 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31291

            Bug ID: 31291
           Summary: can't build llvm (with libcxx) on ubuntu 14.04
           Product: Build scripts
           Version: 3.9
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: akotulski at fb.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I'm having trouble compiling llvm with clang, compiler-rt and libcxx on ubuntu
14.04 (LTS, it's supported until 2019). I used default gcc-4.8.4 which should
be new enough to compile llvm. I used code from 3.9.1 branch

I'm getting bunch of linking errors related to C++ stdlib such as " undefined
reference to `__cxa_allocate_exception'" (see attached files for full output)

I tried passing -DCMAKE_SHARED_LINKER_FLAGS='-lstdc++' but it didn't help.

This is what I ran when creating those files:
cmake -G 'Unix Makefiles' ../llvm -DCMAKE_INSTALL_PREFIX=`pwd`/install
-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=Off -DLLVM_ENABLE_EH=On
-DLLVM_ENABLE_RTTI=On -DCMAKE_SHARED_LINKER_FLAGS='-lstdc++' && make all

It also fails with very similar/same errors when I ran without
DCMAKE_SHARED_LINKER_FLAGS flag:
cmake -G 'Unix Makefiles' ../llvm -DCMAKE_INSTALL_PREFIX=`pwd`/install
-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=Off -DLLVM_ENABLE_EH=On
-DLLVM_ENABLE_RTTI=On && make all

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161206/d12bf5f0/attachment.html>


More information about the llvm-bugs mailing list