[LLVMbugs] [Bug 4522] New: cmake builds uses configure builds tblgen output instead of generating its own

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jul 8 14:07:51 PDT 2009


           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: unassignedbugs at nondot.org
        ReportedBy: xerxes at zafena.se
                CC: llvmbugs at cs.uiuc.edu

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
[ 44%] Building CXX object
[ 44%] Building CXX object
[ 45%] Building CXX object
[ 45%] Building CXX object
[ 45%] Building CXX object
/home/xranby/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp: In member function
/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.

More information about the llvm-bugs mailing list