Re: undefined reference to `_Unwind_GetIPInfo'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/19/2014 03:08 PM, Pete Moore wrote:
> While trying to build gcc 4.9.2, I am getting a link error.  Any help would be appreciated.
> 
> g++   -g -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -fno-common  -DHAVE_CONFIG_H  -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c/c-array-notation.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o i386-c.o glibc-c.o \
>   cc1-checksum.o libbackend.a main.o tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -L/opt/tools/local/lib -L/opt/tools/local/lib -L/opt/tools/local/lib -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz
> ../libbacktrace/.libs/libbacktrace.a(backtrace.o)(.text+0x1f): In function `unwind':
> ../../gcc-4.9.2/libbacktrace/backtrace.c:69: undefined reference to `_Unwind_GetIPInfo'
> /usr/lib/gcc/i386-redhat-linux/3.4.6/libstdc++_shared.so: undefined reference to `_Unwind_GetIPInfo@GCC_4.2.0'
> collect2: ld returned 1 exit status
> make[3]: *** [cc1] Error 1

It should be part of the GCC you're building with.  I see it in

$ readelf -s /usr/lib/gcc/x86_64-redhat-linux/4.4.4/libgcc_s.so | grep _Unwind_GetIPInfo
    64: 00000039c1e0daf0    21 FUNC    GLOBAL DEFAULT   12 _Unwind_GetIPInfo@@GCC_4.2.0

Andrew.





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux