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

             Bug #: 51594
           Summary: gcov-dump: cannot find -lstdc++
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: jan.kratoch...@redhat.com
              Host: x86_64-fedorarawhide-linux-gnu
            Target: x86_64-fedorarawhide-linux-gnu
             Build: x86_64-fedorarawhide-linux-gnu


On this nightly build for r182428 appeared:

g++   -ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common 
-DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  gcov-dump.o \
        libcommon.a ../libcpp/libcpp.a   ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a  -o gcov-dump
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make[3]: *** [gcov-dump] Error 1

using:

export 'CFLAGS=-ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4'
export 'CXXFLAGS=-ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4'
export 'GCJFLAGS=-ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4'
export 'CFLAGS_FOR_TARGET=-ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4'
export 'CXXFLAGS_FOR_TARGET=-ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4'
export LDFLAGS=-lmcheck

../gcchead/configure --enable-64-bit-bfd --enable-debug --disable-sim
--enable-gold --enable-plugins --disable-werror
--with-separate-debug-dir=/usr/lib/debug
--prefix=/home/jkratoch/redhat/gcchead-root
--enable-languages=c,c++,fortran,java,ada
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar

Reply via email to