[Bug other/54691] New: [4.8 Regression] --enable-checking=valgrind doesn't build

markus at trippelsdorf dot de gcc-bugzilla@gcc.gnu.org
Mon Sep 24 12:19:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54691

             Bug #: 54691
           Summary: [4.8 Regression] --enable-checking=valgrind doesn't
                    build
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: markus@trippelsdorf.de


--disable-bootstrap --enable-checking=valgrind doesn't build:

...
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2
-D_GNU_SOURCE" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/
usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644"
"INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c"
"JC1FLAGS=" 
"LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make"
"MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000  " "PICFLAG=" "P
ICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/usr/local"
"infodir=/usr/local/share/info" "libdir=/usr/local/lib" "prefix=/usr/loc
al" "includedir=/usr/local/include" "AR=ar"
"AS=/var/tmp/gcc_build_dir/./gcc/as" "CC=/var/tmp/gcc_build_dir/./gcc/xgcc
-B/var/tmp/gcc_build_dir/./gcc
/ -B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
 /usr/local/x86_64-unknown-linux-gnu/sys-include   "
"CXX=-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isys
tem /usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include   "
"LD=/var/tmp/gcc_build_dir/./gcc/collect
-ld" "LIBCFLAGS=-g -O2" "NM=/var/tmp/gcc_build_dir/./gcc/nm" "PICFLAG="
"RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
/bin/sh ./libtool --tag=CC   --mode=link /var/tmp/gcc_build_dir/./gcc/xgcc
-B/var/tmp/gcc_build_dir/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/
 -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-inc
lude    -Wall -g -O2 -version-info `grep -v '^#'
/home/markus/gcc/libssp/libtool-version`
-Wl,--version-script=/home/markus/gcc/libssp/ssp.map   -o l
ibssp.la -rpath /usr/local/lib/../lib64 ssp.lo gets-chk.lo memcpy-chk.lo
memmove-chk.lo mempcpy-chk.lo memset-chk.lo snprintf-chk.lo sprintf-chk.lo s
tpcpy-chk.lo strcat-chk.lo strcpy-chk.lo strncat-chk.lo strncpy-chk.lo
vsnprintf-chk.lo vsprintf-chk.lo  
libtool: link: /var/tmp/gcc_build_dir/./gcc/xgcc
-B/var/tmp/gcc_build_dir/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unkno
wn-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include    -shared  .libs/ssp
.o .libs/gets-chk.o .libs/memcpy-chk.o .libs/memmove-chk.o .libs/mempcpy-chk.o
.libs/memset-chk.o .libs/snprintf-chk.o .libs/sprintf-chk.o .libs/stpc
py-chk.o .libs/strcat-chk.o .libs/strcpy-chk.o .libs/strncat-chk.o
.libs/strncpy-chk.o .libs/vsnprintf-chk.o .libs/vsprintf-chk.o     -O2
-Wl,--versi
on-script=/home/markus/gcc/libssp/ssp.map   -Wl,-soname -Wl,libssp.so.0 -o
.libs/libssp.so.0.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/ssp.o: requires dynamic R_X86_64_32 reloc which may overf
low at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/ssp.o: requires dynamic R_X86_64_PC32 reloc against '__st
ack_chk_guard' which may overflow at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/gets-chk.o: requires dynamic R_X86_64_PC32 reloc against 
'malloc' which may overflow at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/memcpy-chk.o: requires dynamic R_X86_64_PC32 reloc agains
t '__chk_fail' which may overflow at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/memmove-chk.o: requires dynamic R_X86_64_PC32 reloc again
st '__chk_fail' which may overflow at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/mempcpy-chk.o: requires dynamic R_X86_64_PC32 reloc again
st 'memcpy' which may overflow at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/memset-chk.o: requires dynamic R_X86_64_PC32 reloc agains
t '__chk_fail' which may overflow at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/snprintf-chk.o: requires dynamic R_X86_64_PC32 reloc agai
nst 'vsnprintf' which may overflow at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/sprintf-chk.o: requires dynamic R_X86_64_PC32 reloc again
st 'vsnprintf' which may overflow at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/stpcpy-chk.o: requires dynamic R_X86_64_PC32 reloc agains
t 'strlen' which may overflow at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/strcat-chk.o: requires dynamic R_X86_64_PC32 reloc agains
t '__chk_fail' which may overflow at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/strcpy-chk.o: requires dynamic R_X86_64_PC32 reloc agains
t 'strlen' which may overflow at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/strncat-chk.o: requires dynamic R_X86_64_PC32 reloc again
st '__chk_fail' which may overflow at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/strncpy-chk.o: requires dynamic R_X86_64_PC32 reloc again
st '__chk_fail' which may overflow at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/vsnprintf-chk.o: requires dynamic R_X86_64_PC32 reloc aga
inst '__chk_fail' which may overflow at runtime; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld:
error: .libs/vsprintf-chk.o: requires dynamic R_X86_64_PC32 reloc agai
nst 'vsnprintf' which may overflow at runtime; recompile with -fPIC
collect2: error: ld returned 1 exit status
make[3]: *** [libssp.la] Error 1



More information about the Gcc-bugs mailing list