[LLVMbugs] [Bug 9680] New: KeyError: 'compile_cxx' when using cmake -G "NMake Makefiles"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Apr 11 10:38:53 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9680
Summary: KeyError: 'compile_cxx' when using cmake -G "NMake
Makefiles"
Product: Test Suite
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: lit
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dneto.llvm at gmail.com
CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org
When:
- using Cmake to generate NMake makefiles.
- then running "nmake check"
- I get a Python KeyError. See below for the stack trace.
I tracked it down to Cmake generating a test/site.exp with nmake-style
continuation lines, and llvm/test/lit.cfg not handling those
continuation lines.
For example, in my site.exp I get the following (on LLVM 2.9):
set compile_c ""
set compile_cxx "c:/devstudio2008/VC/bin/amd64/cl.exe @ /Fd -c
<< -ID:/llvm/llvm-nmake-dbg/include -Id:/llvm/llvm/include"
set link ""
set llvmgcc ""
set llvmgxx ""
But lit.cfg can't parse the "<< " line as a continuation of the
definition of compile_cxx.
Here is the Python stack trace.
[100%] Running LLVM regression tests
Traceback (most recent call last):
File "D:/llvmtrunk/llvm/utils/lit/lit.py", line 5, in <module>
lit.main()
File "D:\llvmtrunk\llvm\utils\lit\lit\main.py", line 515, in main
testSuiteCache, localConfigCache)[1])
File "D:\llvmtrunk\llvm\utils\lit\lit\main.py", line 230, in getTests
ts,path_in_suite = getTestSuite(path, litConfig, testSuiteCache)
File "D:\llvmtrunk\llvm\utils\lit\lit\main.py", line 199, in getTestSuite
ts, relative = search(item)
File "D:\llvmtrunk\llvm\utils\lit\lit\main.py", line 183, in search
cache[path] = res = search1(path)
File "D:\llvmtrunk\llvm\utils\lit\lit\main.py", line 174, in search1
cfg = TestingConfig.frompath(cfgpath, None, litConfig, mustExist = True)
File "D:\llvmtrunk\llvm\utils\lit\lit\TestingConfig.py", line 45, in frompath
exec f in cfg_globals
File "D:\llvmtrunk\llvm-nmake-dbg64\test\lit.site.cfg", line 20, in <module>
lit.load_config(config, "D:/llvmtrunk/llvm/test/lit.cfg")
File "D:\llvmtrunk\llvm\utils\lit\lit\LitConfig.py", line 65, in load_config
config = config)
File "D:\llvmtrunk\llvm\utils\lit\lit\TestingConfig.py", line 45, in frompath
exec f in cfg_globals
File "D:/llvmtrunk/llvm/test/lit.cfg", line 166, in <module>
site_exp[sub].replace('-fno-exceptions', '')))
KeyError: 'compile_cxx'
NMAKE : fatal error U1077: 'S:\tools\python\2.6.4\windows64\bin\python.exe' :
return code '0x1'
Stop.
--
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