<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>