This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/16858] Linking of jv-convert fails with redundant pthreads symbols
- From: "skunk at iskunk dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Feb 2007 19:00:18 -0000
- Subject: [Bug java/16858] Linking of jv-convert fails with redundant pthreads symbols
- References: <bug-16858-8784@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from skunk at iskunk dot org 2007-02-02 19:00 -------
...
/tmp/gcc-3.4.6-build/gcc/gcj
-B/tmp/gcc-3.4.6-build/alphaev56-dec-osf4.0g/libjava/
-B/tmp/gcc-3.4.6-build/gcc/ -mieee -g -O2 -o jv-convert
--main=gnu.gcj.convert.Convert -shared-libgcc
-L/tmp/gcc-3.4.6-build/alphaev56-dec-osf4.0g/libjava
-L/tmp/gcc-3.4.6-build/alphaev56-dec-osf4.0g/libjava/.libs ./.libs/libgcj.a
-L/tmp/gcc-3.4.6-build/alphaev56-dec-osf4.0g/libstdc++-v3/src
-L/tmp/gcc-3.4.6-build/alphaev56-dec-osf4.0g/libstdc++-v3/src/.libs -lpthread
-lrt -L/tmp/gcc-3.4.6-build/gcc -L/usr/lib/cmplrs/cc -lgcc -lc -lgcc -Wl,-rpath
-Wl,/usr/local/lib
/usr/bin/ld:
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): pthread_key_create: multiply
defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): __pthread_getspecific:
multiply defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): __pthread_setspecific:
multiply defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): __pthread_mutex_lock: multiply
defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): __pthread_mutex_unlock:
multiply defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): __pthread_create: multiply
defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): __pthread_cond_destroy:
multiply defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): __pthread_cond_init: multiply
defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): __pthread_cond_signal:
multiply defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): __pthread_cond_wait: multiply
defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): __pthread_mutex_init: multiply
defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): __pthread_mutex_destroy:
multiply defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): __pthread_self: multiply
defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): pthread_attr_destroy: multiply
defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): pthread_attr_init: multiply
defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): pthread_attr_setdetachstate:
multiply defined
/tmp/gcc-3.4.6-build/gcc/libgcc.a(gthr-posix.o): pthread_setschedparam:
multiply defined
collect2: ld returned 1 exit status
gmake[3]: *** [jv-convert] Error 1
gmake[3]: Leaving directory
`/tmp/gcc-3.4.6-build/alphaev56-dec-osf4.0g/libjava'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/tmp/gcc-3.4.6-build/alphaev56-dec-osf4.0g/libjava'
gmake[1]: *** [all-target-libjava] Error 2
gmake[1]: Leaving directory `/tmp/gcc-3.4.6-build'
gmake: *** [bootstrap] Error 2
Yes :-(
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16858