[uClibc]Compiling problem
Cedric Aubert
cedric_aubert at yahoo.fr
Fri Apr 11 09:27:53 UTC 2003
Hi,
I try to compile uclibc with cross environnement for
ppc (mpc860) (gcc
2.95.4) of the ELDK 2.0.2 toolkit fron Denx.
I have succesfully build uClibc 0.9.19 but without the
C99 math lib option and without the POSIX pthread
option.
If I enable POSIX pthread option this error occur :
make[1]: Entering directory
`/home/installateur/embedded-ppc/src/uClibc-0.9.19/libpthread'
make -C linuxthreads
make[2]: Entering directory
`/home/installateur/embedded-ppc/src/uClibc-0.9.19/libpthread/linuxthreads'
ppc_8xx-ar r ../libpthread.a attr.o cancel.o
condvar.o errno.o events.o
join.o lockfile.o manager.o mutex.o oldsemaphore.o
pt-machine.o ptfork.o
pthread.o ptlongjmp.o rwlock.o semaphore.o signals.o
specific.o spinlock.o
wrapsyscall.o
make[2]: Leaving directory
`/home/installateur/embedded-ppc/src/uClibc-0.9.19/libpthread/linuxthreads'
if [ -f libpthread.a ] ; then \
set -e; \
ppc_8xx-ld -s -shared --warn-common --warn-once -z
combreloc -soname=libpthread.so.0 \
-o libpthread-0.9.19.so ../lib/crti.o
/home/installateur/ELDK/usr/lib/gcc-lib/ppc-
linux/2.95.4/m860/pic/crtbeginS.o --whole-archive
libpthread.a \
--no-whole-archive ..//libc/misc/internals/interp.o
\
-L..//lib -lc
/home/installateur/ELDK/usr/lib/gcc-lib/ppc-linux/2.95.4/m860/pic/crtendS.o
.../lib/crtn.o; \
install -d ../lib; \
rm -f ../lib/libpthread-0.9.19.so \
../lib/libpthread.so.0; \
install -m 644 libpthread-0.9.19.so ../lib; \
(cd ../lib && ln -sf libpthread-0.9.19.so \
libpthread.so); \
(cd ../lib && ln -sf libpthread-0.9.19.so \
libpthread.so.0); \
fi;
ppc_8xx-ld: cannot open
/home/installateur/ELDK/usr/lib/gcc-lib/ppc-linux/2.95.4/m860/pic/crtbeginS.
o: No such file or directory
make[1]: *** [shared] Error 1
make[1]: Leaving directory
`/home/installateur/embedded-ppc/src/uClibc-0.9.19/libpthread'make:
***
[shared] Erreur 2
and It's right crtbeginS.o isn't exist. But what is it
??
and the second error with the C99 option :
make[2]: Entering directory
`/home/installateur/embedded-ppc/src/uClibc-0.9.19/libm/powerpc'
pc_8xx-gcc -Wall -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -
Os -fno-builtin -nostdinc -
D_LIBC -I../../include -I.
-I/home/installateur/ELDK/usr/lib/gcc-lib/ppc-lin
ux/2.95.4/include -DNDEBUG -fPIC -
D_IEEE_LIBM -D_ISOC99_SOURCE -D_SVID_SOURCE -c
s_ceil.c -o s_ceil.o
s_ceil.c: In function `ceil':
s_ceil.c:74: Invalid `asm' statement:
s_ceil.c:74: fixed or forbidden register 32 (0) was
spilled for class
FLOAT_REGS.
s_ceil.c:76: Invalid `asm' statement:
s_ceil.c:76: fixed or forbidden register 32 (0) was
spilled for class
FLOAT_REGS.
make[2]: *** [s_ceil.o] Error 1
make[2]: Leaving directory
`/home/installateur/embedded-ppc/src/uClibc-0.9.19/libm/powerpc'
make[1]: *** [_dir_powerpc] Error 2
make[1]: Leaving directory
`/home/installateur/embedded-ppc/src/uClibc-0.9.19/libm'
make: *** [_dir_libm] Erreur 2
and I don't understand why.
Any idea ?
thanks a lot
---
AUBERT Cedric
SDEL Controle Commande
Service R&D
rue Nungesser & Coli
44860 St Aignan de Grand Lieu
Tel : +33 (0)2 40 84 50 00
Poste : 5109
Fax : +33 (0)2 40 84 51 10
E-mail : cedric_aubert at softhome.net
Web : http://www.controle-commande.sdel.fr
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
More information about the uClibc
mailing list