public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: Building gcc 3.0.4 on Red Hat with --enable-threads=posix
@ 2002-03-30 18:43 JMonk
  0 siblings, 0 replies; 3+ messages in thread
From: JMonk @ 2002-03-30 18:43 UTC (permalink / raw)
  To: gcc-help

Ok, after some experimentation, I got this to work with the following
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-redhat-linux --infodir=/usr/info --mandir=/usr/man
--enable-shared --enable-threads=posix
--enable-languages=c,gcov,c++,objc,java,f77 --enable-long-long
--enable-namespaces --enable-multilib --with-gnu-as --with-gnu-ld
--with-system-zlib --without-x --norecursion 
# using "mh-frag" and "mt-frag"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Building gcc 3.0.4 on Red Hat with --enable-threads=posix
@ 2002-03-29 20:23 JMonk
  0 siblings, 0 replies; 3+ messages in thread
From: JMonk @ 2002-03-29 20:23 UTC (permalink / raw)
  To: gcc-help

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Building gcc 3.0.4 on Red Hat with --enable-threads=posix
@ 2002-03-29 20:21 JMonk
  0 siblings, 0 replies; 3+ messages in thread
From: JMonk @ 2002-03-29 20:21 UTC (permalink / raw)
  To: gcc-help

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-03-31  2:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-30 18:43 Building gcc 3.0.4 on Red Hat with --enable-threads=posix JMonk
  -- strict thread matches above, loose matches on Subject: below --
2002-03-29 20:23 JMonk
2002-03-29 20:21 JMonk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).