This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/25672] New: wrong cflags passed to ./xgcc


I'm configuring gcc with:

./configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man
--bindir=/usr/bin --libdir=/usr/lib --libexecdir=/usr/lib --disable-shared
--disable-threads --enable-languages=c,c++ --enable-c99 --enable-long-long
--disable-nls --with-gnu-as --with-gnu-ld --with-demangler-in-ld
--with-system-zlib --enable-multilib
--with-headers=/home/users/builder/rpm/BUILD/gcc-4.1-20051230/fake-root/usr/include
--without-x
--target=ppc64-pld-linux
--host=i686-pld-linux
--build=i686-pld-linux
CFLAGS=-O2 -march=i686 -mtune=pentium4 -ggdb
CXXFLAGS=-O2 -march=i686 -mtune=pentium4 -ggdb
TEXCONFIG=false

it worked fine with gcc-4.0.2.
in 4.1 ./xgcc gets wrong cflags (from host).

(...)
/home/users/builder/rpm/BUILD/gcc-4.1-20051230/obj-ppc64-pld-linux/./gcc/xgcc
-B/home/users/builder/rpm/BUILD/gcc-4.1-20051230/obj-ppc64-pld-linux/./gcc/
-B/usr/ppc64-pld-linux/bin/ -B/usr/ppc64-pld-linux/lib/
-isystem /usr/ppc64-pld-linux/include
-isystem /usr/ppc64-pld-linux/sys-include -O2 -O2 -O2 -march=i686
-mtune=pentium4 -ggdb  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include  -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include
-I../../gcc/../libcpp/include   -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-unit-at-a-time  -msdata=none \
-c ../../gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o

cc1: error: unrecognized command line option "-march=i686"
../../gcc/crtstuff.c:1: error: bad value (pentium4) for -mtune= switch
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory
`/home/users/builder/rpm/BUILD/gcc-4.1-20051230/obj-ppc64-pld-linux/gcc'


-- 
           Summary: wrong cflags passed to ./xgcc
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
 GCC build triplet: i686-pld-linux
  GCC host triplet: i686-pld-linux
GCC target triplet: ppc64-pld-linux


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]