This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Building gcc 3.0.4 on Red Hat with --enable-threads=posix
- From: "JMonk" <jmonk at panix dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 29 Mar 2002 23:23:28 -0500
- Subject: Building gcc 3.0.4 on Red Hat with --enable-threads=posix
I must be missing something here, but I can't get gcc to build with the
option (--enable-threads=posix) set.
<<Some system details BTW:
mahler:~/gcc/gcc$ uname -a
Linux mahler 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
mahler:~/gcc/gcc$ g++.2.96 -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)
mahler:~/gcc/gcc$ rpm -qa | grep glib
glibc-common-2.2.2-10
glib-1.2.9-1
glib-devel-1.2.9-1
glibc-2.2.2-10
glibc-devel-2.2.2-10
compat-glibc-6.2-2.1.3.2
END some system details>>
I can perform the default install, as follows:
mahler:~/gcc/gcc$ cat config.status
#!/bin/sh
# This file was generated automatically by configure. Do not
edit.
# This directory was configured as follows:
../gcc-3.0.4/configure
--with-gcc-version-trigger=/home/jmonk/gcc/gcc-3.0.4/gcc/version.c
--host=i686-pc-linux-gnu --norecursion
# using "mt-frag"
But when I add " --enable-threads=posix", as follows:
mahler:~/gcc/gcc$ cat config.status
#!/bin/sh
# This file was generated automatically by configure. Do not
edit.
# This directory was configured as follows:
../gcc-3.0.4/configure
--with-gcc-version-trigger=/home/jmonk/gcc/gcc-3.0.4/gcc/version.c
--host=i686-pc-linux-gnu --enable-threads=posix --norecursion
# using "mt-frag"
The install fails, as follows:
gnu/libjava ./.libs/libgcj.so -ldl
./../boehm-gc/.libs/libgcjgc.so
-L/home/jmonk/gcc/gcc/i686-pc-linux-gnu/libjava/../boehm-gc/.libs
-lpthread ./../zlib/.libs/libzgcj.so
-L/home/jmonk/gcc/gcc/i686-pc-linux-gnu/libjava/../zlib/.libs
-L/home/jmonk/gcc/gcc/i686-pc-linux-gnu/libjava/.libs -Wl,--rpath
-Wl,/usr/local/lib
./.libs/libgcj.so: undefined reference to `GC_lock'
./.libs/libgcj.so: undefined reference to `_Jv_OnlyThread'
./.libs/libgcj.so: undefined reference to `GC_pthread_create'
./.libs/libgcj.so: undefined reference to
`_Jv_ThreadStart(java::lang::Thread*, int*, void
(*)(java::lang::Thread*))'
./.libs/libgcj.so: undefined reference to `GC_allocate_lock'
./.libs/libgcj.so: undefined reference to `GC_dlopen'
collect2: ld returned 1 exit status
make[3]: *** [jv-convert] Error 1
make[3]: Leaving directory
`/home/jmonk/gcc/gcc/i686-pc-linux-gnu/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/jmonk/gcc/gcc/i686-pc-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/home/jmonk/gcc/gcc'
make: *** [bootstrap] Error 2