[cfe-dev] Error building clang from source on Windows with CMake, ninja, and mingw-64/gcc
Edward Diener via cfe-dev
cfe-dev at lists.llvm.org
Thu Dec 8 15:47:03 PST 2016
Attempting to build clang from the latest source, on Windows 7 with
mingw-64/gcc-5.3 I get:
[5/1764] Building AArch64GenSubtargetInfo.inc...
FAILED: cmd.exe /C "cd /D
C:\Programming\VersionControl\bninja_clang\lib\Target\AArch64
&& C:\Programming\VersionControl\bninja_clang\bin\llvm-tblgen.exe
-gen-subtarget
-I E:/Programming/VersionControl/llvm/lib/Target/AArch64 -I
E:/Programming/VersionControl/llvm/include
-I E:/Programming/VersionControl/llvm/lib/Target
E:/Programming/VersionControl/llvm/lib/Target/AArch64/AArch64.td
-o
C:/Programming/VersionControl/bninja_clang/lib/Target/AArch64/AArch64GenSubtargetInfo.inc.tmp"
Wrote crash dump file
"C:\Users\eldiener\AppData\Local\Temp\llvm-tblgen.exe-ce5f97.dmp"
#0 0x004ecf4d
_ZN12_GLOBAL__N_116SubtargetEmitter14EmitSchedModelERN4llvm11raw_ostreamE.constprop.526
(C:\Programming\VersionControl\bninja_clang\bin\llvm-tblgen.exe+0xecf4d)
#1 0x04ad2620
#2 0x77a7e40c (C:\Windows\SysWOW64\ntdll.dll+0x2e40c)
#3 0x77a7e172 (C:\Windows\SysWOW64\ntdll.dll+0x2e172)
#4 0x7560ec54 (C:\Windows\syswow64\KERNELBASE.dll+0x1ec54)
#5 0x005c73d1 main
(C:\Programming\VersionControl\bninja_clang\bin\llvm-tblgen.exe+0x1c73d1)
#6 0x004013e2 __tmainCRTStartup
(C:\Programming\VersionControl\bninja_clang\bin\llvm-tblgen.exe+0x13e2)
#7 0x7670336a (C:\Windows\syswow64\kernel32.dll+0x1336a)
#8 0x77a89902 (C:\Windows\SysWOW64\ntdll.dll+0x39902)
#9 0x77a898d5 (C:\Windows\SysWOW64\ntdll.dll+0x398d5)
[5/1764] Building AMDGPUGenDAGISel.inc...
ninja: build stopped: subcommand failed.
Any idea why this is failing ?
If I try with mingw-64/gcc-6.2 I get the same error. Perhaps I need to
adjust some CMake configuration but I have no idea what I need to change.
More information about the cfe-dev
mailing list