<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 - Failed to build the latest LLVM 7.0 code due to Attributes.inc not found"
   href="https://bugs.llvm.org/show_bug.cgi?id=37725">37725</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Failed to build the latest LLVM 7.0 code due to Attributes.inc not found
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Build scripts
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>cmake
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>myothers2014@126.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When tried to build the latest LLVM 7.0 code (master branch) together with LLD
on an Laptop with Fedora 28 for X64 installed, it always failed due to the
following error:
...
2018-06-06 18:53:29 [2053/3576] Linking CXX executable bin/llvm-tblgen
2018-06-06 18:53:29 [2054/3576] Building Options.inc...
2018-06-06 18:53:29 [2055/3576] Updating Options.inc...
2018-06-06 18:53:29 [2056/3576] Building Options.inc...
2018-06-06 18:53:29 [2057/3576] Updating Options.inc...
2018-06-06 18:53:30 [2058/3576] Building Opts.inc...
2018-06-06 18:53:30 [2059/3576] Building Options.inc...
2018-06-06 18:53:30 [2060/3576] Building Options.inc...
2018-06-06 18:53:30 [2061/3576] Updating Options.inc...
2018-06-06 18:53:30 [2062/3576] Updating Options.inc...
2018-06-06 18:53:30 [2063/3576] Building DarwinLdOptions.inc...
2018-06-06 18:53:30 [2064/3576] Updating DarwinLdOptions.inc...
2018-06-06 18:53:30 [2065/3576] Building CXX object
tools/lld/wasm/CMakeFiles/lldWasm.dir/Driver.cpp.o
2018-06-06 18:53:30 FAILED: tools/lld/wasm/CMakeFiles/lldWasm.dir/Driver.cpp.o 
2018-06-06 18:53:30 /usr/bin/c++  -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Itools/lld/wasm -I../tools/lld/wasm -I../tools/lld/include -Itools/lld/include
-I/usr/include/libxml2 -Iinclude -I../include -fPIC -fvisibility-inlines-hidden
-Werror=date-time -std=c++11 -Wall -Wextra -Wno-unused-parameter
-Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic
-Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment
-fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG   
-fno-exceptions -fno-rtti -MD -MT
tools/lld/wasm/CMakeFiles/lldWasm.dir/Driver.cpp.o -MF
tools/lld/wasm/CMakeFiles/lldWasm.dir/Driver.cpp.o.d -o
tools/lld/wasm/CMakeFiles/lldWasm.dir/Driver.cpp.o -c
../tools/lld/wasm/Driver.cpp
2018-06-06 18:53:30 In file included from ../include/llvm/IR/Module.h:23,
2018-06-06 18:53:30                  from
../include/llvm/IR/ModuleSummaryIndex.h:27,
2018-06-06 18:53:30                  from ../include/llvm/LTO/LTO.h:23,
2018-06-06 18:53:30                  from ../tools/lld/wasm/InputFiles.h:17,
2018-06-06 18:53:30                  from ../tools/lld/wasm/InputChunks.h:25,
2018-06-06 18:53:30                  from ../tools/lld/wasm/Driver.cpp:12:
2018-06-06 18:53:30 ../include/llvm/IR/Attributes.h:74:14: fatal error:
llvm/IR/Attributes.inc: No such file or directory
2018-06-06 18:53:30      #include "llvm/IR/Attributes.inc"
2018-06-06 18:53:30               ^~~~~~~~~~~~~~~~~~~~~~~~
2018-06-06 18:53:30 compilation terminated.
2018-06-06 18:53:30 [2066/3576] Building CXX object
tools/lld/wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.o
2018-06-06 18:53:30 FAILED:
tools/lld/wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.o 
2018-06-06 18:53:30 /usr/bin/c++  -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Itools/lld/wasm -I../tools/lld/wasm -I../tools/lld/include -Itools/lld/include
-I/usr/include/libxml2 -Iinclude -I../include -fPIC -fvisibility-inlines-hidden
-Werror=date-time -std=c++11 -Wall -Wextra -Wno-unused-parameter
-Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic
-Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment
-fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG   
-fno-exceptions -fno-rtti -MD -MT
tools/lld/wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.o -MF
tools/lld/wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.o.d -o
tools/lld/wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.o -c
../tools/lld/wasm/InputChunks.cpp
2018-06-06 18:53:30 In file included from ../include/llvm/IR/Module.h:23,
2018-06-06 18:53:30                  from
../include/llvm/IR/ModuleSummaryIndex.h:27,
2018-06-06 18:53:30                  from ../include/llvm/LTO/LTO.h:23,
2018-06-06 18:53:30                  from ../tools/lld/wasm/InputFiles.h:17,
2018-06-06 18:53:30                  from ../tools/lld/wasm/InputChunks.h:25,
2018-06-06 18:53:30                  from ../tools/lld/wasm/InputChunks.cpp:10:
2018-06-06 18:53:30 ../include/llvm/IR/Attributes.h:74:14: fatal error:
llvm/IR/Attributes.inc: No such file or directory
2018-06-06 18:53:30      #include "llvm/IR/Attributes.inc"
2018-06-06 18:53:30               ^~~~~~~~~~~~~~~~~~~~~~~~
2018-06-06 18:53:30 compilation terminated.
...


By the way, cmake/ninja with gcc 8.1.1-1 were used for building it.
And the same issue can be found when trying to build it on an AARCH64 board.</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>