[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bootstrap gcc for powerpc
From: |
Dimi Shahbaz |
Subject: |
Re: bootstrap gcc for powerpc |
Date: |
Wed, 22 May 2002 02:31:32 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408 |
Roland McGrath wrote:
What I have done is to build GCC first with no headers installed (using
--enable-languages=c), use make -k and ignore errors building libgcc,
install gcc. Then build libc and install it (libs and headers, programs
won't link). Then go back and do a complete GCC build and install. Then
go back and finish building libc.
Thanks for the tip, when I ran make with -k, I can get gcc installed,
which is a good step. With regard to glibc, however:
/home2/dimator/opt/ppc405/bin/powerpc-linux-gcc
../sysdeps/powerpc/fpu/s_isnan.c -c -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -mcpu=403 -mnew-mnemonics -Wa,-mppc -mpowerpc
-Wno-uninitialized -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES
-DNO_LONG_DOUBLE -D_Mlong_double_=double -I../include -I.
-I/home2/dimator/3rdParty/crosstools/glibc-ppc/math -I.. -I../libio
-I/home2/dimator/3rdParty/crosstools/glibc-ppc -I../sysdeps/powerpc/elf
-I../linuxthreads/sysdeps/unix/sysv/linux
-I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread
-I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix
-I../linuxthreads/sysdeps/powerpc -I../sysdeps/unix/sysv/linux/powerpc
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv
-I../sysdeps/unix/powerpc -I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/powerpc/fpu -I../sysdeps/powerpc -I../sysdeps/wordsize-32
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64
-I../sysdeps/powerpc/soft-fp -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/home2/dimator/opt/ppc405/bin/../lib/gcc-lib/powerpc-linux/3.0.4/include
-isystem /home2/dimator/opt/ppc405/powerpc-linux/include/
-D_LIBC_REENTRANT -include ../include/libc-symbols.h -I../soft-fp/
-o /home2/dimator/3rdParty/crosstools/glibc-ppc/math/s_isnan.o
In file included from ../include/libc-symbols.h:54,
from ../sysdeps/powerpc/fpu/s_isnan.c:1:
/home2/dimator/3rdParty/crosstools/glibc-ppc/config.h:3:3: #error "glibc
cannot be compiled without optimization"
../sysdeps/powerpc/fpu/s_isnan.c: In function `__isnan':
../sysdeps/powerpc/fpu/s_isnan.c:33: Can't find a register in class
`FLOAT_REGS' while reloading `asm'.
../sysdeps/powerpc/fpu/s_isnan.c:36: Can't find a register in class
`FLOAT_REGS' while reloading `asm'.
make[2]: ***
[/home2/dimator/3rdParty/crosstools/glibc-ppc/math/s_isnan.o] Error 1
make[2]: Leaving directory
`/home2/dimator/home/dank/ixia/Software/Source/linux/3rdParty/crosstools/glibc-2.2.5/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory
`/home2/dimator/home/dank/ixia/Software/Source/linux/3rdParty/crosstools/glibc-2.2.5'
make: *** [all] Error 2
And here is my configure line:
CFLAGS=-mcpu=403 CC=~/opt/ppc405/bin/powerpc-linux-gcc
AR=~/opt/ppc405/bin/powerpc-linux-ar
RANLIB=~/opt/ppc405/bin/powerpc-linux-ranlib ../glibc-2.2.5/configure
--host=ppc-linux --enable-add-ons=linuxthreads
--prefix=/home2/dimator/opt/ppc405/
--with-headers=/home2/dimator/opt/ppc405/powerpc-linux/include/
Is this a portability problem in the fpu emulation code? Anyone see the
problem?
Thanks,
Dimi