From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8391 invoked by alias); 20 Dec 2007 10:24:20 -0000 Received: (qmail 8374 invoked by uid 22791); 20 Dec 2007 10:24:18 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 20 Dec 2007 10:24:14 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id lBKAOCe1008996; Thu, 20 Dec 2007 05:24:12 -0500 Received: from zebedee.littlepinkcloud.COM (vpn-14-99.rdu.redhat.com [10.11.14.99]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lBKAOBIO018385; Thu, 20 Dec 2007 05:24:11 -0500 Received: from littlepinkcloud.COM (localhost.localdomain [127.0.0.1]) by zebedee.littlepinkcloud.COM (8.13.8/8.13.5) with ESMTP id lBKAO8d3027714; Thu, 20 Dec 2007 10:24:08 GMT Received: (from aph@localhost) by littlepinkcloud.COM (8.13.8/8.13.5/Submit) id lBKAO806027711; Thu, 20 Dec 2007 10:24:08 GMT MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18282.17096.6653.393255@zebedee.pink> Date: Thu, 20 Dec 2007 10:24:00 -0000 From: Andrew Haley To: Thomas Mittelstaedt Cc: gcc-help@gcc.gnu.org, java@gcc.gnu.org Subject: Re: Problem building gcc 4.2.2 on SunOS 5.9, resolved In-Reply-To: <476A422F.6090508@cadenas.de> References: <4768E8E4.2020302@cadenas.de> <476A422F.6090508@cadenas.de> X-Mailer: VM 7.19 under Emacs 22.0.93.1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00360.txt.bz2 Thomas Mittelstaedt writes: > First, I created a build directory separate from the source tree, but I > also had to tell gcc explicitly to use > the installed gnu ld via --with-ld=/opt/gcc-4.1/bin/ld. Otherwise, the > system linker would be used. > > ../gcc-4.2.2/configure --prefix=/opt/gcc-4.2.2 > --enable-version-specific-runtime-libs --enable-static --enable-shared > --disable-nls --with-gnu-as --with-as=/opt/gcc-4.1/bin/as --with-gnu-ld > --with-ld=/opt/gcc-4.1/bin/ld --with-build-time-tools=/opt/gcc-4.1/bin/ > --enable-languages=c,c++,objc,obj-c++ This is very strange: it certainly shouldn't be trying to build libjava, but clearly it is. I'd try deleting the libjava srcdirs and bindirs. Andrew. > Thomas Mittelstaedt schrieb: > > Hallo, > > > > I build with the following: > > > > ../configure --prefix=/opt/gcc-4.2.2 > > --enable-version-specific-runtime-libs --enable-static --enable-shared > > --disable-nls --with-gnu-ld --with-build-time-tools=/opt/gcc-4.1/bin/ > > --enable-languages=c,c++,java,objc,obj-c++ > > > > make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 > > -fno-implicit-templates' bootstrap > > > > > > > > make[6]: Entering directory > > `/localbuild/gcc-4.2.2/.obj/sparc-sun-solaris2.9/sparcv9/libjava/classpath/tools' > > mkdir -p classes/gnu/classpath/tools/giop/grmic/templates > > mkdir -p classes/gnu/classpath/tools/rmi/rmic/templates > > mkdir -p classes/gnu/classpath/tools/appletviewer > > mkdir -p classes/gnu/classpath/tools/jarsigner > > mkdir -p classes/gnu/classpath/tools/keytool > > cp > > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/rmi/rmic/templates/*.jav > > classes/gnu/classpath/tools/rmi/rmic/templates > > cp > > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/giop/grmic/templates/*.jav > > classes/gnu/classpath/tools/giop/grmic/templates > > cp > > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/rmi/*.txt > > classes/gnu/classpath/tools/rmi/ > > cp > > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/giop/*.txt > > classes/gnu/classpath/tools/giop/ > > /localbuild/gcc-4.2.2/.obj/./gcc/gcj -B/localbuild/gcc-4.2.2/.obj/./gcc/ > > -B/opt/gcc-4.2.2/sparc-sun-solaris2.9/bin/ > > -B/opt/gcc-4.2.2/sparc-sun-solaris2.9/lib/ -isystem > > /opt/gcc-4.2.2/sparc-sun-solaris2.9/include -isystem > > /opt/gcc-4.2.2/sparc-sun-solaris2.9/sys-include -m64 -encoding UTF-8 > > --bootclasspath '../lib':'../lib/glibj.zip' --classpath . -C -d classes > > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/*.java > > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/*/*.java > > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/*/*/*.java > > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/AbstractMethodGenerator.java:0: > > error: Can't find default package 'java.lang'. Check the CLASSPATH > > environment variable and the access to the archives > > ../../../../../../libjava/classpath/tools/gnu/classpath/tools/HelpPrinter.java:43: > > error: Class or interface 'java.io.InputStreamReader' not found in import. > > > > > > I bootstrapped from version 4.1. > > > > SunOS buildsun3 5.9 Generic_117171-07 sun4u sparc SUNW,Sun-Blade-1000 > > -- Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK Registered in England and Wales No. 3798903