This is the mail archive of the libc-help@sourceware.org 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]
Other format: [Raw text]

2.11 Build failure on Ubuntu 9.10 64bit


I'm building the 2.11 tar on Ubuntu 9.10 64bit against kernel 2.6.30.9 and I run in to build errors.

Configure is run in a new subdirectory as:

../glibc-2.11/configure CFLAGS="-O2" --prefix=/usr --with-headers=/home/nreilly/foldingcd/trunk/folding_cd/linux-2.6.30.9/include:/home/nreilly/foldingcd/trunk/folding_cd/linux-2.6.30.9/kernel_64/include:/home/nreilly/foldingcd/trunk/folding_cd/linux-2.6.30.9/arch/x86/include --enable-kernel=2.6.30 --disable-profile

Build is then run as:

make -j6 CFLAGS="-O2" lib

This fails with the following error:

gcc ../sysdeps/unix/sysv/linux/syslog.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -Wstrict-prototypes -fexceptions -I../include -I/home/nreilly/foldingcd/trunk/folding_cd/glibc-64/misc -I/home/nreilly/foldingcd/trunk/folding_cd/glibc-64 -I../sysdeps/x86_64/elf -I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/wordsize-64 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/fpu -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64 -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 -I../nptl -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.4.1/include -isystem /usr/lib/gcc/x86_64-linux-gnu/4.4.1/include-fixed -isystem /home/nreilly/foldingcd/trunk/folding_cd/linux-2.6.30.9/include -isystem /home/nreilly/foldingcd/trunk/folding_cd/linux-2.6.30.9/kernel_64/include -isystem /home/nreilly/foldingcd/trunk/folding_cd/linux-2.6.30.9/arch/x86/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /home/nreilly/foldingcd/trunk/folding_cd/glibc-64/misc/syslog.o -MD -MP -MF /home/nreilly/foldingcd/trunk/folding_cd/glibc-64/misc/syslog.o.dt -MT /home/nreilly/foldingcd/trunk/folding_cd/glibc-64/misc/syslog.o
In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:
../misc/syslog.c: In function ‘__vsyslog_chk’:
../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to ‘syslog’: function body not available
../misc/syslog.c:155: sorry, unimplemented: called from here
make[2]: *** [/home/nreilly/foldingcd/trunk/folding_cd/glibc-64/misc/syslog.o] Error 1
make[2]: Leaving directory `/home/nreilly/foldingcd/trunk/folding_cd/glibc-2.11/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/home/nreilly/foldingcd/trunk/folding_cd/glibc-2.11'
make: *** [lib] Error 2



Seeing as the error is related to inlining, I tried removing -Winline from the compile flags with the following patch:
Index: Makeconfig
===================================================================
--- Makeconfig 2008-12-18 23:34:16.000000000 -0500
+++ Makeconfig 2008-12-18 23:34:52.000000000 -0500
@@ -590,9 +590,9 @@


# Extra flags to pass to GCC.
ifeq ($(all-warnings),yes)
-+gccwarn := -Wall -Wwrite-strings -Winline -Wcast-qual -Wbad-function-cast -Wmissing-noreturn -Wmissing-prototypes -Wmissing-declarations -Wcomment -Wcomments -Wtrigraphs -Wsign-compare -Wfloat-equal -Wmultichar
++gccwarn := -Wall -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wmissing-noreturn -Wmissing-prototypes -Wmissing-declarations -Wcomment -Wcomments -Wtrigraphs -Wsign-compare -Wfloat-equal -Wmultichar
else
-+gccwarn := -Wall -Wwrite-strings -Winline
++gccwarn := -Wall -Wwrite-strings
endif
+gccwarn-c = -Wstrict-prototypes


This gets further but still fails with the following error:

gcc ../nptl/sysdeps/pthread/pt-longjmp.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Wwrite-strings -fmerge-all-constants -Wstrict-prototypes -I../include -I/home/nreilly/foldingcd/trunk/folding_cd/glibc-64/nptl -I/home/nreilly/foldingcd/trunk/folding_cd/glibc-64 -I../sysdeps/x86_64/elf -I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/wordsize-64 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/fpu -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64 -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 -I../nptl -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.4.1/include -isystem /usr/lib/gcc/x86_64-linux-gnu/4.4.1/include-fixed -isystem /home/nreilly/foldingcd/trunk/folding_cd/linux-2.6.30.9/include -isystem /home/nreilly/foldingcd/trunk/folding_cd/linux-2.6.30.9/kernel_64/include -isystem /home/nreilly/foldingcd/trunk/folding_cd/linux-2.6.30.9/arch/x86/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DNOT_IN_libc=1 -DIS_IN_libpthread=1 -o /home/nreilly/foldingcd/trunk/folding_cd/glibc-64/nptl/pt-longjmp.o -MD -MP -MF /home/nreilly/foldingcd/trunk/folding_cd/glibc-64/nptl/pt-longjmp.o.dt -MT /home/nreilly/foldingcd/trunk/folding_cd/glibc-64/nptl/pt-longjmp.o
../nptl/sysdeps/pthread/pt-longjmp.c:29: error: ‘siglongjmp’ aliased to undefined symbol ‘longjmp’
make[2]: *** [/home/nreilly/foldingcd/trunk/folding_cd/glibc-64/nptl/pt-longjmp.o] Error 1
make[2]: Leaving directory `/home/nreilly/foldingcd/trunk/folding_cd/glibc-2.11/nptl'
make[1]: *** [nptl/subdir_lib] Error 2
make[1]: Leaving directory `/home/nreilly/foldingcd/trunk/folding_cd/glibc-2.11'
make: *** [lib] Error 2


Appreciate any help on getting this to build. FYI the compiler is:
gcc --version
gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1

Regards,
Nick.


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