<div dir="ltr">Hello,<br><div><br>Sure, I can see that. But the question is: how do I fix it? What am I doing wrong? Why is it forwarding all arguments?<br>There is no big guide that mentions how to fix these problems and get clang up and running.<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 27 May 2013 17:01, Anton Korobeynikov <span dir="ltr"><<a href="mailto:anton@korobeynikov.info" target="_blank">anton@korobeynikov.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<br>
<br>
This is well-known problem of forwarding unsupported arguments to gcc.<br>
In this particular case it's -Weverything which is forwarded to<br>
mingw32's g++ which is used like an assembler here.<br>
<div><div class="h5"><br>
On Sun, May 26, 2013 at 10:47 PM, Mailing List Email<br>
<<a href="mailto:mailinglistx@gmail.com">mailinglistx@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I am building clang from the latest svn.<br>
> I've successfully managed to build clang, but I cannot compile a simple<br>
> program.<br>
> So I built clang with mingw (x86) based on gcc 4.8.0 and copied the<br>
> executables to the mingw bin directory.<br>
><br>
> This is the command line I use to build a simple program:<br>
><br>
> clang++ -isystem"D:\Dropbox\Stuff\Projects\llvm\build\lib\clang\3.4\include"<br>
> -isystem"C:\test\mingw32-4.8.0-x86\i686-pc-mingw32\include"<br>
> -isystem"C:\test\mingw32-4.8.0-x86\include\c++\4.8.0"<br>
> -isystem"C:\test\mingw32-4.8.0-x86\include\c++\4.8.0\i686-pc-mingw32"<br>
> -isystem"C:\Program Files\Gecode\include"<br>
> -L"D:\Dropbox\Stuff\Projects\gecode-4.0.0\build_clang" -Weverything<br>
> -std=c++11 -Wno-c++98-compat -Wno-c++98-compat-pedantic<br>
> -Wno-exit-time-destructors -Wno-global-constructors Temp.cpp<br>
><br>
> When I compile the source, I get this:<br>
><br>
> clang version 3.4 (182718)<br>
> Target: i686-pc-mingw32<br>
> Thread model: posix<br>
>  "C:/test/mingw32-4.8.0-x86/bin/clang++.exe" -cc1 -triple i686-pc-mingw32 -S<br>
> -disable-free -disable-llvm-verifier -main-file-name Temp.cpp<br>
> -mrelocation-model static -mdisable-fp-elim -fmath-errno<br>
> -mconstructor-aliases -target-cpu pentium4 -v -resource-dir<br>
> "C:/test/mingw32-4.8.0-x86/bin\\..\\lib\\clang\\3.4" -isystem<br>
> "D:\\Dropbox\\Stuff\\Projects\\llvm\\build\\lib\\clang\\3.4\\include"<br>
> -isystem "C:\\test\\mingw32-4.8.0-x86\\i686-pc-mingw32\\include" -isystem<br>
> "C:\\test\\mingw32-4.8.0-x86\\include\\c++\\4.8.0" -isystem<br>
> "C:\\test\\mingw32-4.8.0-x86\\include\\c++\\4.8.0\\i686-pc-mingw32" -isystem<br>
> "C:\\Program Files\\Gecode\\include" -Weverything -Wno-c++98-compat<br>
> -Wno-c++98-compat-pedantic -Wno-exit-time-destructors<br>
> -Wno-global-constructors -std=c++11 -fdeprecated-macro<br>
> -fno-dwarf-directory-asm -ferror-limit 19 -fmessage-length 0 -mstackrealign<br>
> -fno-use-cxa-atexit -fobjc-runtime=gcc -fobjc-default-synthesize-properties<br>
> -fcxx-exceptions -fexceptions -fdiagnostics-show-option -backend-option<br>
> -vectorize-loops -o C:/Users/Mana/AppData/Local/Temp/Temp-155285.s -x c++<br>
> Temp.cpp<br>
> clang -cc1 version 3.4 based upon LLVM 3.4svn default target i686-pc-mingw32<br>
><br>
>  "C:/test/mingw32-4.8.0-x86/bin/i686-pc-mingw32-g++.exe" -isystem<br>
> "D:\\Dropbox\\Stuff\\Projects\\llvm\\build\\lib\\clang\\3.4\\include"<br>
> -isystem "C:\\test\\mingw32-4.8.0-x86\\i686-pc-mingw32\\include" -isystem<br>
> "C:\\test\\mingw32-4.8.0-x86\\include\\c++\\4.8.0" -isystem<br>
> "C:\\test\\mingw32-4.8.0-x86\\include\\c++\\4.8.0\\i686-pc-mingw32" -isystem<br>
> "C:\\Program Files\\Gecode\\include"<br>
> "-LD:\\Dropbox\\Stuff\\Projects\\gecode-4.0.0\\build_clang" -Weverything<br>
> -std=c++11 -Wno-c++98-compat -Wno-c++98-compat-pedantic<br>
> -Wno-exit-time-destructors -Wno-global-constructors -v -c -m32 -o<br>
> C:/Users/Mana/AppData/Local/Temp/Temp-155286.o -x assembler<br>
> C:/Users/Mana/AppData/Local/Temp/Temp-155285.s<br>
> Built by Equation Solution <<a href="http://www.Equation.com" target="_blank">http://www.Equation.com</a>>.<br>
> Using built-in specs.<br>
> COLLECT_GCC=C:/test/mingw32-4.8.0-x86/bin/i686-pc-mingw32-g++.exe<br>
> i686-pc-mingw32-g++.exe: error: unrecognized command line option<br>
> '-Weverything'<br>
> Target: i686-pc-mingw32<br>
> Configured with: ../gcc-4.8.0-mingw/configure --host=i686-pc-mingw32<br>
> --build=x86_64-unknown-linux-gnu --target=i686-pc-mingw32<br>
> --prefix=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/gcc/4.8.0<br>
> --with-gcc --with-gnu-as --with-gnu-ld<br>
> --with-cloog=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/cloog<br>
> --with-gmp=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/gmp<br>
> --with-mpfr=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpfr<br>
> --with-mpc=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/mpc<br>
> --with-isl=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/isl<br>
> --enable-cloog-backend=isl<br>
> --with-sysroot=/home/gfortran/gcc-home/binary/mingw32/cross/x86_32/gcc/4.8.0<br>
> --disable-shared --disable-nls --disable-tls --disable-win32-registry<br>
> --enable-build-with-cxx --enable-libquadmath-support --enable-libquadmath<br>
> --enable-languages=c,c++,fortran --enable-libgomp --enable-threads=win32<br>
> --enable-lto --enable-static --enable-shared=lto-plugin --enable-plugins<br>
> --enable-ld=yes<br>
> Thread model: win32<br>
> gcc version 4.8.0 (GCC)<br>
> clang++.exe: error: assembler (via gcc) command failed with exit code 1 (use<br>
> -v to see invocation)<br>
><br>
> What is the problem here? Is clang incorrectly configured or is this version<br>
> of g++ just incompatible with clang++?<br>
><br>
> To make clang, I simply use:<br>
><br>
> cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release ..<br>
> start /low /affinity 7f /b ninja<br>
><br>
> (Using mingw based on gcc 4.8.0.)<br>
><br>
</div></div>> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
With best regards, Anton Korobeynikov<br>
Faculty of Mathematics and Mechanics, Saint Petersburg State University<br>
</font></span></blockquote></div><br></div>