Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154073 - sun-jdk-1.4.2.12-r2 build not valid
Summary: sun-jdk-1.4.2.12-r2 build not valid
Status: RESOLVED DUPLICATE of bug 89927
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-04 14:50 UTC by VinnieNZ
Modified: 2006-11-04 14:55 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 VinnieNZ 2006-11-04 14:50:14 UTC
I'm doing a GCC3.4.6 - 4.1.1 update on my system and up until this point most things have worked except this.

I can complete the emerge of =sun-jdk-1.4.2.12-r2 fine but with the following errors:

Calculating dependencies ... done!

>>> Emerging (1 of 1) dev-java/sun-jdk-1.4.2.12-r2 to /
 * j2sdk-1_4_2_12-linux-i586.bin MD5 ;-) ...                                                                                                   [ ok ]
 * j2sdk-1_4_2_12-linux-i586.bin RMD160 ;-) ...                                                                                                [ ok ]
 * j2sdk-1_4_2_12-linux-i586.bin SHA1 ;-) ...                                                                                                  [ ok ]
 * j2sdk-1_4_2_12-linux-i586.bin SHA256 ;-) ...                                                                                                [ ok ]
 * j2sdk-1_4_2_12-linux-i586.bin size ;-) ...                                                                                                  [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                           [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                          [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                         [ ok ]
 * checking j2sdk-1_4_2_12-linux-i586.bin ;-) ...                                                                                              [ ok ]
>>> Unpacking source...
grep: Invalid back reference
tail: +: invalid number of lines
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-java/sun-jdk-1.4.2.12-r2 ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-java/sun-jdk-1.4.2.12-r2

>>> Install sun-jdk-1.4.2.12-r2 into /var/tmp/portage/dev-java/sun-jdk-1.4.2.12-r2/image/ category dev-java
cp: cannot stat `bin': No such file or directory
cp: cannot stat `include': No such file or directory
cp: cannot stat `jre': No such file or directory
cp: cannot stat `lib': No such file or directory
cp: cannot stat `man': No such file or directory
dodoc: COPYRIGHT does not exist
dodoc: README does not exist
dodoc: LICENSE does not exist
dodoc: THIRDPARTYLICENSEREADME.txt does not exist
cp: cannot stat `src.zip': No such file or directory
sed: can't read /var/tmp/portage/dev-java/sun-jdk-1.4.2.12-r2/image//opt/sun-jdk-1.4.2.12/jre/plugin/desktop/sun_java.desktop: No such file or directory
 * Enabling generation-1 compatibility...
>>> Completed installing sun-jdk-1.4.2.12-r2 into /var/tmp/portage/dev-java/sun-jdk-1.4.2.12-r2/image/

man:
>>> Merging dev-java/sun-jdk-1.4.2.12-r2 to /
--- /etc/
--- /etc/env.d/
--- /etc/env.d/java/
>>> /etc/env.d/java/20sun-jdk-1.4.2.12
--- /opt/
--- /opt/sun-jdk-1.4.2.12/
--- /opt/sun-jdk-1.4.2.12/.systemPrefs/
>>> /opt/sun-jdk-1.4.2.12/.systemPrefs/.system.lock
>>> /opt/sun-jdk-1.4.2.12/.systemPrefs/.systemRootModFile
--- /opt/sun-jdk-1.4.2.12/bin/
--- /opt/sun-jdk-1.4.2.12/jre/
--- /opt/sun-jdk-1.4.2.12/jre/bin/
>>> /opt/sun-jdk-1.4.2.12/share/
--- /usr/
--- /usr/lib/
--- /usr/lib/jvm/
>>> /usr/lib/jvm/sun-jdk-1.4 -> /opt/sun-jdk-1.4.2.12
--- /usr/share/
--- /usr/share/applications/
>>> /usr/share/applications/sun_java-1.4.desktop
--- /usr/share/doc/
>>> /usr/share/doc/sun-jdk-1.4.2.12-r2/
--- /usr/share/java-config-2/
--- /usr/share/java-config-2/vm/
>>> /usr/share/java-config-2/vm/sun-jdk-1.4
>>> /opt/sun-jdk-1.4.2.12/bin/javaws -> ../jre/javaws/javaws
>>> /opt/sun-jdk-1.4.2.12/jre/bin/javaws -> ../javaws/javaws
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/share/java-config-2/vm/sun-jdk-1.4
--- !mtime obj /usr/share/applications/sun_java-1.4.desktop
--- !mtime sym /usr/lib/jvm/sun-jdk-1.4
--- !mtime sym /opt/sun-jdk-1.4.2.12/jre/bin/javaws
--- !mtime sym /opt/sun-jdk-1.4.2.12/bin/javaws
--- !mtime obj /opt/sun-jdk-1.4.2.12/.systemPrefs/.systemRootModFile
--- !mtime obj /opt/sun-jdk-1.4.2.12/.systemPrefs/.system.lock
--- !mtime obj /etc/env.d/java/20sun-jdk-1.4.2.12
--- cfgpro dir /etc
--- !empty dir /usr/share/java-config-2/vm
--- !empty dir /usr/share/java-config-2
<<<        dir /usr/share/doc/sun-jdk-1.4.2.12-r2
--- !empty dir /usr/share/doc
--- !empty dir /usr/share/applications
--- !empty dir /usr/share
--- !empty dir /usr/lib/jvm
--- !empty dir /usr/lib
--- !empty dir /usr
<<<        dir /opt/sun-jdk-1.4.2.12/share
--- !empty dir /opt/sun-jdk-1.4.2.12/jre/bin
--- !empty dir /opt/sun-jdk-1.4.2.12/jre
--- !empty dir /opt/sun-jdk-1.4.2.12/bin
--- !empty dir /opt/sun-jdk-1.4.2.12/.systemPrefs
--- !empty dir /opt/sun-jdk-1.4.2.12
--- !empty dir /opt
--- !empty dir /etc/env.d/java
--- !empty dir /etc/env.d
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
 * Emerging the current generation-1 system-vm...
 * Updating its config files.
Now using sun-jdk-1.4 for the generation-1 system JDK

>>> dev-java/sun-jdk-1.4.2.12-r2 merged.

>>> No packages selected for removal by clean.

>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.





This leaves most of the files required missing according to java-config-1:
java-config-1 -c
jc_options: javac not found at /opt/sun-jdk-1.4.2.12/bin/javac or /opt/sun-jdk-1.4.2.12/jre/bin/javac

java-config-1 -J
jc_options: java not found at /opt/sun-jdk-1.4.2.12/bin/java or /opt/sun-jdk-1.4.2.12/jre/bin/java

java-config-1 -O
/opt/sun-jdk-1.4.2.12


which looks correct based on this:

ls /opt/sun-jdk-1.4.2.12/bin/
javaws

ls /opt/sun-jdk-1.4.2.12/jre/bin/
javaws




Java-check-environment gives:

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 http://www.gentoo.org/proj/en/java/java-upgrade.xml for details

 * 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 virtual_provides ...                                                                                                               [ ok ]

 * Checking overlays_eclasses ...                                                                                                              [ ok ]

 * Java environment is sane. Congratulations!
Comment 1 VinnieNZ 2006-11-04 14:50:48 UTC
But when I try to emerge the next program that requires Java1 I get:

>>> Emerging (1 of 188) dev-java/libreadline-java-0.8.0-r1 to /
 * libreadline-java-0.8.0-src.tar.gz MD5 ;-) ...                                                                                               [ ok ]
 * libreadline-java-0.8.0-src.tar.gz RMD160 ;-) ...                                                                                            [ ok ]
 * libreadline-java-0.8.0-src.tar.gz SHA1 ;-) ...                                                                                              [ ok ]
 * libreadline-java-0.8.0-src.tar.gz SHA256 ;-) ...                                                                                            [ ok ]
 * libreadline-java-0.8.0-src.tar.gz size ;-) ...                                                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                           [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                          [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                         [ ok ]
 * checking libreadline-java-0.8.0-src.tar.gz ;-) ...                                                                                          [ ok ]
!!! ERROR: The javac executable was not found in the Java path
!!! ERROR: The java executable was not found in the Java path
 * Using Generation-1 System VM: sun-jdk-1.4
!!! ERROR: The javac executable was not found in the Java path
!!! ERROR: The java executable was not found in the Java path
>>> Unpacking source...
>>> Unpacking libreadline-java-0.8.0-src.tar.gz to /var/tmp/portage/dev-java/libreadline-java-0.8.0-r1/work
 * Applying termcap-to-ncurses.patch ...                                                                                                       [ ok ]
>>> Source unpacked.
!!! ERROR: The javac executable was not found in the Java path
!!! ERROR: The java executable was not found in the Java path
>>> Compiling source in /var/tmp/portage/dev-java/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0 ...
mkdir ./build
cd src ; make JAVAC="javac" JC_FLAGS="" java
make[1]: Entering directory `/var/tmp/portage/dev-java/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src'
javac  -d ../build `find . -name "*.java"`
* javac is not available for sun-jdk-1.4 on i686
* IMPORTANT: some Java tools are not available on some VMs on some architectures
make[1]: *** [java] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-java/libreadline-java-0.8.0-r1/work/libreadline-java-0.8.0/src'
make: *** [build-java] Error 2

!!! ERROR: dev-java/libreadline-java-0.8.0-r1 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  libreadline-java-0.8.0-r1.ebuild, line 30:   Called die

!!! failed to compile
!!! If you need support, post the topmost build error, and the call stack if relevant.





Obviously I can't continue the rebuild of this system at the moment because of this.

Here's the emerge --info from this machine:
Portage 2.1.2_rc1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 Intel(R) Pentium(R) M processor 1.86GHz
Gentoo Base System version 1.12.5
Last Sync: Wed, 01 Nov 2006 18:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_GB"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://vanquish/gentoo-portage"
USE="x86 X alsa arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr eds elibc_glibc emboss encode esd fam firefox foomatic fortran gdbm gif gphoto2 gpm gstreamer hal iconv input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics isdnlog java jpeg kde kernel_linux libg++ linguas_en_GB mad mikmod mmx mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_nvidia vorbis win32codecs xml xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-11-04 14:55:49 UTC

*** This bug has been marked as a duplicate of 89927 ***