[cfe-dev] Problem building clang from source on Windows with mingw-64/gcc-5.3

Edward Diener via cfe-dev cfe-dev at lists.llvm.org
Tue Dec 13 20:44:47 PST 2016


I continue to have problems building clang from source on Windows using 
mingw-64/gcc-5.3. My error says:

C:\Programming\VersionControl\bninja_clang>ninja
[16/1745] Building AMDGPUGenSubtargetInfo.inc...
FAILED: cmd.exe /C "cd /D 
C:\Programming\VersionControl\bninja_clang\lib\Target\AMDGPU
&& C:\Programming\VersionControl\bninja_clang\bin\llvm-tblgen.exe 
-gen-subtarget
-I E:/Programming/VersionControl/llvm/lib/Target/AMDGPU -I 
E:/Programming/VersionControl/llvm/include
-I E:/Programming/VersionControl/llvm/lib/Target 
E:/Programming/VersionControl/llvm/lib/Target/AMDGPU/AMDGPU.td
-o 
C:/Programming/VersionControl/bninja_clang/lib/Target/AMDGPU/AMDGPUGenSubtargetInfo.inc.tmp"
Wrote crash dump file 
"C:\Users\eldiener\AppData\Local\Temp\llvm-tblgen.exe-70b1db.dmp"
#0 0x004ecf4d 
_ZN12_GLOBAL__N_116SubtargetEmitter14EmitSchedModelERN4llvm11raw_ostreamE.constprop.526
(C:\Programming\VersionControl\bninja_clang\bin\llvm-tblgen.exe+0xecf4d)
#1 0x055f4b10
#2 0x776be40c (C:\Windows\SysWOW64\ntdll.dll+0x2e40c)
#3 0x776be172 (C:\Windows\SysWOW64\ntdll.dll+0x2e172)
#4 0x76c7ec54 (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 0x76e7336a (C:\Windows\syswow64\kernel32.dll+0x1336a)
#8 0x776c9902 (C:\Windows\SysWOW64\ntdll.dll+0x39902)
#9 0x776c98d5 (C:\Windows\SysWOW64\ntdll.dll+0x398d5)
[16/1745] 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-ee97f9.dmp"
#0 0x004ecf4d 
_ZN12_GLOBAL__N_116SubtargetEmitter14EmitSchedModelERN4llvm11raw_ostreamE.constprop.526
(C:\Programming\VersionControl\bninja_clang\bin\llvm-tblgen.exe+0xecf4d)
#1 0x04bd2620
#2 0x776be40c (C:\Windows\SysWOW64\ntdll.dll+0x2e40c)
#3 0x776be172 (C:\Windows\SysWOW64\ntdll.dll+0x2e172)
#4 0x76c7ec54 (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 0x76e7336a (C:\Windows\syswow64\kernel32.dll+0x1336a)
#8 0x776c9902 (C:\Windows\SysWOW64\ntdll.dll+0x39902)
#9 0x776c98d5 (C:\Windows\SysWOW64\ntdll.dll+0x398d5)
[16/1745] Building ARMGenSubtargetInfo.inc...
FAILED: cmd.exe /C "cd /D 
C:\Programming\VersionControl\bninja_clang\lib\Target\ARM
&& C:\Programming\VersionControl\bninja_clang\bin\llvm-tblgen.exe 
-gen-subtarget
-I E:/Programming/VersionControl/llvm/lib/Target/ARM -I 
E:/Programming/VersionControl/llvm/include
-I E:/Programming/VersionControl/llvm/lib/Target 
E:/Programming/VersionControl/llvm/lib/Target/ARM/ARM.td
-o 
C:/Programming/VersionControl/bninja_clang/lib/Target/ARM/ARMGenSubtargetInfo.inc.tmp"
Wrote crash dump file 
"C:\Users\eldiener\AppData\Local\Temp\llvm-tblgen.exe-fce97e.dmp"
#0 0x004ecf4d 
_ZN12_GLOBAL__N_116SubtargetEmitter14EmitSchedModelERN4llvm11raw_ostreamE.constprop.526
(C:\Programming\VersionControl\bninja_clang\bin\llvm-tblgen.exe+0xecf4d)
#1 0x04bf8148
#2 0x776be40c (C:\Windows\SysWOW64\ntdll.dll+0x2e40c)
#3 0x776be172 (C:\Windows\SysWOW64\ntdll.dll+0x2e172)
#4 0x76c7ec54 (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 0x76e7336a (C:\Windows\syswow64\kernel32.dll+0x1336a)
#8 0x776c9902 (C:\Windows\SysWOW64\ntdll.dll+0x39902)
#9 0x776c98d5 (C:\Windows\SysWOW64\ntdll.dll+0x398d5)
[16/1745] Building ARMGenMCPseudoLowering.inc...
ninja: build stopped: subcommand failed.

Does anyone have any ideas what is going on here ? This looks like it 
has something to do with running "llvm-tblgen.exe" but I have no idea 
what it is or why it is needed to build the clang executables.




More information about the cfe-dev mailing list