Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 346925 - =dev-db/qdbm-1.8.78 fails to install when using sun-jdk on amd64
Summary: =dev-db/qdbm-1.8.78 fails to install when using sun-jdk on amd64
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Akinori Hattori
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-27 06:04 UTC by Andreas Eriksson
Modified: 2011-08-24 14:24 UTC (History)
0 users

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 Andreas Eriksson 2010-11-27 06:04:51 UTC
Hi.

I ran an update today, got this error:

#================================================================
# Ready to install.
#================================================================
/var/tmp/portage/dev-db/qdbm-1.8.78/work/qdbm-1.8.78
make -j4 
/opt/sun-jre-bin-1.6.0.22/bin/javac -d . -source 1.4 -target 1.4 ./*.java
/opt/sun-jre-bin-1.6.0.22/bin/javac -d . -source 1.4 -target 1.4 ./*.java
/opt/sun-jre-bin-1.6.0.22/bin/javac -d . -source 1.4 -target 1.4 ./*.java
/bin/sh: /opt/sun-jre-bin-1.6.0.22/bin/javac: No such file or directory
/bin/sh: /opt/sun-jre-bin-1.6.0.22/bin/javac: No such file or directory
make: *** [ADBM.class] Error 127
make: *** Waiting for unfinished jobs....
make: *** [DBMException.class] Error 127
/bin/sh: /opt/sun-jre-bin-1.6.0.22/bin/javac: No such file or directory
make: *** [Util.class] Error 127
emake failed
 * ERROR: dev-db/qdbm-1.8.78 failed:
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4110:  Called qdbm_api_for
 *   environment, line 4008:  Called die
 * The specific snippet of code:
 *                   emake || die

I think its pretty obvious what is going wrong here: its using javac for something, and I'm using dev-java/sun-jdk which on amd64 doesn't come with javac. I think the same goes for dev-java/sun-jre-bin and possibly other java implementations as well.

I think I saw some ebuild a while ago that checks what VMs are installed and temporarily switches to one that works for the build, maybe that could be done here, or the ebuild could just check what vm you're running and do a warning.
Comment 1 Akinori Hattori gentoo-dev 2011-08-24 14:21:46 UTC
It seems that your system vm is sun-jre-bin.
Please read Preferred Build VM section of Gentoo Java Guide[1]
and configure your java environment.
Comment 2 Akinori Hattori gentoo-dev 2011-08-24 14:24:26 UTC
Oops! I forgot to mention the url.

[1] http://www.gentoo.org/doc/en/java.xml#preferred-vm