[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patches] problem configuring/compiling eglibc svn trunk for mpc8540
- To: patches@xxxxxxxxxx
- Subject: [patches] problem configuring/compiling eglibc svn trunk for mpc8540
- From: Philippe De Muyter <phdm@xxxxxxxxx>
- Date: Fri, 7 Dec 2007 23:21:35 +0100
Hi all,
I am trying to build a native compiler+eglibc for a mpc8540 running linux,
but I have problems trying to compile eglibc with my specific mpc8540-
targetted gcc.
gcc-4.2 (codesourcery ppc-fall-lite version) has been configured for
powerpc-linuxspe with :
$src/gcc-*/configure \
--disable-multilib \
--target=powerpc-linuxspe \
--prefix=$tools \
--without-headers --with-newlib \
--disable-shared --disable-threads --disable-libssp \
--disable-libgomp --disable-libmudflap \
--enable-languages=c
and compilation is successfull.
But when I try to configure/compile eglibc I do not succeed to convince
eglibc to select/compile the appropriate e500 version :
If I try without using --with-cpu, with :
$src/eglibc/libc/configure \
--prefix=/usr \
--with-headers=$sysroot/usr/include \
--build=$build \
--host=powerpc-linuxspe \
--disable-profile --without-gd --without-cvs --enable-add-ons
compilation fails with :
In file included from ../sysdeps/powerpc/powerpc32/fpu/s_isnan.c:1:
../sysdeps/powerpc/fpu/s_isnan.c:59: warning: conflicting types for built-in fun
ction 'isnanf'
../sysdeps/powerpc/fpu/s_isnan.c: In function '__isnan':
../sysdeps/powerpc/fpu/s_isnan.c:45: error: impossible constraint in 'asm'
../sysdeps/powerpc/fpu/s_isnan.c:48: error: impossible constraint in 'asm'
make[2]: *** [/archives/meip/devtools/cross-build/ppc/obj/eglibc/math/s_isnan.o]
Error 1
make[2]: Leaving directory `/archives/meip/devtools/cross-build/src/eglibc/libc/
math'
make[1]: *** [math/subdir_lib] Error 2
I think that the configure script has not set up the makefiles for a spe target,
but for a generic powerpc target. The compilation of s_isnan.c fails
because "f" constraint does not exist in the compiler, but shows me that
the configuration is wrong..
I then tried adding a --with-cpu=CPU option, but each attempt ends with :
configure: error: The CPU subspecies of powerpc is not supported.
I have tried with e500, powerpc32/e500, e500/fpu and with
--with-cpu=e500 --with-fp, with always a similar error message at
configuration time.
Here I am lost. Which --with-cpu should I use ? This is with
eglibc svn trunk.
Thanks in advance
Philippe