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 ) 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 ; Mon, 13 Oct 2008 01:53:49 +0000 (UTC) Received: by wr-out-0506.google.com with SMTP id c37so939607wra.26 for ; 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 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: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail 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
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--