[llvm-bugs] [Bug 37725] New: Failed to build the latest LLVM 7.0 code due to Attributes.inc not found
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 6 23:58:10 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37725
Bug ID: 37725
Summary: Failed to build the latest LLVM 7.0 code due to
Attributes.inc not found
Product: Build scripts
Version: trunk
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: cmake
Assignee: unassignedbugs at nondot.org
Reporter: myothers2014 at 126.com
CC: llvm-bugs at lists.llvm.org
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.
--
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/20180607/d66d2ef0/attachment.html>
More information about the llvm-bugs
mailing list