[llvm-bugs] [Bug 26372] New: llvm can't be built with CC="clang -m64" CXX=clang++ -m64"

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 29 08:47:32 PST 2016


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

            Bug ID: 26372
           Summary: llvm can't be built with CC="clang -m64" CXX=clang++
                    -m64"
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: hjl.tools at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

On Fedora 23/x86-64, llvm r259191 can be built with

CC="gcc -fno-lto -m64" CXX="g++ -fno-lto -m64" cmake -DLLVM_BUILD_TESTS=ON 
-DLLVM_BINUTILS_INCDIR=/usr/local/include -DCLANG_BUILD_EXAMPLES=ON
-DCMAKE_INSTALL_PREFIX=/opt/llvm/master -DCMAKE_BUILD_TYPE=Release
/export/gnu/import/git/llvm

But

CC="/export/build/gnu/llvm-clang-bootstrap-cmake/stage1/build-x86_64-linux/bin/clang
-m64"
CXX="/export/build/gnu/llvm-clang-bootstrap-cmake/stage1/build-x86_64-linux/bin/clang++
-m64" cmake -DLLVM_BUILD_TESTS=ON  -DLLVM_BINUTILS_INCDIR=/usr/local/include
-DCLANG_BUILD_EXAMPLES=ON -DCMAKE_INSTALL_PREFIX=/opt/llvm/master
-DCMAKE_BUILD_TYPE=Release /export/gnu/import/git/llvm
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCCompiler.cmake:57
(message):
  Could not find compiler set in environment variable CC:


 
/export/build/gnu/llvm-clang-bootstrap-cmake/stage1/build-x86_64-linux/bin/clang
  -m64.
Call Stack (most recent call first):
  CMakeLists.txt:54 (project)


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

-- 
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/20160129/f8d7297e/attachment.html>


More information about the llvm-bugs mailing list