emerging gcc-4.2.2 with USE="gcj" needs zip or jar as DEPEND Reproducible: Always Steps to Reproduce: 1. USE="gcj" emerge =gcc-4.2.2 2. 3. Actual Results: checking for x86_64-pc-linux-gnu-ar... /usr/x86_64-pc-linux-gnu/bin/ar checking for x86_64-pc-linux-gnu-ranlib... /usr/x86_64-pc-linux-gnu/bin/ranlib checking for gawk... (cached) gawk checking for jar... no checking for fastjar... no checking for zip... no checking for unzip... unzip configure: error: cannot find neither zip nor jar, cannot continue make[1]: *** [configure-target-libjava] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.2/work/build' make: *** [profiledbootstrap] Error 2 Expected Results: gcc emerged sucesfully
This is not a bug. GCJ is the Java compiler. Java files are usually archives, jars. Also, when you compile a Java program, it can link directly to classes inside a zip a file. So, the dependencies are right.
but I can't emerge gcc because of this, it's needed to build gcc with gcj support.
This is most definitely a DEPEND bug in the gcc-4.2.2 ebuild. Testcase: emerge -Cp `qfile -qC /usr/bin/zip` `qfile -qC /usr/bin/jar` USE="gcj" emerge gcc Once you pass the testcase with your current DEPEND (not RDEPEND mind you.) in gcc-4.2.2, You're welcome to state the obvious that gcj is only a java compiler and not needed to build it.
ah, of course, the correct testcase is : emerge -C `qfile -qC /usr/bin/zip` `qfile -qC /usr/bin/jar` not -Cp .
*** Bug 198139 has been marked as a duplicate of this bug. ***
I'm seeing the same. checking for gawk... (cached) gawk checking for jar... no checking for fastjar... no checking for zip... no checking for unzip... unzip configure: error: cannot find neither zip nor jar, cannot continue make[1]: *** [configure-target-libjava] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.2/work/build' make: *** [profiledbootstrap] Fehler 2 winnb000488 pkg # qfile -qC /usr/bin/zip winnb000488 pkg # qfile -qC /usr/bin/jar winnb000488 pkg # LC_ALL=C ls -la /usr/bin/zip /usr/bin/jar ls: cannot access /usr/bin/zip: No such file or directory ls: cannot access /usr/bin/jar: No such file or directory It seems like the gcc 4.2.2 ebuild should require, that zip is installed, when USE=gcj is used to build gcc.
i had the same problem with 4.2.2. zip should be added as a dependency when gcj is enabled.
unzip/zip are pulled in with gcc-4.2.3 when USE=gcj
*** Bug 218264 has been marked as a duplicate of this bug. ***