Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196643 - sys-devel/gcc-4.2 with USE="gcj" needs zip or jar
Summary: sys-devel/gcc-4.2 with USE="gcj" needs zip or jar
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 198139 218264 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-21 17:30 UTC by Łukasz Mierzwa
Modified: 2008-04-18 18:45 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz Mierzwa 2007-10-21 17:30:05 UTC
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
Comment 1 Sabeeh Baig 2007-10-22 00:00:58 UTC
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.
Comment 2 Łukasz Mierzwa 2007-10-22 10:52:54 UTC
but I can't emerge gcc because of this, it's needed to build gcc with gcj support. 
Comment 3 Spider 2007-11-02 16:39:20 UTC
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.
Comment 4 Spider 2007-11-02 16:40:03 UTC
ah, of course,  the correct testcase is :
emerge -C `qfile -qC /usr/bin/zip` `qfile -qC /usr/bin/jar`  not -Cp . 
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-11-05 08:24:53 UTC
*** Bug 198139 has been marked as a duplicate of this bug. ***
Comment 6 Alexander Skwar 2007-12-07 12:29:24 UTC
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.
Comment 7 Alexander Huemer 2008-01-28 07:39:01 UTC
i had the same problem with 4.2.2.
zip should be added as a dependency when gcj is enabled.
Comment 8 SpanKY gentoo-dev 2008-02-16 22:52:53 UTC
unzip/zip are pulled in with gcc-4.2.3 when USE=gcj
Comment 9 SpanKY gentoo-dev 2008-04-18 18:45:52 UTC
*** Bug 218264 has been marked as a duplicate of this bug. ***