[cfe-dev] i686-pc-mingw32-g++.exe: error: unrecognized command line option '-Weverything'

Mailing List Email mailinglistx at gmail.com
Mon May 27 09:16:04 PDT 2013


Hello,

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?
There is no big guide that mentions how to fix these problems and get clang
up and running.


On 27 May 2013 17:01, Anton Korobeynikov <anton at korobeynikov.info> wrote:

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


More information about the cfe-dev mailing list