This is the mail archive of the glibc-bugs@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]

[Bug libc/10375] New: glibc can be built only if -U_FORTIFY_SOURCE is added to CFLAGS


I cannot compile glibc-2.10.1 with gcc-4.3.3. Make fails with the following
error message:

x86_64-pc-linux-gnu-gcc ../sysdeps/unix/sysv/linux/syslog.c -c -std=gnu99
-fgnu89-inline -O2 -Wall -Winline
-Wl,--dynamic-linker,/tools/lib64/ld-linux-x86-64.so.2 -Wwrite-strings
-fmerge-all-constants -march=core2 -Wstrict-prototypes   -fexceptions  
-I../include -I/home/booleandomain/tmp/lfs/sources/glibc-build/misc
-I/home/booleandomain/tmp/lfs/sources/glibc-build -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-pc-linux-gnu/4.3.3/include -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/include-fixed -isystem /tools/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o
/home/booleandomain/tmp/lfs/sources/glibc-build/misc/syslog.o -MD -MP -MF
/home/booleandomain/tmp/lfs/sources/glibc-build/misc/syslog.o.dt -MT
/home/booleandomain/tmp/lfs/sources/glibc-build/misc/syslog.o 
../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/booleandomain/tmp/lfs/sources/glibc-build/misc/syslog.o] Error 1
make[2]: Leaving directory `/home/booleandomain/tmp/lfs/sources/glibc-2.10.1/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/home/booleandomain/tmp/lfs/sources/glibc-2.10.1'
make: *** [all] Error 2

Glibc was configured as follows: --prefix=/tools --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --with-headers=/tools/include --enable-kernel=2.6.30

The only way I know to fix this is to add -U_FORTIFY_SOURCE to the CFLAGS.

-- 
           Summary: glibc can be built only if -U_FORTIFY_SOURCE is added to
                    CFLAGS
           Product: glibc
           Version: 2.10
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: booleandomain at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=10375

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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