Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 240159 - [java overlay] dev-java/gcj-jdk-4.3 gcc version handling problems
Summary: [java overlay] dev-java/gcj-jdk-4.3 gcc version handling problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 308733
  Show dependency tree
 
Reported: 2008-10-05 21:57 UTC by Luke-Jr
Modified: 2010-11-14 01:12 UTC (History)
2 users (show)

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 Luke-Jr 2008-10-05 21:57:13 UTC
I installed gcj-jdk (4.3), and it tried to link to (non-existent) gjavah/etc in the directory structure for gcc 4.1 (my default) instead of in gcc 4.3.
Comment 1 Wormo (RETIRED) gentoo-dev 2008-10-06 00:54:33 UTC
Please post your 'emerge --info' output
Comment 2 Luke-Jr 2008-10-06 01:55:56 UTC
Portage 2.2_rc11 (default-linux/amd64/2007.0/no-multilib, gcc-4.3.1, glibc-2.7-r2, 2.6.25-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r7-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5
Timestamp of tree: Sat, 04 Oct 2008 03:04:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/env /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/shutdown"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--verbose"
FEATURES="buildpkg collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org/"
LDFLAGS=""
LINGUAS="en en_GB ja la"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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="/usr/portage/local/crossdev /usr/portage/local/layman/armagetron /usr/portage/local/layman/luke-jr /usr/portage/local/layman/kde-testing /usr/portage/local/layman/java-overlay"
SYNC="rsync://hachi.lan/gentoo-portage"
USE="3dnow IM: X a52 aac acl acpi aiglx alsa amd64 apm audio: bash-completion berkdb bittorrent bzip2 canna cddb cdparanoia cdr chasen cjk cli compression: console: containers: cpu: cracklib crypt cups curl d databases: dbus dri dv dvd dvdr dvdread encode exif fam ffmpeg flac foomaticdb formats: fortran freewnn gcj gdbm geoip gif gnutls gphoto2 gpm gs gstreamer gtk2 gui: hardware: hotplug: iconv ieee1394 image: imap inotify ipod ipv6 isdnlog jabber japanese: javascript joystick jpeg jpeg2k kde language: languages: lm_sensors mad maildir matroska media: midi migemo mikmod mime mmx mng moral: mp3 mpeg mplayer mudflap mysql mysqli ncurses nfs nls nntp nogtk nptl nptlonly nsplugin objc objc++ objc-gc ogg opengl openmp oss pam pch pcre pdf perl php plasma png posix ppds pppd printing: programming: protocols: python qt3 qt4 quicktime rdesktop readline reflection sasl scanner sdl security: services: session skey slang snmp sound: sox speex spell spl sqlite sqlite3 sse sse2 ssl standardization: svg tcpd text: theora threads threadsafe tiff truetype unicode usb utempter v4l v4l2 vcd video: vnc vorbis wmf x264 xattr xcomposite xface xinerama xml xorg xprint xv zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x         ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3       trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB ja la" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-10-08 22:40:58 UTC
Yeah there are several problems as far as I can see.
a) it will use whatever is the current gcc set via gcc-config, not 4.3
b) on minor gcc upgrade (within the same slot) the links will become broken and gcj-jdk needs to be remerged

Furthermore
- >=gcc-4.3 will match e.g. 4.4 too, should be a slot dep
- gcj-jdk should be a 4.3 SLOT

The easiest solution would probably be to have the same versions/slots as gcc and bump accordingly, this tries to be universal but see the shortcomings :(
Comment 4 Martin Walch 2009-02-25 20:45:55 UTC
this might be related: gcj-jdk creates a dead symlink

/usr/lib/gcj-jdk-4.3/jre/lib/amd64/libjawt.so -> /usr/lib64/gcj-4.3.3*/libjawt.so


emerge --info
Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 x86_64)         
=================================================================                                                        
System uname: Linux-2.6.27-gentoo-r8-x86_64-Intel-R-_Core-TM-2_CPU_4300_@_1.80GHz-with-glibc2.2.5                        
Timestamp of tree: Wed, 25 Feb 2009 12:45:01 +0000                                                                       
ccache version 2.4 [enabled]                                                                                             
app-shells/bash:     3.2_p39                                                                                             
dev-java/java-config: 2.1.6-r1                                                                                           
dev-lang/python:     2.5.2-r7                                                                                            
dev-util/ccache:     2.4-r7                                                                                              
dev-util/cmake:      2.6.2-r1                                                                                            
sys-apps/baselayout: 2.0.0                                                                                               
sys-apps/openrc:     0.4.1-r1                                                                                            
sys-apps/sandbox:    1.3.7                                                                                               
sys-devel/autoconf:  2.13, 2.63                                                                                          
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                           
sys-devel/binutils:  2.18-r3                                                                                             
sys-devel/gcc-config: 1.4.0-r4                                                                                           
sys-devel/libtool:   2.2.4                                                                                               
virtual/os-headers:  2.6.27-r2                                                                                           
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fgcse-after-reload -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -fgcse-after-reload -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.jamit.de/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://mirror.netcologne.de/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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="/usr/portage/local/layman/java-overlay /usr/portage/local/layman/gnash-cvs /usr/portage/local/layman/sunrise /usr/portage/local/layman/toolchain /usr/portage/local/layman/jokey /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib accessibility acl acpi agg akode alsa amarok amd64 apache2 bash-completion berkdb blender-game bluetooth branding bzip2 cairo captury cdaudio cdr cdrom cjk cli clucene cracklib crypt cups curl cviewer daap dbus designer-plugin dga dirac djvu dri dvd dvdnav dvdr dvdread dxr3 eds emacs embedded emboss encode evo fam fbcon ffmpeg fftw firefox fits flac fortran gcj gdbm ggi gif glibc-omitfp glitz gopher gpg gpm gstreamer hal hdri htmlhandbook iceweasel iconv icu imagemagick insecure-savers ipv6 isdnlog jabber jack java java5 java6 javascript jingle jpeg kde kde4 kdebuild kdecards kdeenablefinal kdehiddenvisibility kdepim kdm kontact ktts latex lcms ldap libcaca libnotify libwww lm_sensors logitech-mouse lua lzma mad matroska mdnsresponder-compat midi mikmod mmx mng mp3 mpeg mpeg2 mpi mudflap mule multilib musepack mysql ncurses nepomuk nls noamazon nova nptl nptlonly nsplugin offensive ogg ogg123 openal openexr opengl openmp oscar oss otr pam pcre pdf perl plasma png posix povray ppds pppd python qt3support qt4 quicktime readline reflection reiser4 reiserfs schroedinger sdl sdl-image semantic-desktop sensord session sndfile solver songs sound speex spell spl sse sse2 ssl startup-notification svg sysfs tcpd tetex theora threads tidy tiff tools truetype type1 unicode usb vhook visualization vorbis wav wavpack xcomposite xemacs xine xml xorg xosd xprint xscreensaver xulrunner xv zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 dbddeflate 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="i810 intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-11-14 01:12:04 UTC
(In reply to comment #3)
> Yeah there are several problems as far as I can see.
> a) it will use whatever is the current gcc set via gcc-config, not 4.3
> b) on minor gcc upgrade (within the same slot) the links will become broken and
> gcj-jdk needs to be remerged
> 
> Furthermore
> - >=gcc-4.3 will match e.g. 4.4 too, should be a slot dep
> - gcj-jdk should be a 4.3 SLOT
> 
> The easiest solution would probably be to have the same versions/slots as gcc
> and bump accordingly, this tries to be universal but see the shortcomings :(
 
This is now done, and 4.3 is removed.