Clang hangs when compiling Gecode on Windows

Hi all,

I’m trying to compile gecode with clang on windows, but it hangs when trying to compile gist. I see no actual I/O activity, but it keeps eating up one core. Leaving it alone seems to not work either. It doesn’t complete.

I compiled clang myself, using this script:

svn up .
svn up tools/clang
cd build_mingw
cmake -G “MinGW Makefiles” -DCMAKE_BUILD_TYPE=Release …
mingw32-make -j 4
copy bin*.* C:\test\mingw32-dw2-4.6.3\bin /y

I compile gecode using:

cd build_clang
set build=%CD:=/%
set C=-DCMAKE_C_COMPILER=clang.exe
set CXX=-DCMAKE_CXX_COMPILER=clang++.exe
cmake -G “MinGW Makefiles” -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=“-std=c++11 -w -isystem%build% -isystem"D:/Dropbox/Stuff/Projects/llvm/build_mingw/lib/clang/3.4/include” -isystem"C:/test/mingw64-4.8/i686-w64-mingw32/include" -isystem"C:/test/mingw64-4.8/i686-w64-mingw32/include/c++/4.8.0" -isystem"C:/test/mingw64-4.8/i686-w64-mingw32/include/c++/4.8.0/i686-w64-mingw32"" %C% %CXX% …
set C=
set CXX=
mingw32-make -j 4

But it hangs when compiling gist (around ~94% finished).

Any ideas? Is this a bug in clang? It compiles fine with gcc.