Toolchain problem (hpux cross ppc)

MEDBERRY, DAVID (A-Loveland, ex1)
Fri Jun 29 09:59:00 GMT 2001


I am working on a hpux cross powerpc-linux toolchain with gcc-2.95.3
glibc-2.2.3 and linux-2.4.2.

No matter which toolchain recipe I try I end up with:

gmake[2]: Entering directory
powerpc-linux-gcc nsswitch.c -c -O2 -Wall -Winline -Wstrict-prototypes
trings -g -mnew-mnemonics -Wa,-mppc -mpowerpc      -I../include -I.
erry/toolchain/gatliff/build-glibc/nss -I.. -I../libio
in/gatliff/build-glibc -I../sysdeps/powerpc/elf
ysv/linux -I../linuxthreads/sysdeps/pthread
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/powerpc
ix/sysv/linux/powerpc -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
v -I../sysdeps/unix/powerpc -I../sysdeps/unix -I../sysdeps/posix
werpc/fpu -I../sysdeps/powerpc -I../sysdeps/wordsize-32
-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/powerpc/soft-fp
4 -I../sysdeps/generic/elf -I../sysdeps/generic  -nostdinc -isystem
de -
-D_LIBC_REENTRANT -include ../include/libc-symbols.h     -o
nsswitch.c:76: `LIBNSS_FILES_SO' undeclared here (not in a function)
nsswitch.c:76: initializer element is not constant
gmake[2]: *** [/home/medberry/toolchain/gatliff/build-glibc/nss/nsswitch.o]
r 1
gmake[2]: Leaving directory
gmake[1]: *** [nss/subdir_lib] Error 2
gmake[1]: Leaving directory `/home/medberry/toolchain/gatliff/glibc-2.2.3'
gmake: *** [all] Error 2

I know LIBNSS_FILES_SO is supposed to be defined in gnu/lib-names.h.

Here is what it has:

[medberry@medberry01 build-glibc]$ cat gnu/lib-names.h
/* This file is automatically generated.
   It defines macros to allow user program to find the shared
   library files which come as part of GNU libc.  */
#ifndef __GNU_LIB_NAMES_H
#define __GNU_LIB_NAMES_H       1

#endif  /* gnu/lib-names.h */
[medberry@medberry01 build-glibc]$

No definitions. This particular attempt to build glibc is from bill

Any ideas on what's going wrong here? (I've had no trouble when building
with glibc-2.1.3, gcc-2.95.2, linux-2.4-test2.)

-dave medberry

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list