public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "JMonk" <jmonk@panix.com>
To: <gcc-help@gcc.gnu.org>
Subject: Building gcc 3.0.4 on Red Hat with --enable-threads=posix
Date: Fri, 29 Mar 2002 20:21:00 -0000	[thread overview]
Message-ID: <012d01c1d7a2$53d53500$800110ac@CHOPIN> (raw)

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


             reply	other threads:[~2002-03-30  4:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-29 20:21 JMonk [this message]
2002-03-29 20:23 JMonk
2002-03-30 18:43 JMonk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='012d01c1d7a2$53d53500$800110ac@CHOPIN' \
    --to=jmonk@panix.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).