From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4823 invoked by alias); 3 Jan 2010 18:45:04 -0000 Received: (qmail 4766 invoked by uid 22791); 3 Jan 2010 18:45:03 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mx.pon.net (HELO athena.pon.net) (216.229.96.251) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 03 Jan 2010 18:44:57 +0000 Received: from [192.168.168.2] (unverified [208.106.107.248]) by athena.pon.net (Vircom SMTPRS 4.7.840.5) with ESMTP id ; Sun, 3 Jan 2010 10:44:59 -0800 X-Modus-BlackList: 208.106.107.248=OK;jlpoole@pon.net=OK X-Modus-RBL: 208.106.107.248=OK X-Modus-Trusted: 208.106.107.248=NO X-Modus-Audit: FALSE;0;0;0 Message-ID: <4B40E5A7.7090900@pon.net> Date: Sun, 03 Jan 2010 18:45:00 -0000 From: John Poole Reply-To: jlpoole@pon.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b2pre Thunderbird/3.0 MIME-Version: 1.0 To: Andrew Haley CC: java@gcc.gnu.org Subject: Re: GCCMain not found & test suite errors fatal? References: <4B3CDCA7.70808@pon.net> <4B40C5A7.5020903@redhat.com> <4B40DE6F.1010003@pon.net> <4B40E279.3090601@redhat.com> In-Reply-To: <4B40E279.3090601@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00003.txt.bz2 On 1/3/2010 10:31 AM, Andrew Haley wrote: > On 01/03/2010 06:14 PM, John Poole wrote: > >> On 1/3/2010 8:28 AM, Andrew Haley wrote: >> >>> 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 >>> > >> Perfect. >> >> I followed your suggestion; installed strace and reran the revised >> command line. The output can be referenced at http://pastebin.com/m7cb292d5 >> >> The definitive line is: >> >> 172. [pid 6423] access("/usr/local/share/java/ecj.jar", F_OK) = -1 >> ENOENT (No such file or directory) >> >> See also lines 81,82 and 85. >> >> Basically, the problem is that compiler was looking for ecj.jar under a >> fixed(?) /usr/local/share path instead of the path where I had custom >> installed: /usr/local/gcj; moreover it should have been looking under >> the full path of /usr/local/gcj/usr/local/share/java. >> > OK, so we need to know why that happened. It might be a bug in gcj or > you might not have configured gcc correctly. My guess is the latter, > but you never know. > > Please look at the config.log in the top of the gcc build directory, > and cut-n-paste the configure line that's there. I think I know > what's wrong, but I'll need to see it to be sure. > > Andrew. > > I added this to the bug, too. plug build # pwd /mnt/seagate2/download/gnu/build plug build # head config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.64. Invocation command line was $ ../trunk/configure --enable-languages=java ## --------- ## ## Platform. ## plug build # Let me know if you need more of the config.log.