This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

glibc-2.1.91 build glitches



I tried (and eventually) succeeded in building the snapshot over the
weekend. On my system, I hit two snags. Here are the error messages and my
workarounds.

(I built the snapshot twice - once with gcc-2.95.2, and once with the
latest GCC snapshot. The errors below came from the GCC snapshot build,
but aren't compiler related, AFAICT. Both builds did finish completely.)

/usr/src/egcs/egcs-20000626/objdir/gcc/xgcc
-B/usr/src/egcs/egcs-20000626/objdir/gcc/ memusagestat.c -c -O2 -Wall
-Winline -Wstrict-prototypes -Wwrite-strings -I../include -I.
-I/opt/build/glibc-snapbuild/malloc -I.. -I../libio
-I/opt/build/glibc-snapbuild -I../sysdeps/i386/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux
-I../linuxthreads/sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv
-I../sysdeps/unix/i386/i586 -I../sysdeps/unix/i386 -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/i386/i586 -I../sysdeps/i386/i486
-I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf
-I../sysdeps/generic -nostdinc -isystem
/usr/src/egcs/egcs-20000626/objdir/gcc/include -isystem
/usr/src/linux/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h -o
/opt/build/glibc-snapbuild/malloc/memusagestat.o
memusagestat.c:36:15:
gd.h: No such file or directory memusagestat.c:37:20:
gdfontl.h: No such file or directory memusagestat.c:38:20:
gdfonts.h: No such file or directory
make[2]: ***[/opt/build/glibc-snapbuild/malloc/memusagestat.o] Error 1
make[2]: Leaving directory `/opt/build/glibc-2.1.91/malloc'
make[1]: *** [malloc/others] Error 2
make[1]: Leaving directory `/opt/build/glibc-2.1.91'
make: *** [all] Error 2

The configuration finds that I have `libgd' installed, so sets the `LIBGD'
flag to `yes' in the makefile, and tries to build this program. The header
files for this library, though, are in `/usr/include', so it looks like
the `-nostdinc' flag prohibits the compiler from finding them. My
workaround was to set the `LIBGD' flag to `no' so this file wouldn't be
compiled.

The build resumes ...

/usr/src/egcs/egcs-20000626/objdir/gcc/xgcc
-B/usr/src/egcs/egcs-20000626/objdir/gcc/ -nostdlib -nostartfiles -o
/opt/build/glibc-snapbuild/debug/pcprofiledump
-Wl,-dynamic-linker=/usr/local/lib/ld-linux.so.2
/opt/build/glibc-snapbuild/csu/crt1.o
/opt/build/glibc-snapbuild/csu/crti.o
`/usr/src/egcs/egcs-20000626/objdir/gcc/xgcc
-B/usr/src/egcs/egcs-20000626/objdir/gcc/ --print-file-name=crtbegin.o`
/opt/build/glibc-snapbuild/debug/pcprofiledump.o
-Wl,-rpath-link=/opt/build/glibc-snapbuild:/opt/build/glibc-snapbuild/math:/opt/build/glibc-snapbuild/elf:/opt/build/glibc-snapbuild/dlfcn:/opt/build/glibc-snapbuild/nss:/opt/build/glibc-snapbuild/nis:/opt/build/glibc-snapbuild/rt:/opt/build/glibc-snapbui
ld/resolv:/opt/build/glibc-snapbuild/crypt:/opt/build/glibc-snapbuild/linuxthreads
/opt/build/glibc-snapbuild/libc.so.6
/opt/build/glibc-snapbuild/libc_nonshared.a -lgcc
`/usr/src/egcs/egcs-20000626/objdir/gcc/xgcc
-B/usr/src/egcs/egcs-20000626/objdir/gcc/ --print-file-name=crtend.o`
/opt/build/glibc-snapbuild/csu/crtn.o

make[2]: *** No rule to make target `xtrace.sh',
	needed by `/opt/build/glibc-snapbuild/debug/xtrace'.  Stop.
make[2]: Leaving directory `/opt/build/glibc-2.1.91/debug'
make[1]: *** [debug/others] Error 2
make[1]: Leaving directory `/opt/build/glibc-2.1.91'
make: *** [all] Error 2

I couldn't find this file in the directory - did it not make it into the
tarball?

I just added a placeholder file called `xtrace.sh' in the directory, and
started the build again, and it eventually finished. If my guess is about
the file missing is correct, it's probably been fixed by the time this
mail arrives.

Thanks to everyone working on glibc.

###############################
# Art Haas
# (713) 689-2417
###############################



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]