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



             Bug #: 57015

           Summary: Link error while building GCC 4.8.0 with 4.7.2 and

                    Binutils 2.22: hidden symbol `__deregister_frame_info'

                    in /.../4.7.2/libgcc_eh.a(unwind-dw2-fde-dip.o) is

                    referenced by DSO

    Classification: Unclassified

           Product: gcc

           Version: 4.7.2

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: gcov-profile

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: l...@gnu.org





While building GCC 4.8.0 with GCC 4.7.2 and ld from Binutils 2.22, I get the

following error while link gcov:



g++   -g -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -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.o

libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a

../libiberty/libiberty.a ../libdecnumber/libdecnumber.a  -o gcov

ld: gcov: hidden symbol `__deregister_frame_info' in

/nix/store/47myfniw4x7kfc601d7q1yvz5mixlr00-gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/libgcc_eh.a(unwind-dw2-fde-dip.o)

is referenced by DSO

ld: final link failed: Bad value

collect2: error: ld returned 1 exit status



The problem vanishes when switching to Binutils 2.23.2.



In case it matters, the configure flags are:

("CONFIG_SHELL=/nix/store/ryk1ywzz31kp4biclxq3yq6hpjycalyy-bash-4.2/bin/bash"

"SHELL=/nix/store/ryk1ywzz31kp4biclxq3yq6hpjycalyy-bash-4.2/bin/bash"

"--prefix=/nix/store/2qwicp3m3lwq6j44i72kdly7awv3pppx-gcc-4.8.0"

"--enable-fast-install" "--enable-plugin" "--enable-languages=c,c++"

"--disable-multilib" "--with-local-prefix=/no-gcc-local-prefix"

"--with-native-system-header-dir=/nix/store/9fnjjsbarscbmakr44ixfv9yhg6z12mw-glibc-2.17/include").



Thanks,

Ludo'.

Reply via email to