http://llvm.org/bugs/show_bug.cgi?id=4522
Summary: cmake builds uses configure builds tblgen output instead
of generating its own
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: build-problem
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
quite often when someone have updated any tablegen files i face cmake errors
like these:
Scanning dependencies of target ARMCodeGenTable_gen
[ 42%] Building ARMGenRegisterInfo.h.inc.tmp...
[ 42%] Building ARMGenRegisterInfo.h.inc...
[ 42%] Building ARMGenRegisterNames.inc.tmp...
[ 42%] Building ARMGenRegisterNames.inc...
[ 42%] Building ARMGenRegisterInfo.inc.tmp...
[ 42%] Building ARMGenRegisterInfo.inc...
[ 42%] Building ARMGenInstrNames.inc.tmp...
[ 42%] Building ARMGenInstrNames.inc...
[ 42%] Building ARMGenInstrInfo.inc.tmp...
[ 42%] Building ARMGenInstrInfo.inc...
[ 42%] Building ARMGenCodeEmitter.inc.tmp...
[ 42%] Building ARMGenCodeEmitter.inc...
[ 42%] Building ARMGenAsmWriter.inc.tmp...
[ 42%] Building ARMGenAsmWriter.inc...
[ 42%] Building ARMGenDAGISel.inc.tmp...
[ 42%] Building ARMGenDAGISel.inc...
[ 42%] Building ARMGenCallingConv.inc.tmp...
[ 42%] Building ARMGenCallingConv.inc...
[ 42%] Building ARMGenSubtarget.inc.tmp...
[ 42%] Building ARMGenSubtarget.inc...
[ 44%] Built target ARMCodeGenTable_gen
Scanning dependencies of target LLVMARMCodeGen
[ 44%] Building CXX object
lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMBaseInstrInfo.cpp.o
[ 44%] Building CXX object
lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMCodeEmitter.cpp.o
[ 44%] Building CXX object
lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMConstantIslandPass.cpp.o
[ 45%] Building CXX object
lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMConstantPoolValue.cpp.o
[ 45%] Building CXX object
lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMInstrInfo.cpp.o
[ 45%] Building CXX object
lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMISelDAGToDAG.cpp.o
/home/xranby/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp: In member function
'llvm::SDNode*<unnamed>::ARMDAGToDAGISel::Select(llvm::SDValue)':
/home/xranby/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1057: error: 't2MOVCCs' is
not a member of 'llvm::ARM'
/home/xranby/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1088: error: 't2MOVCCi' is
not a member of 'llvm::ARM'
/home/xranby/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1126: error: 't2MOVCCr' is
not a member of 'llvm::ARM'
make[2]: ***
[lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/ARMISelDAGToDAG.cpp.o] Error 1
make[1]: *** [lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/all] Error 2
Instinctively when i see these cmake errors i try a configure build in the
source directory to check if anything works.. the configure builds then
succeed.. so ok back to cmake again to check what wnet wrong in the first place
And now my cmake build succeeded as well without any sourcecode changes.
The only conclusion i can make of this are that the cmake build uses some
output from the configure build
my guess are that it uses the configure builds tablegen generated inc files.
Could it be that my cmake build gets confused if i have previously run a
configure build in the llvm sourcetree that cmake fetches its sources from?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs