public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
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
Date: Mon, 13 Oct 2008 10:53:47 +0900	[thread overview]
Message-ID: <384d42da0810121853q1b209ea0x605d32905fc8fac9@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2187 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2719 bytes --]

                 reply	other threads:[~2008-10-13  1:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=384d42da0810121853q1b209ea0x605d32905fc8fac9@mail.gmail.com \
    --to=omentie@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox