Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303203 - dev-java/icedtea:6 fails to emerge with /bin/sh: line 6: -sourcepath: command not found
Summary: dev-java/icedtea:6 fails to emerge with /bin/sh: line 6: -sourcepath: command...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-02 11:55 UTC by Juergen Rose
Modified: 2011-01-19 17:25 UTC (History)
0 users

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


Attachments
bzip2ped /var/tmp/portage/dev-java/icedtea-6.1.7/temp/build.log (build.log.bz2,244.47 KB, application/x-compressed)
2010-02-02 12:02 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2010-02-02 11:55:33 UTC
'emerge -av dev-java/icedtea:6' fails with:
...
# Running javac:
-sourcepath /var/tmp/portage/dev-java/icedtea-6.1.7/work/icedtea6-1.7/generated:../../../src/solaris/classes:../../../src/share/classes -bootclasspath /var/tmp/portage/dev-java/icedtea-6.1.7/work/icedtea6-1.7/bootstrap/jdk1.7.0/jre/lib/rt-closed.jar::/var/tmp/portage/dev-java/icedtea-6.1.7/work/icedtea6-1.7/openjdk-ecj/build/linux-amd64/classes -d /var/tmp/portage/dev-java/icedtea-6.1.7/work/icedtea6-1.7/openjdk-ecj/build/linux-amd64/classes @/var/tmp/portage/dev-java/icedtea-6.1.7/work/icedtea6-1.7/openjdk-ecj/build/linux-amd64/tmp/java/java.lang/java/.classes.list
/bin/sh: line 6: -sourcepath: command not found
make[4]: *** [.compile.classlist] Error 127
...
make: *** [stamps/icedtea-ecj.stamp] Error 2
 * ERROR: dev-java/icedtea-6.1.7 failed:
...
!!! When you file a bug report, please include the following information:
GENTOO_VM=gcj-jdk  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""

gcj-jdk is installed:

