This is the mail archive of the gcc-help@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]

problem in compiling bootstrap gcc 4.2.2


Dear all,

I am compiling a bootstrap cross gcc. My target is
powerpc-unknown-linux-gnu. The gcc version that I am compiling is
4.2.2. the binutils is 2.18. and I am compiling on ubuntu linux
2.6.22.

I have configured it by this:

./configure --target=$TARGET --prefix=$PREFIX --without-headers
--with-newlib  --with-gnu-as --with-gnu-ld

 During the compilation I receive this error.

make[2]: Entering directory
`/home/mojtaba/ppc/cross-ppc-linux-gnu/build-gcc/gcc'

/home/mojtaba/ppc/cross-ppc-linux-gnu/build-gcc/./gcc/xgcc
-B/home/mojtaba/ppc/cross-ppc-linux-gnu/build-gcc/./gcc/
-B/usr/local/powerpc-unknown-linux-gnu//powerpc-unknown-linux-gnu/bin/
-B/usr/local/powerpc-unknown-linux-gnu//powerpc-unknown-linux-gnu/lib/
-isystem /usr/local/powerpc-unknown-linux-gnu//powerpc-unknown-linux-gnu/include
-isystem /usr/local/powerpc-unknown-linux-gnu//powerpc-unknown-linux-gnu/sys-include
-O2 -O2 -g -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include  -I. -I. -I../../gcc-4.2.2/gcc
-I../../gcc-4.2.2/gcc/. -I../../gcc-4.2.2/gcc/../include
-I../../gcc-4.2.2/gcc/../libcpp/include
-I../../gcc-4.2.2/gcc/../libdecnumber -I../libdecnumber  -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-toplevel-reorder -Dinhibit_libc
-msdata=none \

          -c ../../gcc-4.2.2/gcc/crtstuff.c -DCRT_BEGIN \

          -o crtbegin.o

exec: 2: -mppc: not found

make[2]: *** [crtbegin.o] Error 1

make[2]: Leaving directory
`/home/mojtaba/ppc/cross-ppc-linux-gnu/build-gcc/gcc'

make[1]: *** [all-gcc] Error 2

make[1]: Leaving directory `/home/mojtaba/ppc/cross-ppc-linux-gnu/build-gcc'

make: *** [all] Error 2

I really appreciate it if is somebody can help me.

Regards,
Mojtaba


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