[cfe-dev] cannot build llvm
Guy Maurel
guy.maurel at kde.org
Tue Dec 30 07:31:09 PST 2014
Hello!
I cannot build llvm
Using:
export
PATH=/usr/local/bin/:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
#
cd build
cmake -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang \
-DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \
../llvm
make
...
Linking CXX executable ../../bin/llvm-tblgen
cd /home/guy-format/build/utils/TableGen && /usr/bin/cmake -E
cmake_link_script CMakeFiles/llvm-tblgen.dir/link.txt --verbose=1
/usr/bin/clang -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-
parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializer
s -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -
std=c++11 -ffunction-sections -fdata-sections -Wl,-allow-shlib-
undefined -Wl,-O3 -Wl,--gc-sections CMakeFiles/llvm-
tblgen.dir/AsmMatcherEmitter.cpp.o CMakeFiles/llvm-
tblgen.dir/AsmWriterEmitter.cpp.o
CMakeFiles/llvm-tblgen.dir/AsmWriterInst.cpp.o CMakeFiles/llvm-
tblgen.dir/CallingConvEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/CodeEmitterG
en.cpp.o CMakeFiles/llvm-tblgen.dir/CodeGenDAGPatterns.cpp.o CMakeFiles/llvm-
tblgen.dir/CodeGenInstruction.cpp.o CMakeFiles/llvm-tblgen.di
r/CodeGenMapTable.cpp.o CMakeFiles/llvm-tblgen.dir/CodeGenRegisters.cpp.o
CMakeFiles/llvm-tblgen.dir/CodeGenSchedule.cpp.o CMakeFiles/llvm
-tblgen.dir/CodeGenTarget.cpp.o CMakeFiles/llvm-
tblgen.dir/DAGISelEmitter.cpp.o CMakeFiles/llvm-
tblgen.dir/DAGISelMatcherEmitter.cpp.o CMa
keFiles/llvm-tblgen.dir/DAGISelMatcherGen.cpp.o CMakeFiles/llvm-
tblgen.dir/DAGISelMatcherOpt.cpp.o CMakeFiles/llvm-tblgen.dir/DAGISelMatch
er.cpp.o CMakeFiles/llvm-tblgen.dir/DFAPacketizerEmitter.cpp.o
CMakeFiles/llvm-tblgen.dir/DisassemblerEmitter.cpp.o CMakeFiles/llvm-tblgen
.dir/FastISelEmitter.cpp.o CMakeFiles/llvm-
tblgen.dir/FixedLenDecoderEmitter.cpp.o CMakeFiles/llvm-
tblgen.dir/InstrInfoEmitter.cpp.o CMake
Files/llvm-tblgen.dir/IntrinsicEmitter.cpp.o CMakeFiles/llvm-
tblgen.dir/OptParserEmitter.cpp.o CMakeFiles/llvm-tblgen.dir/PseudoLoweringEm
itter.cpp.o CMakeFiles/llvm-tblgen.dir/RegisterInfoEmitter.cpp.o
CMakeFiles/llvm-tblgen.dir/SubtargetEmitter.cpp.o CMakeFiles/llvm-tblgen.
dir/TableGen.cpp.o CMakeFiles/llvm-tblgen.dir/X86DisassemblerTables.cpp.o
CMakeFiles/llvm-tblgen.dir/X86ModRMFilters.cpp.o CMakeFiles/llvm
-tblgen.dir/X86RecognizableInstr.cpp.o CMakeFiles/llvm-
tblgen.dir/CTagsEmitter.cpp.o -o ../../bin/llvm-tblgen
../../lib/libLLVMSupport.a
../../lib/libLLVMTableGen.a ../../lib/libLLVMSupport.a -lrt -ldl -lcurses -
latomic -lpthread -lz -lm -Wl,-rpath,"\$ORIGIN/../lib"
CMakeFiles/llvm-tblgen.dir/AsmMatcherEmitter.cpp.o: In function `(anonymous
namespace)::AsmMatcherEmitter::run(llvm::raw_ostream&)':
/home/guy-format/llvm/utils/TableGen/AsmMatcherEmitter.cpp:
(.text._ZN12_GLOBAL__N_117AsmMatcherEmitter3runERN4llvm11raw_ostreamE+0xacf):
u
ndefined reference to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::~basic_string()'
and many such a line.
Can anybody help?
--
Guy Maurel/germany
More information about the cfe-dev
mailing list