This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug boehm-gc/49381] New: Unresolved symbols in libgcjgc.a when linking gctest
- From: "gcc-tgc at jupiterrise dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 12 Jun 2011 09:52:11 +0000
- Subject: [Bug boehm-gc/49381] New: Unresolved symbols in libgcjgc.a when linking gctest
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49381
Summary: Unresolved symbols in libgcjgc.a when linking gctest
Product: gcc
Version: 4.5.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: boehm-gc
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gcc-tgc@jupiterrise.com
Host: i386-pc-solaris2.9
On sparc-sun-solaris2.7 and i386-pc-solaris2.9 I'm seeing this when running the
testsuite.
libtool: link: /export/home/pkgsrc/ccj_native/./gcc/xgcc
-B/export/home/pkgsrc/ccj_native/./gcc/ -B/export/home/pkgsrc/
gcc45/i386-pc-solaris2.9/bin/
-B/export/home/pkgsrc/gcc45/i386-pc-solaris2.9/lib/ -isystem
/export/home/pkgsrc/gcc45/i3
86-pc-solaris2.9/include -isystem
/export/home/pkgsrc/gcc45/i386-pc-solaris2.9/sys-include -fexceptions -Iinclude
-I./.
/targ-include -I.//libc/include -O2 -g -o gctest -shared-libgcc tests/test.o
./.libs/libgcjgc.a -lpthread -ldl
Undefined first referenced
symbol in file
nanosleep ./.libs/libgcjgc.a(pthread_support.o)
sched_yield ./.libs/libgcjgc.a(pthread_support.o)
sem_destroy ./.libs/libgcjgc.a(pthread_support.o)
sem_getvalue ./.libs/libgcjgc.a(pthread_stop_world.o)
sem_init ./.libs/libgcjgc.a(pthread_support.o)
sem_post ./.libs/libgcjgc.a(pthread_support.o)
sem_wait ./.libs/libgcjgc.a(pthread_support.o)
ld: fatal: Symbol referencing errors. No output written to gctest
collect2: ld returned 1 exit status
The reason seems to be that
http://gcc.gnu.org/ml/gcc-patches/2011-01/msg02288.html is missing on 4.5
branch.
Applying that fixes the issue for me.