Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129679 - ibm-jdk-bin doesn't work under ppc64/64ul
Summary: ibm-jdk-bin doesn't work under ppc64/64ul
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: ppc64 architecture team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-12 05:11 UTC by Dmitry Semkin
Modified: 2006-10-14 01:22 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 Dmitry Semkin 2006-04-12 05:11:55 UTC
ts3 ~ # emerge --info
--- Invalid atom in /etc/portage/package.keywords: =www-apps/open-xchange-0.8.*
--- Invalid atom in /etc/portage/package.unmask: =www-apps/open-xchange-0.8.*
Portage 2.0.54 (default-linux/ppc/ppc64/2006.0/64bit-userland/power5, gcc-3.4.4, glibc-2.3.4.20041102-r2, 2.6.15-gentoo-r7 ppc64)
=================================================================
System uname: 2.6.15-gentoo-r7 ppc64 POWER5 (gr)
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc64"
AUTOCLEAN="yes"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -mtune=power5 -mcpu=power5 -pipe"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=power5 -mcpu=power5 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc64 alsa apache2 apm arts berkdb bitmap-fonts bzip2 cli crypt ctype cups dba dri eds emboss encode esd expat fastbuild foomaticdb force-cgi-redirect ftp gcj gd gif gpm gstreamer ibm imlib java javacomm javadoc javamail jikes jpeg ldap libg++ libwww memlimit ncurses nls objc pcre pdflib perl png posix postgres python readline sasl session simplexml soap sockets spell ssl tcpd threads tokenizer truetype truetype-fonts udev unicode usb xerces xml xmlrpc xsl zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

I've installed gentoo on openpower720 lpar.It generally works, but not java (I tried to install openxchange).
With empty USE I got
ts3 ~ # javac
JVMLH057: detectNPTL cannot create thread.
Aborted
ts3 ~ # LD_ASSUME_KERNEL=2.4.1 javac
javac: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
(it's strange because:
and ts3 ~ # ldconfig -p | grep libpthre
    libpthread.so.0 (libc6,64bit, hwcap: 0x8000000000000000, OS ABI: Linux 2.6.6) => /lib/tls/libpthread.so.0
    libpthread.so.0 (libc6,64bit, OS ABI: Linux 2.4.19) => /lib/libpthread.so.0
)

so.
I added -nptl -nptlonly to USE and rebuild all the system
now I have:
ts3 ~ # javac      
JVMDG218: JVM is not fully initialized - will not do dump processing.
Segmentation fault

below strace and dmesg output
thanks in advance
ts3 ~ # uname -a
Linux ts3 2.6.15-gentoo-r7 #1 SMP Wed Apr 12 00:45:06 MSD 2006 ppc64 POWER5 (gr) CHRP IBM,9124-720 GNU/Linux
ts3 ~ # dmesg 
Page orders: linear mapping = 24, others = 12
Partition configured for 8 cpus.
Starting Linux PPC64 #1 SMP Wed Apr 12 00:45:06 MSD 2006
-----------------------------------------------------
ppc64_pft_size                = 0x1a
ppc64_interrupt_controller    = 0x2
platform                      = 0x101
physicalMemorySize            = 0xc0000000
ppc64_caches.dcache_line_size = 0x80
ppc64_caches.icache_line_size = 0x80
htab_address                  = 0x0000000000000000
htab_hash_mask                = 0x7ffff
-----------------------------------------------------
[boot]0100 MM Init
[boot]0100 MM Init Done
Linux version 2.6.15-gentoo-r7 (root@livecd) (gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)) #1 SMP Wed Apr 12 00:45:06 MSD 2006
[boot]0012 Setup Arch
Node 0 Memory: 0x0-0xc0000000
No ramdisk, default root is /dev/sda2
EEH: PCI Enhanced I/O Error Handling Enabled
PPC64 nvram contains 7168 bytes
Using shared processor idle loop
On node 0 totalpages: 49152
  DMA zone: 49152 pages, LIFO batch:1
  DMA32 zone: 0 pages, LIFO batch:0
  Normal zone: 0 pages, LIFO batch:0
  HighMem zone: 0 pages, LIFO batch:0
