From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6949 invoked by alias); 3 Jan 2010 16:28:32 -0000 Received: (qmail 6684 invoked by uid 22791); 3 Jan 2010 16:28:31 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 03 Jan 2010 16:28:27 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o03GSPsM018087 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 3 Jan 2010 11:28:25 -0500 Received: from zebedee.pink (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o03GSNei028562; Sun, 3 Jan 2010 11:28:24 -0500 Message-ID: <4B40C5A7.5020903@redhat.com> Date: Sun, 03 Jan 2010 16:28:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0 MIME-Version: 1.0 To: jlpoole@pon.net CC: java@gcc.gnu.org Subject: Re: GCCMain not found & test suite errors fatal? References: <4B3CDCA7.70808@pon.net> In-Reply-To: <4B3CDCA7.70808@pon.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2010-01/txt/msg00000.txt.bz2 On 12/31/2009 05:17 PM, John Poole wrote: > You wrote: > >>> I suggest you grab ecj.jar and put it in install/share/java. That >>> should get you a fully working gcj. > > > Thank you, Andrew, I had already tried to do so. > > Previously I learned the hard way about the ecj.jar issue, so I ran > the.../contrib/download_ecj script (which downloaded the ecj.jar from > the predefined site) to install the ecj.jar into the trunk directory, I > then ran the configuration again so the ecj.jar would be staged into my > target for "make ... install". > > In fact, I do have ecj.jar installed in my target tree: /usr/local/gcj. > > I even tried adding it to the include parameter and still get the same > result. Maybe I'm not using the correct parameter syntax?? > > plug local # pwd > /usr/local/gcj/usr/local > plug local # find . -name '*ecj*.jar' > ./share/java/ecj.jar > plug local # export LD_LIBRARY_PATH=/usr/local/gcj/usr/local/lib > plug local # > plug local # ./bin/gcj -I./lib/:./share/java/ecj.jar -c > /var/work/gcj/HelloWorld.java [B You don't want the -I part. I'd try stracing gcj to find out what's going on $ strace -f -etrace=file gcj -c HelloWorld.java This will tell you where gcj is looking for its jarfiles. Look for something like this: ... 547 execve("/home/aph/gcc/trunk/install/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/ecj1", ["/home/aph/gcc/trunk/install/libe"..., "Hello.java", "-g1", "-fbootclasspath=./:/home/aph/gcc"..., "-g1", "-fsource=1.5", "-ftarget=1.5", "-fzip-dependency", "/tmp/ccXyDB9d.zip", "-fzip-target", "/tmp/ccipPqBc.jar"], [/* 42 vars */]) = 0 ... 547 stat("/home/aph/gcc/trunk/install/share/java/ecj.jar", {st_mode=S_IFREG|0644, st_size=1377431, ...}) = 0 547 open("/home/aph/gcc/trunk/install/share/java/ecj.jar", O_RDONLY) = 3 ... Andrew.