[llvm-bugs] [Bug 45973] New: Inaccurate system requirements

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 18 05:51:14 PDT 2020


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

            Bug ID: 45973
           Summary: Inaccurate system requirements
           Product: Documentation
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: General docs
          Assignee: unassignedbugs at nondot.org
          Reporter: noan at email.com
                CC: llvm-bugs at lists.llvm.org

The following pages list the minimal requirements for building LLVM:
https://llvm.org/docs/GettingStarted.html#software

According to the page, it should be possible to build LLVM with GCC 5.1.0 or
later.

I tried building LLVM on Linux with GCC 6.5.0 but it failed:

In file included from
/home/atanas/llvm-project-10.0.0/libcxx/src/variant.cpp:9:0:
/home/noan/llvm-project-10.0.0/libcxx/include/variant: At global scope:
/home/noan/llvm-project-10.0.0/libcxx/include/variant:1140:26: error: parameter
packs not expanded with ‘...’:
   using _Bases::operator()...;
                          ^
/home/noan/llvm-project-10.0.0/libcxx/include/variant:1140:26: note:        
‘_Bases’
/home/noan/llvm-project-10.0.0/libcxx/include/variant:1140:27: error: expected
‘;’ before ‘...’ token
   using _Bases::operator()...;
                           ^~~
/home/noan/llvm-project-10.0.0/libcxx/include/variant:1140:27: error: expected
unqualified-id before ‘...’ token

This is how I configured the build:

cmake -G "Unix Makefiles"
-DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;compiler-rt;libcxx;libcxxabi;libunwind;lld;llvm;mlir;openmp;parallel-libs;pstl'
-DCMAKE_INSTALL_PREFIX=/usr/local/llvm-10.0.0 -DCMAKE_BUILD_TYPE=Release
LLVM_TARGETS_TO_BUILD=X86 ../llvm

I don't have GCC 7 installed at the moment, however I have GCC 8.4.0 which
compiled LLVM problem-free.

I think that the minimum system requirement for GCC should be changed or the
above problem fixed.

-- 
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/20200518/9b2a739a/attachment.html>


More information about the llvm-bugs mailing list