Toolchain problem (hpux cross ppc)

MEDBERRY, DAVID (A-Loveland, ex1) david_medberry@agilent.com
Fri Jun 29 09:59:00 GMT 2001


Hi,

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
`/home/medberry/toolchain/gatliff/glibc-2.2.3/nss'
powerpc-linux-gcc nsswitch.c -c -O2 -Wall -Winline -Wstrict-prototypes
-Wwrite-s
trings -g -mnew-mnemonics -Wa,-mppc -mpowerpc      -I../include -I.
-I/home/medb
erry/toolchain/gatliff/build-glibc/nss -I.. -I../libio
-I/home/medberry/toolcha
in/gatliff/build-glibc -I../sysdeps/powerpc/elf
-I../linuxthreads/sysdeps/unix/s
ysv/linux -I../linuxthreads/sysdeps/pthread
-I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/powerpc
-I../sysdeps/un
ix/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/sys
v -I../sysdeps/unix/powerpc -I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/po
werpc/fpu -I../sysdeps/powerpc -I../sysdeps/wordsize-32
-I../sysdeps/ieee754/flt
-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/powerpc/soft-fp
-I../sysdeps/ieee75
4 -I../sysdeps/generic/elf -I../sysdeps/generic  -nostdinc -isystem
/opt/gnu_too
ls/hppa2.0-hp-hpux10.20/powerpc-linux/lib/gcc-lib/powerpc-linux/2.95.3/inclu
de -
isystem
/opt/gnu_tools/hppa2.0-hp-hpux10.20/powerpc-linux/powerpc-linux/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h     -o
/home/medberry/toolc
hain/gatliff/build-glibc/nss/nsswitch.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]
Erro
r 1
gmake[2]: Leaving directory
`/home/medberry/toolchain/gatliff/glibc-2.2.3/nss'
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
gatliff's build-crossgcc.sh

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, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list