[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Glibc build problems



Roland McGrath wrote:
> 
> It seems most likely that your cross-tools are not set up quite right.
> Take a failing gcc command and run it with -v -save-temps; the output and
> the # lines in the foobar.i file ought to show you where the compiler is

Here is the output from gcc -v -save-temps ...:

$ pwd
/home/velco/glibc-2.1.1/obj
$ cd ..
$ cd hurd
$ i686-pc-gnu-gcc hurdstartup.c -v --save-temps -c -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -g -Wno-parentheses     
-I../include -I. -I/home/velco/glibc-2.1.1/obj/hurd -I..  -I../hurd
-I/home/velco/glibc-2.1.1/obj/hurd/ -I../mach
-I/home/velco/glibc-2.1.1/obj/mach/ -I/home/velco/glibc-2.1.1/obj
-I../sysdeps/i386/elf -I../crypt/sysdeps/mach/hurd
-I../crypt/sysdeps/unix -I../crypt/sysdeps/mach
-I../sysdeps/mach/hurd/i386 -I../sysdeps/mach/hurd -I../sysdeps/gnu
-I../sysdeps/unix/bsd/bsd4.4 -I../sysdeps/unix/mman
-I../sysdeps/mach/i386 -I../sysdeps/mach -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../sysdeps/libm-i387/i686 -I../sysdeps/i386/fpu
-I../sysdeps/libm-i387 -I../sysdeps/i386 -I../sysdeps/wordsize-32
-I../sysdeps/ieee754 -I../sysdeps/libm-ieee754 -I../sysdeps/unix/bsd
-I../sysdeps/unix/common -I../sysdeps/unix/inet -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/generic/elf -I../sysdeps/generic  
-D_LIBC_REENTRANT -include ../include/libc-symbols.h     -o
/home/velco/glibc-2.1.1/obj/hurd/hurdstartup.o
Reading specs from /usr/local/lib/gcc-lib/i686-pc-gnu/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
 /usr/local/lib/gcc-lib/i686-pc-gnu/egcs-2.91.66/cpp -lang-c -v
-I../include -I. -I/home/velco/glibc-2.1.1/obj/hurd -I.. -I../hurd
-I/home/velco/glibc-2.1.1/obj/hurd/ -I../mach
-I/home/velco/glibc-2.1.1/obj/mach/ -I/home/velco/glibc-2.1.1/obj
-I../sysdeps/i386/elf -I../crypt/sysdeps/mach/hurd
-I../crypt/sysdeps/unix -I../crypt/sysdeps/mach
-I../sysdeps/mach/hurd/i386 -I../sysdeps/mach/hurd -I../sysdeps/gnu
-I../sysdeps/unix/bsd/bsd4.4 -I../sysdeps/unix/mman
-I../sysdeps/mach/i386 -I../sysdeps/mach -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../sysdeps/libm-i387/i686 -I../sysdeps/i386/fpu
-I../sysdeps/libm-i387 -I../sysdeps/i386 -I../sysdeps/wordsize-32
-I../sysdeps/ieee754 -I../sysdeps/libm-ieee754 -I../sysdeps/unix/bsd
-I../sysdeps/unix/common -I../sysdeps/unix/inet -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/generic/elf -I../sysdeps/generic -undef
-D__GNUC__=2 -D__GNUC_MINOR__=91 -Di386 -Dunix -DMACH -D__GNU__
-D__i386__ -D__unix__ -D__MACH__ -D__GNU__ -D__i386 -D__unix -D__MACH
-Acpu(i386) -Amachine(i386) -Asystem(unix) -Asystem(mach) -Asystem(gnu)
-g -Wall -Winline -Wstrict-prototypes -Wwrite-strings -Wno-parentheses
-D_LIBC_REENTRANT -include ../include/libc-symbols.h hurdstartup.c
hurdstartup.i
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i386 GNU)
#include "..." search starts here:
#include <...> search starts here:
 ../include
 .
 /home/velco/glibc-2.1.1/obj/hurd
 ..
 ../hurd
 /home/velco/glibc-2.1.1/obj/hurd
 ../mach
 /home/velco/glibc-2.1.1/obj/mach
 /home/velco/glibc-2.1.1/obj
 ../sysdeps/i386/elf
 ../crypt/sysdeps/mach/hurd
 ../crypt/sysdeps/unix
 ../crypt/sysdeps/mach
 ../sysdeps/mach/hurd/i386
 ../sysdeps/mach/hurd
 ../sysdeps/gnu
 ../sysdeps/unix/bsd/bsd4.4
 ../sysdeps/unix/mman
 ../sysdeps/mach/i386
 ../sysdeps/mach
 ../sysdeps/i386/i686
 ../sysdeps/i386/i486
 ../sysdeps/libm-i387/i686
 ../sysdeps/i386/fpu
 ../sysdeps/libm-i387
 ../sysdeps/i386
 ../sysdeps/wordsize-32
 ../sysdeps/ieee754
 ../sysdeps/libm-ieee754
 ../sysdeps/unix/bsd
 ../sysdeps/unix/common
 ../sysdeps/unix/inet
 ../sysdeps/unix
 ../sysdeps/posix
 ../sysdeps/generic/elf
 ../sysdeps/generic
 /usr/local/lib/gcc-lib/i686-pc-gnu/egcs-2.91.66/include
 /usr/local/i686-pc-gnu/include
End of search list.
 /usr/local/lib/gcc-lib/i686-pc-gnu/egcs-2.91.66/cc1 hurdstartup.i
-quiet -dumpbase hurdstartup.c -g -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -Wno-parentheses -version -o hurdstartup.s
GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i686-pc-gnu)
compiled by GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release).
hurd.h: In function `__hurd_fail':
In file included from hurdstartup.c:24:
hurd.h:51: `EMACH_SEND_INVALID_DEST' undeclared (first use in this
function)
hurd.h:51: (Each undeclared identifier is reported only once
hurd.h:51: for each function it appears in.)
hurd.h:52: `EMIG_SERVER_DIED' undeclared (first use in this function)
hurd.h:54: warning: unreachable code at beginning of switch statement
$

> finding all the files, and if it's getting the wrong errno.h or somesuch.
> At any rate, you need to include more information (at least the verbatim
> output from make up to the error) for us to help.

The output from make up to an including the error is ~600k.

The thing that confused me most was that

find . -type f -exec grep EMIG_SERVER_DIED {} \;

didn't find any definitions of EMIG_SERVER_DIED.

I ran it from the top source dirs of glibc, gnumach, hurd and mig.


Regards,
-velco


Reply to: