Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 196643
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Toolchain Maintainers <toolchain@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Łukasz Mierzwa <l.mierzwa@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 196643 depends on: Show dependency tree
Bug 196643 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-10-21 17:30 0000
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 From Sabeeh Baig 2007-10-22 00:00:58 0000 -------
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 From Łukasz Mierzwa 2007-10-22 10:52:54 0000 -------
but I can't emerge gcc because of this, it's needed to build gcc with gcj
support. 

------- Comment #3 From Spider 2007-11-02 16:39:20 0000 -------
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 From Spider 2007-11-02 16:40:03 0000 -------
ah, of course,  the correct testcase is :
emerge -C `qfile -qC /usr/bin/zip` `qfile -qC /usr/bin/jar`  not -Cp . 

------- Comment #5 From Jakub Moc (RETIRED) 2007-11-05 08:24:53 0000 -------
*** Bug 198139 has been marked as a duplicate of this bug. ***

------- Comment #6 From Alexander Skwar 2007-12-07 12:29:24 0000 -------
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 From Alexander Huemer 2008-01-28 07:39:01 0000 -------
i had the same problem with 4.2.2.
zip should be added as a dependency when gcj is enabled.

------- Comment #8 From SpanKY 2008-02-16 22:52:53 0000 -------
unzip/zip are pulled in with gcc-4.2.3 when USE=gcj

------- Comment #9 From SpanKY 2008-04-18 18:45:52 0000 -------
*** Bug 218264 has been marked as a duplicate of this bug. ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug