My cpu is an amd athlon II 240 and My CFLAGS is " -O3 -pipe -march=sse
-mfpmath=sse -mveclibabi=svml", All went ok until compile libgomp multilib 32
bit.

the compiling message is : 
/bin/sh ./libtool --tag=CC   --mode=compile /home/xhs/build/gcc/./gcc/xgcc
-B/home/xhs/build/gcc/./gcc/ -B/gcc-4.5/gcc-4.5/x86_64-unknown-linux-gnu/bin/
-B/gcc-4.5/gcc-4.5/x86_64-unknown-linux-gnu/lib/ -isystem
/gcc-4.5/gcc-4.5/x86_64-unknown-linux-gnu/include -isystem
/gcc-4.5/gcc-4.5/x86_64-unknown-linux-gnu/sys-include  -m32 -DHAVE_CONFIG_H -I.
-I/svn/compilers/gcc/libgomp  -I/svn/compilers/gcc/libgomp/config/linux/x86
-I/svn/compilers/gcc/libgomp/config/linux
-I/svn/compilers/gcc/libgomp/config/posix -I/svn/compilers/gcc/libgomp  -Wall
-Werror -ftls-model=initial-exec -march=i486 -mtune=i686 -Wc,-pthread
-march=native -mfpmath=sse -mveclibabi=svml -pipe -O3  -pthread  -m32 -MT
alloc.lo -MD -MP -MF .deps/alloc.Tpo -c -o alloc.lo
/svn/compilers/gcc/libgomp/alloc.c
libtool: compile:  /home/xhs/build/gcc/./gcc/xgcc -B/home/xhs/build/gcc/./gcc/
-B/gcc-4.5/gcc-4.5/x86_64-unknown-linux-gnu/bin/
-B/gcc-4.5/gcc-4.5/x86_64-unknown-linux-gnu/lib/ -isystem
/gcc-4.5/gcc-4.5/x86_64-unknown-linux-gnu/include -isystem
/gcc-4.5/gcc-4.5/x86_64-unknown-linux-gnu/sys-include -m32 -DHAVE_CONFIG_H -I.
-I/svn/compilers/gcc/libgomp -I/svn/compilers/gcc/libgomp/config/linux/x86
-I/svn/compilers/gcc/libgomp/config/linux
-I/svn/compilers/gcc/libgomp/config/posix -I/svn/compilers/gcc/libgomp -Wall
-Werror -ftls-model=initial-exec -march=i486 -pthread -mtune=i686 -march=native
-mfpmath=sse -mveclibabi=svml -pipe -O3 -pthread -m32 -MT alloc.lo -MD -MP -MF
.deps/alloc.Tpo -c /svn/compilers/gcc/libgomp/alloc.c  -fPIC -DPIC -o
.libs/alloc.o

and the error message Is
cc1: warnings being treated as errors
/svn/compilers/gcc/libgomp/alloc.c:1:0: error: SSE instruction set disabled,
using 387 arithmetics
make[6]: *** [alloc.lo] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [all] Error 2
make[3]: *** [multi-do] Error 1
make[2]: *** [all-multi] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

It seems that Makefile added a "-march=i486 -pthread -mtune=i686" option which
leads to bootstrap error.


-- 
           Summary: -march=native -mfpmath=sse leads to bootstrap failure
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: linuxl4 at sohu dot com
 GCC build triplet: amd64_Linux
  GCC host triplet: amd64_Linux
GCC target triplet: amd64_Linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42365

Reply via email to