ronchaine / llvm-project Goto Github PK
View Code? Open in Web Editor NEWThis project forked from llvm/llvm-project
Guess I'll try to do something useful with llvm here
Home Page: http://llvm.org
This project forked from llvm/llvm-project
Guess I'll try to do something useful with llvm here
Home Page: http://llvm.org
Trying to use LLVM_ENABLE_LTO=FULL
results in
ld.lld: error: undefined symbol: llvm::errs()
>>> referenced by ld-temp.o
>>> lto.tmp:(_GLOBAL__sub_I_TableGen.cpp)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::dump() const)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::dump() const)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::dump() const)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::dump() const)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::AsmMatcherEmitter::run(llvm::raw_ostream&))
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::AsmMatcherEmitter::run(llvm::raw_ostream&))
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::AsmMatcherEmitter::run(llvm::raw_ostream&))
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::AsmMatcherEmitter::run(llvm::raw_ostream&))
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::validate(llvm::StringRef, bool) const)
>>> referenced 92 more times
ld.lld: error: undefined symbol: llvm::cl::Option::error(llvm::Twine const&, llvm::StringRef, llvm::raw_ostream&)
>>> referenced by ld-temp.o
>>> lto.tmp:(_GLOBAL__sub_I_TableGen.cpp)
>>> referenced by ld-temp.o
>>> lto.tmp:(llvm::cl::opt<ActionType, false, llvm::cl::parser<ActionType> >::handleOccurrence(unsigned int, llvm::StringRef, llvm::StringRef))
ld.lld: error: undefined symbol: vtable for llvm::cl::Option
>>> referenced by ld-temp.o
>>> lto.tmp:(llvm::cl::opt<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, false, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::~opt())
>>> referenced by ld-temp.o
>>> lto.tmp:(llvm::cl::opt<unsigned int, false, llvm::cl::parser<unsigned int> >::~opt())
>>> referenced by ld-temp.o
>>> lto.tmp:(llvm::cl::opt<bool, false, llvm::cl::parser<bool> >::~opt())
>>> referenced by ld-temp.o
>>> lto.tmp:(llvm::cl::list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, llvm::cl::parser<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::~list())
>>> referenced by ld-temp.o
>>> lto.tmp:(llvm::cl::opt<ActionType, false, llvm::cl::parser<ActionType> >::~opt())
>>> referenced by ld-temp.o
>>> lto.tmp:(llvm::cl::opt<bool, true, llvm::cl::parser<bool> >::~opt())
>>> referenced by ld-temp.o
>>> lto.tmp:(llvm::cl::opt<bool, true, llvm::cl::parser<bool> >::~opt())
>>> referenced by ld-temp.o
>>> lto.tmp:(llvm::cl::opt<ActionType, false, llvm::cl::parser<ActionType> >::~opt())
the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction)
ld.lld: error: undefined symbol: llvm::raw_ostream::write(char const*, unsigned long)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::dump() const)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::dump() const)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::dump() const)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::dump() const)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::dump() const)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::dump() const)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::dump() const)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::dump() const)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::dump() const)
>>> referenced by ld-temp.o
>>> lto.tmp:((anonymous namespace)::MatchableInfo::dump() const)
>>> referenced 6466 more times
LLVM_ENABLE_LTO=Thin
results in different, but similar errors
Need to figure out a sane way to handle missing execinfo.h
Probably best way is to handle this with CMake to allow external libexecinfo?
What can we use to detect if we need to additional link?
CMake should also probably search for execinfo.h
and disable MSAN build
if it is not found.
FAILED: tools/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.inc
cd /hyena-builds/sources/llvm-project/llvm/build-all && /hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen -gen-clang-comment-html-named-character-references -I /hyena-builds/sources/llvm-project/clang/include -I /hyena-builds/sources/llvm-project/clang/include/clang/AST -I /hyena-builds/sources/llvm-project/llvm/include /hyena-builds/sources/llvm-project/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.td --write-if-changed -o tools/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.inc -d tools/clang/include/clang/AST/CommentHTMLNamedCharacterReferences.inc.d
llvm-tblgen: Unknown command line argument '-gen-clang-comment-html-named-character-references'. Try: '/hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen --help'
llvm-tblgen: Did you mean '--gen-opt-parser-defs'?
[2/3032] Building CommentCommandList.inc...
FAILED: tools/clang/include/clang/AST/CommentCommandList.inc
cd /hyena-builds/sources/llvm-project/llvm/build-all && /hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen -gen-clang-comment-command-list -I /hyena-builds/sources/llvm-project/clang/include -I /hyena-builds/sources/llvm-project/clang/include/clang/AST -I /hyena-builds/sources/llvm-project/llvm/include /hyena-builds/sources/llvm-project/clang/include/clang/AST/CommentCommands.td --write-if-changed -o tools/clang/include/clang/AST/CommentCommandList.inc -d tools/clang/include/clang/AST/CommentCommandList.inc.d
llvm-tblgen: Unknown command line argument '-gen-clang-comment-command-list'. Try: '/hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen --help'
llvm-tblgen: Did you mean '--gen-global-isel-combiner'?
[3/3032] Building AbstractTypeWriter.inc...
FAILED: tools/clang/include/clang/AST/AbstractTypeWriter.inc
cd /hyena-builds/sources/llvm-project/llvm/build-all && /hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen -gen-clang-type-writer -I /hyena-builds/sources/llvm-project/clang/include -I /hyena-builds/sources/llvm-project/clang/include/clang/AST -I /hyena-builds/sources/llvm-project/llvm/include /hyena-builds/sources/llvm-project/clang/include/clang/AST/TypeProperties.td --write-if-changed -o tools/clang/include/clang/AST/AbstractTypeWriter.inc -d tools/clang/include/clang/AST/AbstractTypeWriter.inc.d
llvm-tblgen: Unknown command line argument '-gen-clang-type-writer'. Try: '/hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen --help'
llvm-tblgen: Did you mean '--gen-asm-writer'?
[4/3032] Building AttrNodeTraverse.inc...
FAILED: tools/clang/include/clang/AST/AttrNodeTraverse.inc
cd /hyena-builds/sources/llvm-project/llvm/build-all && /hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen -gen-clang-attr-node-traverse -I /hyena-builds/sources/llvm-project/clang/include -I /hyena-builds/sources/llvm-project/clang/include/clang/AST -I /hyena-builds/sources/llvm-project/llvm/include /hyena-builds/sources/llvm-project/clang/include/clang/AST/../Basic/Attr.td --write-if-changed -o tools/clang/include/clang/AST/AttrNodeTraverse.inc -d tools/clang/include/clang/AST/AttrNodeTraverse.inc.d
llvm-tblgen: Unknown command line argument '-gen-clang-attr-node-traverse'. Try: '/hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen --help'
llvm-tblgen: Did you mean '--gen-searchable-tables'?
[5/3032] Building CommentHTMLTags.inc...
FAILED: tools/clang/include/clang/AST/CommentHTMLTags.inc
cd /hyena-builds/sources/llvm-project/llvm/build-all && /hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen -gen-clang-comment-html-tags -I /hyena-builds/sources/llvm-project/clang/include -I /hyena-builds/sources/llvm-project/clang/include/clang/AST -I /hyena-builds/sources/llvm-project/llvm/include /hyena-builds/sources/llvm-project/clang/include/clang/AST/CommentHTMLTags.td --write-if-changed -o tools/clang/include/clang/AST/CommentHTMLTags.inc -d tools/clang/include/clang/AST/CommentHTMLTags.inc.d
llvm-tblgen: Unknown command line argument '-gen-clang-comment-html-tags'. Try: '/hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen --help'
llvm-tblgen: Did you mean '--gen-callingconv'?
[6/3032] Building AbstractTypeReader.inc...
FAILED: tools/clang/include/clang/AST/AbstractTypeReader.inc
cd /hyena-builds/sources/llvm-project/llvm/build-all && /hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen -gen-clang-type-reader -I /hyena-builds/sources/llvm-project/clang/include -I /hyena-builds/sources/llvm-project/clang/include/clang/AST -I /hyena-builds/sources/llvm-project/llvm/include /hyena-builds/sources/llvm-project/clang/include/clang/AST/TypeProperties.td --write-if-changed -o tools/clang/include/clang/AST/AbstractTypeReader.inc -d tools/clang/include/clang/AST/AbstractTypeReader.inc.d
llvm-tblgen: Unknown command line argument '-gen-clang-type-reader'. Try: '/hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen --help'
llvm-tblgen: Did you mean '--gen-asm-writer'?
[7/3032] Building StmtDataCollectors.inc...
FAILED: tools/clang/include/clang/AST/StmtDataCollectors.inc
cd /hyena-builds/sources/llvm-project/llvm/build-all && /hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen -gen-clang-data-collectors -I /hyena-builds/sources/llvm-project/clang/include -I /hyena-builds/sources/llvm-project/clang/include/clang/AST -I /hyena-builds/sources/llvm-project/llvm/include /hyena-builds/sources/llvm-project/clang/include/clang/AST/StmtDataCollectors.td --write-if-changed -o tools/clang/include/clang/AST/StmtDataCollectors.inc -d tools/clang/include/clang/AST/StmtDataCollectors.inc.d
llvm-tblgen: Unknown command line argument '-gen-clang-data-collectors'. Try: '/hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen --help'
llvm-tblgen: Did you mean '--gen-asm-matcher'?
[8/3032] Building CommentCommandInfo.inc...
FAILED: tools/clang/include/clang/AST/CommentCommandInfo.inc
cd /hyena-builds/sources/llvm-project/llvm/build-all && /hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen -gen-clang-comment-command-info -I /hyena-builds/sources/llvm-project/clang/include -I /hyena-builds/sources/llvm-project/clang/include/clang/AST -I /hyena-builds/sources/llvm-project/llvm/include /hyena-builds/sources/llvm-project/clang/include/clang/AST/CommentCommands.td --write-if-changed -o tools/clang/include/clang/AST/CommentCommandInfo.inc -d tools/clang/include/clang/AST/CommentCommandInfo.inc.d
llvm-tblgen: Unknown command line argument '-gen-clang-comment-command-info'. Try: '/hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen --help'
llvm-tblgen: Did you mean '--gen-global-isel-combiner'?
[9/3032] Building AbstractBasicReader.inc...
FAILED: tools/clang/include/clang/AST/AbstractBasicReader.inc
cd /hyena-builds/sources/llvm-project/llvm/build-all && /hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen -gen-clang-basic-reader -I /hyena-builds/sources/llvm-project/clang/include -I /hyena-builds/sources/llvm-project/clang/include/clang/AST -I /hyena-builds/sources/llvm-project/llvm/include /hyena-builds/sources/llvm-project/clang/include/clang/AST/PropertiesBase.td --write-if-changed -o tools/clang/include/clang/AST/AbstractBasicReader.inc -d tools/clang/include/clang/AST/AbstractBasicReader.inc.d
llvm-tblgen: Unknown command line argument '-gen-clang-basic-reader'. Try: '/hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen --help'
llvm-tblgen: Did you mean '--gen-asm-matcher'?
[10/3032] Building CommentHTMLTagsProperties.inc...
FAILED: tools/clang/include/clang/AST/CommentHTMLTagsProperties.inc
cd /hyena-builds/sources/llvm-project/llvm/build-all && /hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen -gen-clang-comment-html-tags-properties -I /hyena-builds/sources/llvm-project/clang/include -I /hyena-builds/sources/llvm-project/clang/include/clang/AST -I /hyena-builds/sources/llvm-project/llvm/include /hyena-builds/sources/llvm-project/clang/include/clang/AST/CommentHTMLTags.td --write-if-changed -o tools/clang/include/clang/AST/CommentHTMLTagsProperties.inc -d tools/clang/include/clang/AST/CommentHTMLTagsProperties.inc.d
llvm-tblgen: Unknown command line argument '-gen-clang-comment-html-tags-properties'. Try: '/hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen --help'
llvm-tblgen: Did you mean '--gen-compress-inst-emitter'?
[11/3032] Building AttrImpl.inc...
FAILED: tools/clang/include/clang/AST/AttrImpl.inc
cd /hyena-builds/sources/llvm-project/llvm/build-all && /hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen -gen-clang-attr-impl -I /hyena-builds/sources/llvm-project/clang/include -I /hyena-builds/sources/llvm-project/clang/include/clang/AST -I /hyena-builds/sources/llvm-project/llvm/include /hyena-builds/sources/llvm-project/clang/include/clang/AST/../Basic/Attr.td --write-if-changed -o tools/clang/include/clang/AST/AttrImpl.inc -d tools/clang/include/clang/AST/AttrImpl.inc.d
llvm-tblgen: Unknown command line argument '-gen-clang-attr-impl'. Try: '/hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen --help'
llvm-tblgen: Did you mean '--gen-register-info'?
[12/3032] Building StmtNodes.inc...
FAILED: tools/clang/include/clang/AST/StmtNodes.inc
cd /hyena-builds/sources/llvm-project/llvm/build-all && /hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen -gen-clang-stmt-nodes -I /hyena-builds/sources/llvm-project/clang/include -I /hyena-builds/sources/llvm-project/clang/include/clang/AST -I /hyena-builds/sources/llvm-project/llvm/include /hyena-builds/sources/llvm-project/clang/include/clang/AST/../Basic/StmtNodes.td --write-if-changed -o tools/clang/include/clang/AST/StmtNodes.inc -d tools/clang/include/clang/AST/StmtNodes.inc.d
llvm-tblgen: Unknown command line argument '-gen-clang-stmt-nodes'. Try: '/hyena-builds/sources/llvm-project/llvm/build-llvm-only/bin/llvm-tblgen --help'
llvm-tblgen: Did you mean '--gen-instr-docs'?
[13/3032] Creating library symlink lib/libc++.so.1 lib/libc++.so
FAILED: projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64-stamps/libcxx_fuzzer_x86_64-build projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++abi.a
cd /hyena-builds/sources/llvm-project/llvm/build-all/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64-bins && /usr/bin/cmake --build .
ninja: build stopped: subcommand failed.
A lot of these pile up if a sanitizer is disabled. Using make
can get past this,
but ninja
refuses to continue.
CMake Error at cmake/modules/AddLLVM.cmake:1559 (add_dependencies):
The dependency target "msan" of target "check-all" does not exist.
Call Stack (most recent call first):
CMakeLists.txt:969 (add_lit_target)
CMake Error at /hyena-builds/sources/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1559 (add_dependencies):
The dependency target "msan" of target "check-ubsan" does not exist.
Taking <support/musl/xlocale.h>
out of #ifdefs
(copypasting it after the next #endif
), everything compiles fine. Which doesn't make sense, since putting a #warning
inside the ifdef branch where the include is still shows.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.