Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292876 - dev-java/jdbc-mysql-5.1.10 fails to emerge with gcj-jdk
Summary: dev-java/jdbc-mysql-5.1.10 fails to emerge with gcj-jdk
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
Depends on:
Reported: 2009-11-12 08:08 UTC by Juergen Rose
Modified: 2010-02-12 23:08 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2009-11-12 08:08:48 UTC
'emerge jdbc-mysql' fails with:
Rewriting /var/tmp/portage/dev-java/jdbc-mysql-5.1.10/work/mysql-connector-java-5.1.10/build.xml
 * Using following ANT_TASKS: ant-contrib
Buildfile: build.xml
     [echo] Compiling class files to ./build/mysql-connector-java-5.1.10...

     [echo] This version of MySQL Connector/J requires a compiler from Java-1.4 or Java-1.5 to be used, set your JAVA_HOME property to point to one of these versions of the JDK.
     [echo] Compiling this version also requires Java-6 for compiling the JDBC-4.0 implementation, please set the full path to the javac executable with the property "com.mysql.jdbc.java6.javac"
     [echo] and the full path to the rt.jar from Java-6 with the property "com.mysql.jdbc.java6.rtjar".

/var/tmp/portage/dev-java/jdbc-mysql-5.1.10/work/mysql-connector-java-5.1.10/build.xml:90: No message

Total time: 4 seconds
 * ERROR: dev-java/jdbc-mysql-5.1.10 failed:
 *   eant failed
 * Call stack:
 *, line   55:  Called src_compile
 *   environment, line 4485:  Called java-pkg-2_src_compile '-Dcom.mysql.jdbc.java6.javac=/opt/sun-jdk-' '-Dcom.mysql.jdbc.java6.rtjar=/opt/sun-jdk-'
 *   environment, line 2530:  Called eant 'dist' '-f' 'build.xml' '-Dcom.mysql.jdbc.java6.javac=/opt/sun-jdk-' '-Dcom.mysql.jdbc.java6.rtjar=/opt/sun-jdk-'
 *   environment, line 1043:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 * If you need support, post the output of 'emerge --info =dev-java/jdbc-mysql-5.1.10',
 * the complete build log and the output of 'emerge -pqv =dev-java/jdbc-mysql-5.1.10'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=gcj-jdk  CLASSPATH="" JAVA_HOME="/usr/lib/gcj-jdk-4.3"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info

I don't know, why I get the output GENTOO_VM=gcj-jdk and JAVA_HOME="/usr/lib/gcj-jdk-4.3".

If I do the following commands, I get other information:
grizzly ~ # java-config -L
The following VMs are available for generation-2:
1)      GCJ 4.3 [gcj-jdk]
2)      IcedTea JDK 1.7.0 [icedtea-jdk-1.7]
3)      IcedTea6-bin 1.6.1 [icedtea6-bin]
*)      Sun JDK [sun-jdk-1.6]

VMs marked as Build Only may contain Security Vulnerabilities and/or be EOL.
Gentoo recommends not setting these VMs as either your System or User VM.
Please see for more information
grizzly ~ # echo $JAVA_HOME 
grizzly ~ # ll /etc/java-config-2/current-system-vm
lrwxrwxrwx 1 root root 24 Nov 12 08:53 /etc/java-config-2/current-system-vm -> /usr/lib/jvm/sun-jdk-1.6/
grizzly ~ # java-check-environment 
* === Java Environment Checker ===
* The purpose of this script is to check the sanity of your Java Environment.
* Java environment is sane. Congratulations!

Reproducible: Always

grizzly ~ # emerge --info
Portage (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r0, 2.6.30-gentoo-r5 x86_64)
System uname: Linux-2.6.30-gentoo-r5-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-2.0.1
Timestamp of tree: Thu, 12 Nov 2009 03:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -march=k8"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=k8"
GENTOO_MIRRORS=" rsync:// "
LINGUAS="de fr"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/layman/zugaina /usr/local/portage/layman/dotnet /usr/local/portage/layman/science /usr/local/portage/layman/java-overlay /usr/local/portage"
USE="3dnow 3dnowext X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amd64 amrr ao aotuv apache2 asf aspell atlas auctex audacious audiofile automount bash-completion beagle berkdb bjam blas bluetooth bonobo boo boost branding bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib cran crypt cups curl cxx daap dbus device-mapper dga dia divx djvu dlloader dmi doc dri ds3490 dts dv dvb dvd dvdr dvi dxr3 dynagraph eds effects elf emacs emboss encode epiphany esd evo examples exif expat extra extras fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fuse galago garmin gd gdal gdbm geolocation geos gif gimp gimpprint ginac glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened harness hddtemp hdf hdf5 hlapi http httpd iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda irmc ithreads jabber java java5 java6 jbig john jpeg jpeg2k kde kde4 kerberos kexi keyring ladspa lame lapack latex lcms ldap libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo lzw mad maildir mailwrapper math matroska mikmod mmx mmxext mng mod modules mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp pae pam pcre pda pdf perl pipechan plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio python qemu qhull qt3support qt4 quicktime readline reflection reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl server session slang slp smbclient sndfile snmp soup sox speex spell spl sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg sysfs szip t1lib tcl tcpd tex theora threads thunar thunderbird tidy tiff tk tntc truetype unicode usb userlocales utempter v4l2 vorbis wav webdav webdav-serf webkit wmf wxwidgets x264 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="AC'97" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="tda10046 saa7134" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" LIRC_DEVICES="hauppauge_dvb" NETBEANS_MODULES="ide websvccommon nb harness apisupport groovy gsf j2ee java xml" USERLAND="GNU" VIDEO_CARDS="radeon vesa" 
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-02-12 23:08:26 UTC
Removed the check, please try now and reopen if problem persists.