Hi all,
I'm trying to cross-compile glibc 2.2.3 for PowerPC 405 using ELDK 3.0 on a x86_64 machine. I have unzipped glibc-2.2.3 in a temp directory and configured using:
CC=ppc_4xx-gcc AR=ppc_4xx-ar RANLILB=ppc_4xx-ranlib ./configure ppc-linux --target=ppc-linux --host=ppc-linux --prefix=/usr/local/eldk3.0/ppc_4xx/ --enable-add-ons=../linuxthreads/ --with-headers=/home/kim/kernel-sw-003996-01/include/ --with-gd=/usr
The configuration seems to run fine but when I do make I get the following error:
make[1]: Leaving directory `/home/kim/Desktop/temp/glibc-2.2.3/csu'
make: *** [csu/subdir_lib] Error 2
This is the error in the config.log file:
configure:3341: ppc_4xx-gcc -o conftest -I/usr/include -L/usr/lib conftest.c -lgd -lpng -lz -lm 1>&5
/usr/lib/libgd.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
configure: failed program was:
#line 3334 "configure"
#include "confdefs.h"
#include <gd.h>
int main() {
gdImagePng (0, 0)
; return 0; }
configure:3361: checking size of long double
configure:16: checking installed Linux kernel header files
configure:209: checking for symlinks in /usr/local/eldk3.0/ppc_4xx//include
configure:3492: checking stdio selection
configure:3506: checking for old glibc 2.0.x headers
configure:3561: checking whether -fPIC is default
I have installed the libgd package using
apt-get install libgd2-xpm-dev
and I also tried recompiling using libgd2-noxpm-dev package
but I still get the same error.
Anyone know what's wrong? Any suggestions are welcome
Thanks in advance,
Kim