[boot]0015 Setup Done
Built 1 zonelists
Kernel command line: root=/dev/sda3 ro root=/dev/sda3 
[boot]0020 XICS Init
xics: no ISA interrupt controller
[boot]0021 XICS Done
PID hash table entries: 4096 (order: 12, 131072 bytes)
time_init: decrementer frequency = 188.047000 MHz
time_init: processor frequency   = 1504.376000 MHz
Console: colour dummy device 80x25
Dentry cache hash table entries: 524288 (order: 6, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 5, 2097152 bytes)
freeing bootmem node 0
Memory: 3118464k/3145728k available (5888k kernel code, 27264k reserved, 1536k data, 1360k bss, 320k init)
Calibrating delay loop... 32.70 BogoMIPS (lpj=65408)
Mount-cache hash table entries: 4096
Processor 1 found.
Processor 2 found.
Processor 3 found.
Processor 4 found.
Processor 5 found.
Processor 6 found.
Processor 7 found.
Brought up 8 CPUs
NET: Registered protocol family 16
PCI: Probing PCI hardware
IOMMU table initialized, virtual merging disabled
mapping IO 3fe00200000 -> d000080000000000, size: 100000
mapping IO 3fe00700000 -> d000080000100000, size: 100000
PCI: Probing PCI hardware done
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
probe_bus_pseries: processing c0000000bfffd9b8
RTAS daemon started
RTAS: event: 17, Type: Platform Error, Severity: 2
probe_bus_pseries: processing c0000000bfffdb88
probe_bus_pseries: processing c0000000bfffe070
probe_bus_pseries: processing c0000000bfffe1c0
probe_bus_pseries: processing c0000000bfffe330
scan-log-dump not implemented on this system
Total HugeTLB memory allocated, 0
Squashfs 2.2 (released 2005/07/03) (C) 2002-2005 Phillip Lougher
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
vio_register_driver: driver hvc_console registering
HVSI: registered 0 devices
Initializing IBM hvcs (Hypervisor Virtual Console Server) Driver
vio_register_driver: driver hvcs registering
HVCS: driver module inserted.
Generic RTC Driver v1.07
wdrtas: could not get sp_spi watchdog timeout (-3). Continuing
SoftDog: cannot register miscdev on minor=130 (err=-16)
mice: PS/2 mouse device common for all mice
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Intel(R) PRO/1000 Network Driver - version 6.1.16-k2-NAPI
Copyright (c) 1999-2005 Intel Corporation.
Intel(R) PRO/10GbE Network Driver - version 1.0.100-k2-NAPI
Copyright (c) 1999-2005 Intel Corporation.
eepro100.c:v1.09j-t 9/29/99 Donald Becker http://www.scyld.com/network/eepro100.html
eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin <saw@saw.sw.com.sg> and others
PCI: Enabling device: (0001:d8:01.0), cmd 143
eth0: OEM i82557/i82558 10/100 Ethernet, 00:0D:60:0B:40:70, IRQ 169.
  Board assembly a52042-009, Physical connectors present: RJ45
  Primary interface chip i82555 PHY #1.
    Secondary interface chip i82555.
  General self-test: passed.
  Serial sub-system self-test: passed.
  Internal registers self-test: passed.
  ROM checksum self-test: passed (0xd3c174b8).
