GLibC cross compile for ppc-linux
Hi all,
i'm trying to build the glibc 2.1.3 on a i686-linux machine for a powerpc-linux embedded target. The make command works fine (...no errors) but somehow "make check" stops in the "stdlib tests" part when it is invoking the "isomac" command for the first time (after compiling it):
/var/powerpc-linux/obj/glibc-2.1.3/stdlib/isomac 'powerpc-linux-gcc' '-I../include -I.. -I/var/powerpc-linux/obj/glibc-2.1.3 -I../sysdeps/powerpc/elf
-I../crypt/sysdeps/unix -I../linuxthreads/sysdeps/unix/sysv/linux
-I../linuxthreads/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 -I../sysdeps/posix -I../sysdeps/powerpc -I../sysdeps/wordsize-32 -I../sysdeps/ieee754 -I../sysdeps/libm-ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic'
Quoted 1 line
/var/powerpc-linux/obj/glibc-2.1.3/stdlib/isomac.out
make[2]: *** [tests] Error 1
make[2]: Leaving directory `/var/powerpc-linux/src/glibc-2.1.3/stdlib' make[1]: *** [stdlib/tests] Error 2
make[1]: Leaving directory `/var/powerpc-linux/src/glibc-2.1.3'
make: *** [check] Error 2
The isomac.out file contains the lines:
Tested files:assert.hctype.herrno.hsystem() returned nonzerofloat.hiso646.hlimits.hlocale.hmath.hsetjmp.hsignal.hstdarg.hstddef.hstdio.hstdlib.hstring.htime.hwchar.hwctype.h
I'm not sure what "isomac" does, but somehow it is intend to find "illegal macro
definitions" in header files.
Does anyone has an idea how to fix this?
Oliver.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
I've been cross-compiling glibc-2.1.3 for ppc 7xx and 8xx for a while now. I've yet to see any problems like that. What if your host OS, (i.e. RedHat, debian etc? and it's version.) And what are you targeting?
--Mark
Quoted 8 lines · [email protected] wrote:
Hi all,
i'm trying to build the glibc 2.1.3 on a i686-linux machine for a powerpc-linux embedded target. The make command works fine (...no errors) but somehow "make check" stops in the "stdlib tests" part when it is invoking the "isomac" command for the first time (after compiling it):
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/