This is the mail archive of the
crossgcc@sources.redhat.com
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
error in glibc for powerpc-linux-gnualtivec
- From: Mauricio Alvarez Mesa <alvarez at ac dot upc dot es>
- To: crossgcc at sources dot redhat dot com
- Date: Thu, 02 Oct 2003 21:20:20 +0200
- Subject: error in glibc for powerpc-linux-gnualtivec
Hi all
I am trying to build a cross-development tools for
TARGET=powerpc-linux-gnualtivec on a linux pentium host. I want to
develop code for a powerpc machine with support for altivec extensions
on my linux box
I am using the sources of gcc-3.3.1, binutils-2.14.90.0.6, glibc-2.3.2
and linux kernel 2.4.22
But in the compilation of glibc I have some problems
$ BUILD_CC=gcc CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib
../glibc-2.3.2/configure --prefix=$PREFIX --host=$TARGET
--build=i686-pc-linux-gnu --disable-debug --disable-profile
--enable-add-ons=linuxthreads --with-headers=${PREFIX}/${TARGET}/include
$ make
In file included from ../sysdeps/unix/sysv/linux/powerpc/sys/procfs.h:31,
from ../linuxthreads_db/proc_service.h:20,
from ../linuxthreads_db/thread_dbP.h:7,
from ../linuxthreads/descr.h:43,
from ../linuxthreads/internals.h:29,
from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
from ../sysdeps/generic/ldsodefs.h:38,
from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
from ../sysdeps/unix/sysv/linux/init-first.c:30:
../sysdeps/unix/sysv/linux/powerpc/sys/user.h:27: error: field `regs'
has incomplete type
make[2]: ***
[/users/scratch/alvarez/i686-pc-linux-gnu/powerpc-linux-gnualtivec/build/build-glibc/csu/init-first.o]
Error 1
make[2]: Leaving directory
`/users/scratch/alvarez/i686-pc-linux-gnu/powerpc-linux-gnualtivec/build/glibc-2.3.2/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory
`/users/scratch/alvarez/i686-pc-linux-gnu/powerpc-linux-gnualtivec/build/glibc-2.3.2'
make: *** [all] Error 2
Any suggestions are welcome
Thanks a lot
Mauricio
p.d. I am trying to use crosstool but it fails because I am using
gcc-2.95.2.1
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com