e100: Intel(R) PRO/100 Network Driver, 3.4.14-k4-NAPI
e100: Copyright(c) 1999-2005 Intel Corporation
drivers/net/ibmveth.c: ibmveth: IBM i/pSeries Virtual Ethernet Driver 1.03
vio_register_driver: driver ibmveth registering
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ipr: IBM Power RAID SCSI Device Driver version: 2.1.0 (October 31, 2005)
vio_register_driver: driver ibmvscsi registering
rpa_vscsi: SPR_VERSION: 16.a
scsi0 : IBM POWER Virtual SCSI Adapter 1.5.7
ibmvscsi: partner initialization complete
ibmvscsi: SRP_LOGIN succeeded
ibmvscsi: host srp version: 1.6a, host partition VIO (1), OS 3, max io 131072
ibmvscsi: host (Ver. 1.6a) doesn't support largetransfers
ibmvscsi: limiting scatterlists to 10
  Vendor: IBM       Model: VSCSI blkdev      Rev: 0001
  Type:   Direct-Access                      ANSI SCSI revision: 04
st: Version 20050830, fixed bufsize 32768, s/g segs 256
SCSI device sda: 71096640 512-byte hdwr sectors (36401 MB)
SCSI device sda: drive cache: none
SCSI device sda: 71096640 512-byte hdwr sectors (36401 MB)
SCSI device sda: drive cache: none
 sda: sda1 sda2 sda3
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
SCSI Media Changer driver v0.25 
usbmon: debugfs is not available
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid10 personality registered as nr 9
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
   8regs     :  3088.000 MB/sec
   8regs_prefetch:  3536.000 MB/sec
   32regs    :  3376.000 MB/sec
   32regs_prefetch:  4080.000 MB/sec
raid5: using function: 32regs_prefetch (4080.000 MB/sec)
raid6: int64x1   1126 MB/s
raid6: int64x2   1771 MB/s
raid6: int64x4   2594 MB/s
raid6: int64x8   1353 MB/s
raid6: using algorithm int64x4 (2594 MB/s)
md: raid6 personality registered as nr 8
md: multipath personality registered as nr 7
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-devel@redhat.com
device-mapper: dm-multipath version 1.0.4 loaded
device-mapper: dm-round-robin version 1.0.0 loaded
device-mapper: dm-emc version 0.0.3 loaded
Netfilter messages via NETLINK v0.30.
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 2, 262144 bytes)
TCP established hash table entries: 131072 (order: 5, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 4, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
ip_conntrack version 2.4 (8192 buckets, 65536 max) - 312 bytes per conntrack
ctnetlink v0.90: registering with nfnetlink.
ip_conntrack_pptp version 3.1 loaded
ip_nat_pptp version 3.0 loaded
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.  http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
ReiserFS: sda3: found reiserfs format "3.6" with standard journal
ReiserFS: sda3: using ordered data mode
ReiserFS: sda3: journal params: device sda3, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: sda3: checking transaction log (sda3)
ReiserFS: sda3: Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 320k freed
Swap area shorter than signature indicates
Swap area shorter than signature indicates
Adding 1999936k swap on /dev/sda2.  Priority:-1 extents:1 across:1999936k
ts3 ~ # strace -f -o strace.output javac
strace.output: Invalid argument
JVMDG218: JVM is not fully initialized - will not do dump processing.

sorry, strace out too big, you can find it on http://tic-tac.ru/strace.output
Comment 1 Joshua (RETIRED) gentoo-dev 2006-04-13 05:11:14 UTC
"Solution" is to do "export JAVA_COMPILER=none" which turns off the JIT.

JITC_PROCESSOR_TYPE=6 java -version gives:
    Unsupported instruction at java/lang/String/hashCode : major=58, minor=0, misc=0
which is similarly broken but in a different way.  This is the way you are supposed to be able to use the JIT with ppc64.
Comment 2 Yang Dehua 2006-04-17 18:58:39 UTC
Have you tried 1.5.0 version? In my case 1.4.x has the same problem as yours in my G5 running ppc46, but 1.5.0 works fine.
Comment 3 Markus Rothe (RETIRED) gentoo-dev 2006-10-14 01:22:58 UTC
ibm-jdk-bin-1.5.0.2 finaly stable on ppc64. should be fixed now. please reopen if this is still a problem.