[Bug other/55925] Unrecognized command line option '-mfxsr' when building x86_64-w64-mingw32 native compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55925 --- Comment #3 from Uros Bizjak ubizjak at gmail dot com 2013-01-14 13:37:14 UTC --- (In reply to comment #2) How did I configure which GCC? The cross compiler or the native one? The crosscompiler.
[Bug other/55925] Unrecognized command line option '-mfxsr' when building x86_64-w64-mingw32 native compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55925 --- Comment #4 from lailavrazda1979 at gmail dot com 2013-01-14 21:26:36 UTC --- I tried building several compilers (4.7.2), none of which understand the '-mfxsr' option. One was configured with: ../gcc-4.7.2/configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=x86_64-w64-mingw32 --prefix=$CROSS_DIR --libexecdir=$CROSS_DIR/lib --enable-clocale=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-targets=all --enable-cloog-backend=ppl --disable-shared --disable-nls --disable-werror --with-host-libstdcxx=-lstdc++ -lsupc++ --with-local-prefix=$CROSS_DIR --with-sysroot=$CROSS_DIR --with-ppl=$CROSS_DIR --with-cloog=$CROSS_DIR make all-gcc make install-gcc After that, I build the mingw-w64 library, went back to my GCC build dir, and did: make make install
[Bug other/55925] Unrecognized command line option '-mfxsr' when building x86_64-w64-mingw32 native compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55925 --- Comment #5 from Uros Bizjak ubizjak at gmail dot com 2013-01-14 21:53:16 UTC --- (In reply to comment #4) I tried building several compilers (4.7.2), none of which understand the '-mfxsr' option. One was configured with: True. -mfxsr option was added to 4.8.0. After that, I build the mingw-w64 library, went back to my GCC build dir, and did: make make install This command should first build a 4.8.0 crosscompiler, and then compile the library with the newly built compiler. The command should look like: /home/uros/gcc-build/./gcc/xgcc -B/home/uros/gcc-build/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include-g -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -mlong-double-80 -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fpic -mlong-double-80 -I. -I. -I../.././gcc -I../../../gcc-svn/trunk/libgcc -I../../../gcc-svn/trunk/libgcc/. -I../../../gcc-svn/trunk/libgcc/../gcc -I../../../gcc-svn/trunk/libgcc/../include -I../../../gcc-svn/trunk/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o crtfastmath.o -MT crtfastmath.o -MD -MP -MF crtfastmath.dep -mfxsr -msse -c ../../../gcc-svn/trunk/libgcc/config/i386/crtfastmath.c As you can see, using -mfxsr does not fail here.
[Bug other/55925] Unrecognized command line option '-mfxsr' when building x86_64-w64-mingw32 native compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55925 --- Comment #6 from lailavrazda1979 at gmail dot com 2013-01-14 23:18:30 UTC --- So, you need GCC 4.8 to build GCC 4.8? That's just... why? Doesn't that mean it's basically impossible to build GCC 4.8 without a binary of it first?
[Bug other/55925] Unrecognized command line option '-mfxsr' when building x86_64-w64-mingw32 native compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55925 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID --- Comment #7 from Andrew Pinski pinskia at gcc dot gnu.org 2013-01-14 23:32:17 UTC --- (In reply to comment #6) So, you need GCC 4.8 to build GCC 4.8? That's just... why? Doesn't that mean it's basically impossible to build GCC 4.8 without a binary of it first? No you need a 4.8 cross compiler to build a 4.8 native compiler. So you should build a 4.8 cross compiler which will include all the target libraries and then you do a 4.8 Canadian cross (you just need to do make all-host make install-host as you already have all the libraries done by the normal cross).
[Bug other/55925] Unrecognized command line option '-mfxsr' when building x86_64-w64-mingw32 native compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55925 lailavrazda1979 at gmail dot com changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID | --- Comment #8 from lailavrazda1979 at gmail dot com 2013-01-14 23:43:54 UTC --- Oh, okay. That makes sense. Thank you.
[Bug other/55925] Unrecognized command line option '-mfxsr' when building x86_64-w64-mingw32 native compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55925 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID --- Comment #9 from Andrew Pinski pinskia at gcc dot gnu.org 2013-01-15 01:17:32 UTC --- .
[Bug other/55925] Unrecognized command line option '-mfxsr' when building x86_64-w64-mingw32 native compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55925 --- Comment #1 from Uros Bizjak ubizjak at gmail dot com 2013-01-13 13:39:25 UTC --- (In reply to comment #0) When building a native x86_64-w64-mingw32 compiler using a 4.7.2 cross compiler, I get the following: x86_64-w64-mingw32-gcc -L/root/win64-build/native/x86_64-w64-mingw32/lib [...] I can't find any documentation at all on this '-mfxsr' option. What is it, and why is it being used here? crtfastmath.c should be compiled with newly built compiler. -mfxsr option is used to compile __builtin_ia32_fxsave builtin to fxsr instruction, newly built compiler will recognize this option. How did you configure gcc?
[Bug other/55925] Unrecognized command line option '-mfxsr' when building x86_64-w64-mingw32 native compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55925 --- Comment #2 from lailavrazda1979 at gmail dot com 2013-01-13 23:31:01 UTC --- How did I configure which GCC? The cross compiler or the native one?