lynx ~ # java-config -L
The following VMs are available for generation-2:
1)      GCJ 4.3 [gcj-jdk]
2)      Sun JDK 1.5.0.22 [sun-jdk-1.5]
*)      Sun JDK 1.6.0.18 [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 http://www.gentoo.org/doc/en/java.xml#build-only for more information
lynx ~ # qlist -Iv gcj-jdk
dev-java/gcj-jdk-4.3-r4

Switching to gcj-jdk as System VM does not solve the problem


lynx ~ # env | grep GENTOO_VM
lynx ~ # env | grep CLASSPATH
lynx ~ # env | grep JAVA_HOME
JAVA_HOME=/etc/java-config-2/current-system-vm
lynx ~ # env | grep JAVACFLAGS
lynx ~ # env | grep COMPILER  
CG_COMPILER_EXE=/opt/bin/cgc

lynx ~ # ll /etc/java-config-2/current-system-vm
lrwxrwxrwx 1 root root 24 Feb  2 11:27 /etc/java-config-2/current-system-vm -> /usr/lib/jvm/sun-jdk-1.6/


java-check-environment does not show any error:
lynx ~ # java-check-environment 
 * === Java Environment Checker ===
 * The purpose of this script is to check the sanity of your Java Environment.
 * We have significantly changed and improved the way Java is handled in many
 * respects.
 * Please refer to our upgrade guide for details:
 * http://www.gentoo.org/proj/en/java/java-upgrade.xml

 * Checking fastjar ...                                                                                                                                                                                            [ ok ]

 * Checking vm_environment_files ...                                                                                                                                                                               [ ok ]

 * Checking user_settings ...
 * Running as root. Don't need to check user settings.                                                                                                                                                             [ ok ]

 * Checking generation_1_system_vm ...                                                                                                                                                                             [ ok ]

 * Checking java_config_1 ...                                                                                                                                                                                      [ ok ]

 * Checking global_classpath ...                                                                                                                                                                                   [ ok ]

 * Checking virtual_provides ...                                                                                                                                                                                   [ ok ]

 * Checking overlays_eclasses ...
 * Java eclasses found in the following overlay(s):
 * /var/lib/layman/java-overlay

 * This may or not be desired. Make sure you don't use any obsolete overlays.
 * Especially any overlays (migration etc) from www.gentooexperimental.org/svn/java/
 * Overlays (except axxo-overlay and gcj-overlay that are deprecated)
 * from http://overlays.gentoo.org/proj/java/ should be fine
 * If you experience any problems, remove it from your PORTDIR_OVERLAY and try again
                                                                                                                                                                                                                   [ ok ]

 * Checking package_env ...                                                                                                                                                                                        [ ok ]

 * Checking proc_mounted ...                                                                                                                                                                                       [ ok ]

 * Java environment is sane. Congratulations!


It happens on two computers.

Reproducible: Always




lynx ~ # emerge --info =dev-java/icedtea-6.1.7
Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r2 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 02 Feb 2010 07:30:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.7.9-r2, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.4.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/dotnet /var/lib/layman/java-overlay /var/lib/layman/lordvan /var/lib/layman/n4g /var/lib/layman/science /var/lib/layman/suka /var/lib/layman/x11 /var/lib/layman/zugaina /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs alsa amd64 ao aotuv apache2 asf aspell atlas audacious audiofile automount bash-completion beagle berkdb blas bluetooth boo boost branding bzip2 c++ cairo cardbus cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib crypt cups curl cxx daap dbus device-mapper dga dia djvu doc dri ds2490 dts dv dvb dvd dvdr dvi dxr3 eds elf emacs emboss encode epiphany esd evo examples exif expat extensions extra extras fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fts3 fuse galago garmin gd gdal gdbm geolocation geos gif gimp ginac git glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphtft graphviz gs gsl gsm gstreamer gtk guile hal harness hddtemp hdf hdf5 hlapi http httpd hvm iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda ithreads jabber jadetex java java5 java6 jbig john jpeg jpeg2k kde kdrive kerberos kexi kpathsea kvm ladspa lame lapack laptop latex lcms ldap libffi libgda libnotify libsamplerate lirc lua lzo mad mail maildir mailwrapper math matroska mikmod mmx mmxext mng modules mono motif mozdevelop mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric nvidia obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio pymol python qhull qt3support qt4 quicktime readline reflection reiserfs rle romio rpc rrdcgi rrdtool samba sasl science sdl semantic-desktop server session slang slp smbclient smp sndfile snmp soup sox speex spell spl sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs theora thinkpad threads thunar thunderbird tidy tiff tk tntc tools truetype udev unicode usb userlocales utempter v4l2 virtualbox vorbis wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" 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" CAMERAS="canon" DVB_CARDS="usb-wt220u" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                evdev                synaptics               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="nv nvidia nouveau vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



lynx ~ # emerge -pqv =dev-java/icedtea-6.1.7
[ebuild  N    ] dev-java/icedtea-6.1.7  USE="doc examples hs16 npplugin nsplugin pulseaudio -cacao -debug -javascript -nio2 -systemtap -xrender -zero"
Comment 1 Juergen Rose 2010-02-02 12:02:40 UTC
Created attachment 218155 [details]
bzip2ped /var/tmp/portage/dev-java/icedtea-6.1.7/temp/build.log
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-03-24 15:46:33 UTC
Please try upgrading to gcj-jdk-4.4.*
Comment 3 Miroslav Šulc gentoo-dev 2011-01-18 16:54:49 UTC
i guess this is already fixed, reopen if not
Comment 4 Juergen Rose 2011-01-19 16:16:30 UTC
Please reopen. I still have the issue, also with the new icedtea-6.1.9.4:

root@condor:/root(26)# genlop -t icedtea  | tail

     Tue Jan 18 05:09:15 2011 >>> dev-java/icedtea-6.1.9.3
       merge time: 30 minutes and 34 seconds.

     Wed Jan 19 15:27:02 2011 >>> dev-java/icedtea-6.1.9.4
       merge time: 30 minutes and 17 seconds.

     Wed Jan 19 16:12:39 2011 >>> dev-java/icedtea-6.1.9.4
       merge time: 31 minutes and 4 seconds.

Comment 5 Miroslav Šulc gentoo-dev 2011-01-19 16:18:44 UTC
reopening per last comment
Comment 6 Miroslav Šulc gentoo-dev 2011-01-19 16:24:13 UTC
what version of gcj-jdk you used for your last failing build?
Comment 7 Juergen Rose 2011-01-19 16:31:49 UTC
It happens with Sun JDK 1.6.0.23 and IcedTea6 1.9.4 as virtual machine:

root@condor:/root(27)# java-config -L
The following VMs are available for generation-2:
1)      Sun 32bit JRE 1.6.0.23 [emul-linux-x86-java-1.6]
2)      OpenJDK6/IcedTea6 1.9.4 [icedtea6]
*)      Sun JDK 1.6.0.23 [sun-jdk-1.6]


root@thinkpad:/home_thinkpad/rose/Bioinf/test_StackAlign/Results(412)# java-config  -L
The following VMs are available for generation-2:
*)      OpenJDK6/IcedTea6 1.9.4 [icedtea6]
2)      Sun JDK 1.6.0.23 [sun-jdk-1.6]
root@thinkpad:/home_thinkpad/rose/Bioinf/test_StackAlign/Results(413)# genlop -t icedtea  | tail
     Mon Jan 17 13:36:12 2011 >>> dev-java/icedtea-6.1.9.3
       merge time: 1 hour, 30 minutes and 13 seconds.
     Tue Jan 18 07:28:35 2011 >>> dev-java/icedtea-6.1.9.3
       merge time: 1 hour, 10 minutes and 53 seconds.
     Wed Jan 19 16:24:17 2011 >>> dev-java/icedtea-6.1.9.4
       merge time: 1 hour, 17 minutes and 10 seconds.

revdep-rebuild is still reemerging icedtea-6.1.9.4 on thinkap.
Comment 8 Miroslav Šulc gentoo-dev 2011-01-19 16:38:07 UTC
i'm little bit confused now. you get the error when you build icedtea-6.1.9.4 using icedtea6 and sun-jdk-1.6 as the building vm, right? building icedtea using gcj-jdk works for you?
Comment 9 Juergen Rose 2011-01-19 17:20:11 UTC
Sorry, I add my comments to the wrong bug. icedtea-6.1.9.4 does not fail to compile on the referenced PCs, but it is emerged with any revdep-rebuild again, because of broken /usr/lib64/icedtea6/jre/lib/amd64/libnio.so (no version information available).

I will open a new bug, because my problem does not fit to the topic.
Comment 10 Miroslav Šulc gentoo-dev 2011-01-19 17:25:53 UTC
ok, closing this bug then