[cfe-dev] MinGW problem with GSL

Ruben Van Boxem vanboxem.ruben at gmail.com
Wed Jul 6 14:37:04 PDT 2011


Hi,

Clang seems to have a problem with some assembler files when building
GSL (configured with --host=x86_64-w64-mingw32 CC="clang -v"):

> libtool: compile:  clang -v -DHAVE_CONFIG_H -I. -I/m/Development/Source/gsl-1.15/specfunc -I.. -I/m/Development/Source/gsl-1.15 -g -O2 -MT hyperg_1F1.lo -MD -MP -MF .deps/hyperg_1F1.Tpo -c /m/Development/Source/gsl-1.15/specfunc/hyperg_1F1.c
> clang version 3.0 (http://llvm.org/git/clang.git 5cbe101b502e06d16bc77df45a27ce8bc13f33c8)
> Target: x86_64-w64-mingw32
> Thread model: posix
> "m:/Development/mingw64/bin/clang.exe" -cc1 -triple x86_64-w64-mingw32 -S -disable-free -disable-llvm-verifier -main-file-name hyperg_1F1.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1.20110627 -momit-leaf-frame-pointer -v -g -coverage-file C:/Users/Ruben/AppData/Local/Temp/cc-236916.s -resource-dir m:/Development/mingw64/bin\..\lib\clang\3.0 -dependency-file .deps/hyperg_1F1.Tpo -sys-header-deps -MP -MT hyperg_1F1.lo -D HAVE_CONFIG_H -I . -I m:/Development/Source/gsl-1.15/specfunc -I .. -I m:/Development/Source/gsl-1.15 -O2 -ferror-limit 19 -fmessage-length 500 -fno-use-cxa-atexit -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o C:/Users/Ruben/AppData/Local/Temp/cc-236916.s -x c m:/Development/Source/gsl-1.15/specfunc/hyperg_1F1.c
> clang -cc1 version 3.0 based upon llvm 3.0svn hosted on x86_64-w64-mingw32
> ignoring nonexistent directory "/usr/local/include"
> ignoring nonexistent directory "m:/Development/mingw64/bin/../lib/clang/3.0/../../../i686-w64-mingw32/include"
> ignoring nonexistent directory "/mingw/include"
> ignoring nonexistent directory "c:/mingw/include"
> ignoring nonexistent directory "/usr/include"
> #include "..." search starts here:
> #include <...> search starts here:
> .
> m:/Development/Source/gsl-1.15/specfunc
> ..
> m:/Development/Source/gsl-1.15
> m:/Development/mingw64/bin/../lib/clang/3.0/include
> m:/Development/mingw64/bin/../lib/clang/3.0/../../../x86_64-w64-mingw32/include
> m:/Development/mingw64/bin/../lib/clang/3.0/../../../include
> End of search list.
> "m:/Development/mingw64/bin/gcc.exe" -v -D HAVE_CONFIG_H -I . -I m:/Development/Source/gsl-1.15/specfunc -I .. -I m:/Development/Source/gsl-1.15 -O2 -MT hyperg_1F1.lo -MD -MP -MF .deps/hyperg_1F1.Tpo -c -m64 -o hyperg_1F1.o -x assembler C:/Users/Ruben/AppData/Local/Temp/cc-236916.s
> Using built-in specs.
> COLLECT_GCC=m:/Development/mingw64/bin/gcc.exe
> COLLECT_LTO_WRAPPER=m:/development/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.6.2/lto-wrapper.exe
> Target: x86_64-w64-mingw32
> Configured with: /home/ruben/mingw-w64/toolchain/src/gcc/configure --host=x86_64-w64-mingw32 --build=x86_64-gnu-linux --target=x86_64-w64-mingw32 --with-sysroot=/home/ruben/mingw-w64/toolchain/mingw64/mingw64 --prefix=/home/ruben/mingw-w64/toolchain/mingw64/mingw64 --with-libiconv-prefix=/home/ruben/mingw-w64/toolchain/mingw64/libs --with-libexpat-prefix=/home/ruben/mingw-w64/toolchain/mingw64/libs --with-gmp=/home/ruben/mingw-w64/toolchain/mingw64/libs --with-mpfr=/home/ruben/mingw-w64/toolchain enable-lto --disable-multilib --disable-win32-registry --disable-rpath --disable-werror CFLAGS='-O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-parallelize-all' LDFLAGS=
> Thread model: win32
> gcc version 4.6.2 20110705 (prerelease) (GCC)
> COLLECT_GCC_OPTIONS='-v' '-D' 'HAVE_CONFIG_H' '-I' '.' '-I' 'm:/Development/Source/gsl-1.15/specfunc' '-I' '..' '-I' 'm:/Development/Source/gsl-1.15' '-O2' '-MT' 'hyperg_1F1.lo' '-MD' '-MP' '-MF' '.deps/hyperg_1F1.Tpo' '-c' '-m64' '-o' 'hyperg_1F1.o' '-mtune=generic' '-march=x86-64'
> m:/development/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.6.2/../../../../x86_64-w64-mingw32/bin/as.exe --64 -o hyperg_1F1.o C:/Users/Ruben/AppData/Local/Temp/cc-236916.s
> C:/Users/Ruben/AppData/Local/Temp/cc-236916.s: Assembler messages:
> C:/Users/Ruben/AppData/Local/Temp/cc-236916.s:1198: Error: operand type mismatch for `fld'
> C:/Users/Ruben/AppData/Local/Temp/cc-236916.s:2824: Error: operand type mismatch for `fld'
> clang: error: assembler (via gcc) command failed with exit code 1 (use -v to see invocation)
> make[2]: *** [hyperg_1F1.lo] Error 1
> make[2]: Leaving directory `/home/Ruben/gsl/specfunc'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/Ruben/gsl'
> make: *** [all] Error 2

GCC does not have this problem. I can't discern any notable difference
in config.log. Could it be something wrt passing options down to the
GNU tools?

Ruben




More information about the cfe-dev mailing list