From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-85038-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1KpCd4-00083u-UI
	for garchives@archives.gentoo.org; Mon, 13 Oct 2008 01:53:51 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 5E049E02E6;
	Mon, 13 Oct 2008 01:53:49 +0000 (UTC)
Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230])
	by pigeon.gentoo.org (Postfix) with ESMTP id 330F5E02E6
	for <gentoo-user@lists.gentoo.org>; Mon, 13 Oct 2008 01:53:49 +0000 (UTC)
Received: by wr-out-0506.google.com with SMTP id c37so939607wra.26
        for <gentoo-user@lists.gentoo.org>; Sun, 12 Oct 2008 18:53:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:to
         :subject:mime-version:content-type;
        bh=b5ngQRiPCmz/Ud8GnWVe6hFDLlLGmYg2ookMuByRpCI=;
        b=uMIGO3bvkHsjSmKaLuR30lPyooT+w3LSk45VgC3wsCFHhMOIsQZoH2CVU1bLUlmX2u
         iSgVcBNBgQobPXBOOAS8QLyCsiyBkfv4gyZvs75uTUM1y09RXUk9pnf9PJcbKfxFYGrN
         G6PRkUSB2SPaUEzWRPTidVXkR4iGHkygJZxH8=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:to:subject:mime-version:content-type;
        b=kDNUemNoLa49PJA2nBG0Q8YL5dFrO4kIldgi+NPqK2J3v2HTbF5bprTEPWbzb5zbxd
         7k9xvE9KMxoJWESyyV9wLFBrnluntvN1HsYDp/qssrn7teuRTIjOPyTy/59SxE+aQziZ
         kJfulKv/bbDTykDcUIWHkWSlfNgaYT8SjcUbs=
Received: by 10.65.158.19 with SMTP id k19mr9342322qbo.94.1223862827134;
        Sun, 12 Oct 2008 18:53:47 -0700 (PDT)
Received: by 10.64.131.18 with HTTP; Sun, 12 Oct 2008 18:53:47 -0700 (PDT)
Message-ID: <384d42da0810121853q1b209ea0x605d32905fc8fac9@mail.gmail.com>
Date: Mon, 13 Oct 2008 10:53:47 +0900
From: SOrCErEr <omentie@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Fail to build "eclipse-ecj-3.4-r3" cause of missing gjar
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_76228_28825506.1223862827092"
X-Archives-Salt: 8d37ada9-6a66-44d8-a1ba-5f450d36af0f
X-Archives-Hash: af3fa0902712dd4bbc215d2abb11c682

------=_Part_76228_28825506.1223862827092
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I try to use eclipse, so I emerged eclipse-sdk.
But it failed while building eclipse-ecj-3.4-r3.

The error message is like below.

 *
 * ERROR: dev-java/eclipse-ecj-3.4-r3 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_compile
 * environment, line 3769:  Called die
 * The specific snippet of code:
 * [[ -x ${jar} ]] || die "No jar found for gcc";
 * The die message:
 * No jar found for gcc
 *
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/tmp/portage/dev-java/eclipse-ecj-3.4-r3/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/dev-java/eclipse-ecj-3.4-r3/temp/environment'.
 *


And I found something on
"/var/tmp/portage/dev-java/eclipse-ecj-3.4-r3/temp/environment".
It try to find gjar or fastjar on ${gccbin}

local gccbin="$(gcc-config -B $(ls -1r /etc/env.d/gcc/${CHOST}-* | head -1)
|| die)";
local gcj="${gccbin}/gcj";
javac="${gcj} -C -encoding ISO-8859-1";
jar="${gccbin}/gjar";
[[ -x ${jar} ]] || jar="${gccbin}/fastjar";
[[ -x ${jar} ]] || die "No jar found for gcc";
java="${gccbin}/gij";


But my gcc has no gjar or fastjar.
My gcc's information is as below.

$ emerge -pv gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-devel/gcc-4.2.4  USE="fortran gcj gtk libffi mudflap nls
objc objc++ objc-gc openmp (-altivec) -bootstrap -build -doc (-hardened)
-ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -test -vanilla"
0 kB


And eclipse-ecj's

$ emerge -pv eclipse-ecj

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-java/eclipse-ecj-3.4-r3  USE="gcj -java6" 0 kB



