[LLVMdev] "nmake check" doesn't work for MSVC

Ruben Van Boxem vanboxem.ruben at gmail.com
Sat Jan 1 04:23:39 PST 2011


Hi,

I built llvm+Clang for MSVC 10 with

cmake ../../Source/LLVM -G"NMake Makefiles"
nmake

And I tried to do a
nmake check

(which works for MinGW and "mingw32-make check")

and get the following error:
>Scanning dependencies of target check
>[100%] Running LLVM regression tests
>Traceback (most recent call last):
>  File "M:/Development/Source/LLVM/utils/lit/lit.py", line 5, in <module>
>    lit.main()
>  File "M:\Development\Source\LLVM\utils\lit\lit\main.py", line 515, in main
>    testSuiteCache, localConfigCache)[1])
>  File "M:\Development\Source\LLVM\utils\lit\lit\main.py", line 230, in getTests
>    ts,path_in_suite = getTestSuite(path, litConfig, testSuiteCache)
>  File "M:\Development\Source\LLVM\utils\lit\lit\main.py", line 199, in getTestSuite
>    ts, relative = search(item)
>  File "M:\Development\Source\LLVM\utils\lit\lit\main.py", line 183, in search
>    cache[path] = res = search1(path)
>  File "M:\Development\Source\LLVM\utils\lit\lit\main.py", line 174, in search1
>    cfg = TestingConfig.frompath(cfgpath, None, litConfig, mustExist = True)
>  File "M:\Development\Source\LLVM\utils\lit\lit\TestingConfig.py", line 44, in frompath
>    exec f in cfg_globals
>  File "M:\Development\x64-msvc\llvm\test\lit.site.cfg", line 19, in <module>
>    lit.load_config(config, "M:/Development/Source/LLVM/test/lit.cfg")
>  File "M:\Development\Source\LLVM\utils\lit\lit\LitConfig.py", line 65, in load_config
>    config = config)
>  File "M:\Development\Source\LLVM\utils\lit\lit\TestingConfig.py", line 44, in frompath
>    exec f in cfg_globals
>  File "M:/Development/Source/LLVM/test/lit.cfg", line 147, in <module>
>    site_exp[sub].replace('-fno-exceptions', '')))
>KeyError: 'compile_cxx'
>NMAKE : fatal error U1077: 'M:\Development\utils\Python\python.exe' : return code '0x1'
>Stop.
>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
>Stop.
>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
>Stop.
>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
>Stop.

What to do? Thanks!

Ruben



More information about the llvm-dev mailing list