<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - llvm can't be built with CC="clang -m64" CXX=clang++ -m64""
   href="https://llvm.org/bugs/show_bug.cgi?id=26372">26372</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm can't be built with CC="clang -m64" CXX=clang++ -m64"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hjl.tools@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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!</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>