My friend use gentoo, and he use gcc 4.3.x. There is a gjar on gcc.

So, I think that eclipse-ecj try to use gcj, but my gcc version is older
than 4.3.x.
Am I right?
If this is right, it's a bug, I think. Because eclipse-ecj-3.4-r3 just only
check whether gcc has gcj flag or not, now. But it must be check gcc's
version, too(I'll try to report this on bugzilla).
If I'm wrong, is there any mistake?
Please let me know.

-- 
SOrCErEr

------=_Part_76228_28825506.1223862827092
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">I try to use eclipse, so I emerged eclipse-sdk.<br>But it failed while building eclipse-ecj-3.4-r3.<br><br>The error message is like below.<br><br>&nbsp;* <br>&nbsp;* ERROR: dev-java/eclipse-ecj-3.4-r3 failed.<br>&nbsp;* Call stack:<br>
&nbsp;* ebuild.sh, line&nbsp;&nbsp; 49:&nbsp; Called src_compile<br>&nbsp;* environment, line 3769:&nbsp; Called die<br>&nbsp;* The specific snippet of code:<br>&nbsp;* [[ -x ${jar} ]] || die &quot;No jar found for gcc&quot;;<br>&nbsp;* The die message:<br>&nbsp;* No jar found for gcc<br>
&nbsp;* <br>&nbsp;* If you need support, post the topmost build error, and the call stack if relevant.<br>&nbsp;* A complete build log is located at &#39;/var/tmp/portage/dev-java/eclipse-ecj-3.4-r3/temp/build.log&#39;.<br>&nbsp;* The ebuild environment file is located at &#39;/var/tmp/portage/dev-java/eclipse-ecj-3.4-r3/temp/environment&#39;.<br>
&nbsp;* <br><br><br>And I found something on &quot;/var/tmp/portage/dev-java/eclipse-ecj-3.4-r3/temp/environment&quot;.<br>It try to find gjar or fastjar on ${gccbin}<br><br>local gccbin=&quot;$(gcc-config -B $(ls -1r /etc/env.d/gcc/${CHOST}-* | head -1) || die)&quot;;<br>
local gcj=&quot;${gccbin}/gcj&quot;;<br>javac=&quot;${gcj} -C -encoding ISO-8859-1&quot;;<br>jar=&quot;${gccbin}/gjar&quot;;<br>[[ -x ${jar} ]] || jar=&quot;${gccbin}/fastjar&quot;;<br>[[ -x ${jar} ]] || die &quot;No jar found for gcc&quot;;<br>
java=&quot;${gccbin}/gij&quot;;<br><br><br>But my gcc has no gjar or fastjar.<br>My gcc&#39;s information is as below.<br><br>$ emerge -pv gcc<br><br>These are the packages that would be merged, in order:<br><br>Calculating dependencies... done!<br>
[ebuild&nbsp;&nbsp; R&nbsp;&nbsp; ] sys-devel/gcc-4.2.4&nbsp; USE=&quot;fortran gcj gtk libffi mudflap nls objc objc++ objc-gc openmp (-altivec) -bootstrap -build -doc (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -test -vanilla&quot; 0 kB<br>
<br><br>And eclipse-ecj&#39;s<br><br>$ emerge -pv eclipse-ecj<br><br>These are the packages that would be merged, in order:<br><br>Calculating dependencies... done!<br>[ebuild&nbsp; N&nbsp;&nbsp;&nbsp; ] dev-java/eclipse-ecj-3.4-r3&nbsp; USE=&quot;gcj -java6&quot; 0 kB<br>
<br><br><br>My friend use gentoo, and he use gcc 4.3.x. There is a gjar on gcc.<br><br>So, I think that eclipse-ecj try to use gcj, but my gcc version is older than 4.3.x.<br>Am I right?<br>If this is right, it&#39;s a bug, I think. Because eclipse-ecj-3.4-r3 just only check whether gcc has gcj flag or not, now. But it must be check gcc&#39;s version, too(I&#39;ll try to report this on bugzilla).<br>
If I&#39;m wrong, is there any mistake?<br>Please let me know.<br clear="all"><br>-- <br>SOrCErEr<br>
</div>

------=_Part_76228_28825506.1223862827092--