[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] problems linking with gold
From: |
Hochhaus, Andrew |
Subject: |
[Libunwind-devel] problems linking with gold |
Date: |
Fri, 2 Sep 2011 15:21:30 -0500 |
Hello,
When I link libunwind-1.0 with gold I receive the following error:
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -fexceptions
-Wall -Wsign-compare -o Gperf-simple Gperf-simple.o
../src/libunwind-x86_64.la
libtool: link: gcc -g -O2 -fexceptions -Wall -Wsign-compare -o
.libs/Gperf-simple Gperf-simple.o ../src/.libs/libunwind-x86_64.so
/usr/bin/ld: Gperf-simple.o: in function
measure_init:Gperf-simple.c:179: error: undefined reference to
'_Ux86_64_getcontext'
/usr/bin/ld: Gperf-simple.o: in function
measure_init:Gperf-simple.c:206: error: undefined reference to
'_Ux86_64_getcontext'
/usr/bin/ld: Gperf-simple.o: in function
measure_unwind:Gperf-simple.c:64: error: undefined reference to
'_Ux86_64_getcontext'
collect2: ld returned 1 exit status
This problem with gold came up once before:
http://lists.gnu.org/archive/html/libunwind-devel/2011-04/msg00021.html
The linking issues was fixed in this commit:
http://git.savannah.gnu.org/gitweb/?p=libunwind.git;a=commit;h=4dc222cf8af663b4557b56281737f2c2f1115827
However, the problem was introduced again here:
http://git.savannah.gnu.org/gitweb/?p=libunwind.git;a=commit;h=d589e205068843548d57116e2e228c6f552a12f4
I manually re-added "$(LIBUNWIND_local)" in "tests/Makefile.am" to a
fresh checkout of HEAD and everything linked correctly with gold.
Thanks,
Andy
- [Libunwind-devel] problems linking with gold,
Hochhaus, Andrew <=