[cfe-dev] MinGW 32-Bit Support?

Nikolai Kosjar via cfe-dev cfe-dev at lists.llvm.org
Fri Mar 24 07:45:37 PDT 2017


Hi!

I've trouble building/running llvm+clang 4.0 with/from mingw 32 bit for 
different mingw versions (4.9.y/5.x.y) [1]. When building in release 
mode, llvm-tblgen.exe crashes. I can overcome this by explicitly 
building llvm-tblgen.exe (and only that one) in debug mode, but then I 
get funny crashes with libclang during parse operations.

I get no crashes for libclang parse operations from binaries produced by 
MSVC2015 (for both, 32 and 64 bit) and mingw 64 bit.

According to clang's default target, it seems that llvm/clang is build 
with MSVC nowadays, starting with version 3.8.x:

   D:\>D:\usr\llvm-3.7.1-win32\bin\clang --version
   clang version 3.7.1 (tags/RELEASE_371/final)
   Target: i686-pc-windows-gnu
   Thread model: posix

   D:\>D:\usr\llvm-3.8.1-win32\bin\clang --version
   clang version 3.8.1 (branches/release_38)
   Target: i686-pc-windows-msvc
   Thread model: posix
   InstalledDir: D:\usr\llvm-3.8.1-win32\bin


Does anybody know why this has changed? I'm asking because last time I 
compared, libclang binaries build with mingw were significantly faster 
than the ones from MSVC. In addition to this, the profile guided 
optimization support of mingw produced faster binaries than the one 
optimized with MSVC.

Can somebody reproduce [1] with mingw 32 bit?
Any plans to make a build bot/job for mingw 32 bit available (again?) so 
that such errors will be caught earlier?

Nikolai


[1] https://bugs.llvm.org/show_bug.cgi?id=32018



More information about the cfe-dev mailing list