<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Compiler build failure after https://reviews.llvm.org/D51693"
   href="https://bugs.llvm.org/show_bug.cgi?id=38885">38885</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compiler build failure after https://reviews.llvm.org/D51693
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>enhancement
          </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>abhilash_bhandari@yahoo.co.in
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>LLVM fails to build
With the configure script:
cmake -G"Unix Makefiles" -DLLVM_BUILD_LLVM_DYLIB:STRING=ON
-DLLVM_LINK_LLVM_DYLIB=ON -DLLVM_ENABLE_LIBEDIT=OFF
-DCMAKE_BUILD_TYPE:STRING=RELEASE -DCLANG_DEFAULT_LINKER:STRING=lld
-DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON -DLLVM_TARGETS_TO_BUILD:STRING=X86
-DLLVM_ENABLE_ASSERTIONS:BOOL=ON -DCLANG_REPOSITORY_STRING=CLANG:
-DLLVM_ENABLE_WERROR=ON -DCMAKE_CXX_FLAGS=\'-Wno-error=pedantic\' \llvm

The error is:

In file included from 
llvm/lib/Support/APInt.cpp:22:0:
llvm/include/llvm/ADT/bit.h: In instantiation of ‘To llvm::bit_cast(const
From&) [with To = long unsigned int; From = double; <template-parameter-1-3> =
void; <template-parameter-1-4> = void; <template-parameter-1-5> = void]’:
llvm/lib/Support/APInt.cpp:716:41:   required from here
llvm/include/llvm/ADT/bit.h:29:40: error: dereferencing type-punned pointer
will break strict-aliasing rules [-Werror=strict-aliasing]
    return reinterpret_cast<To &>(storage);                                     
    ^

llvm/include/llvm/ADT/bit.h: In instantiation of ‘To llvm::bit_cast(const
From&) [with To = double; From = long unsigned int; <template-parameter-1-3> =
void; <template-parameter-1-4> = void; <template-parameter-1-5> = void]’:
llvm/lib/Support/APInt.cpp:807:28:   required from here
llvm/include/llvm/ADT/bit.h:29:40: error: dereferencing type-punned pointer
will break strict-aliasing rules [-Werror=strict-aliasing]

System Compiler: GCC 5.4.0</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>