Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543468 - dev-java/icedtea-7.2.6.0pre18 internal error on sparc64
Summary: dev-java/icedtea-7.2.6.0pre18 internal error on sparc64
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: Sparc64 Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-16 01:47 UTC by Chase Rayfield
Modified: 2015-05-09 22:00 UTC (History)
1 user (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 Chase Rayfield 2015-03-16 01:47:51 UTC
After disabling hotspot in the ebuild and enabling zero in the useflags the first phase of bootstrapping the JVM completes and it starts building the final stage but it errors out eith an internal jvm error. 

Reproducible: Always

Steps to Reproduce:
1. install java overlay
2. get the icetea-7.2.6.0pre18 ebuild this will probably affect later ones as well untill its fixed
3. edit the ebuild to disable hotspot on sparc
4. enable zero in your USE flags you can enable jbootstrap or not both end up the same way.
Actual Results:  
mkdir -p stamps
touch stamps/cryptocheck.stamp
if [ -e /var/tmp/portage/dev-java/icedtea-7.2.6.0_pre19/work/icedtea-2.6.0/openjdk.build-boot/j2sdk-image/bin/java ] ; then \
  /var/tmp/portage/dev-java/icedtea-7.2.6.0_pre19/work/icedtea-2.6.0/openjdk.build-boot/j2sdk-image/bin/java -cp /var/tmp/portage/dev-java/icedtea-7.2.6.0_pre19/work/icedtea-2.6.0/cryptocheck.build TestCryptoLevel ; \
fi
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (os_linux_zero.cpp:285), pid=3186, tid=4144970608
#  fatal error: caught unhandled signal 10
#
# JRE version:  (7.0_80-b05) (build )
# Java VM: OpenJDK Zero VM (24.80-b07 interpreted mode linux-sparc )
# Derivative: IcedTea 2.6.0pre19+r11a872da084a
# Distribution: NAME=Gentoo, package Gentoo package icedtea-7.2.6.0_pre19
# Core dump written. Default location: /var/tmp/portage/dev-java/icedtea-7.2.6.0_pre19/work/icedtea-2.6.0/core or core.3186
#
# An error report file with more information is saved as:
# /var/tmp/portage/dev-java/icedtea-7.2.6.0_pre19/work/icedtea-2.6.0/hs_err_pid3186.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
#
/bin/sh: line 2:  3186 Aborted                 (core dumped) /var/tmp/portage/dev-java/icedtea-7.2.6.0_pre19/work/icedtea-2.6.0/openjdk.build-boot/j2sdk-image/bin/java -cp /var/tmp/portage/dev-java/icedtea-7.2.6.0_pre19/work/icedtea-2.6.0/cryptocheck.build TestCryptoLevel
Makefile:2475: recipe for target 'stamps/check-crypto-boot.stamp' failed
make: *** [stamps/check-crypto-boot.stamp] Error 134
 * ERROR: dev-java/icedtea-7.2.6.0_pre19::java failed (compile phase):
 *   emake failed


Expected Results:  
Icedtea should be merged with zero vm support... it would be slow but it would work. And possibly allow installing jdks that don't support bootstrapping with JDK 1.5 



I also edited the ebuilds locally to bump the version to pre19 same thign happens there.

emerge --info =dev-java/icedtea-7.2.6.0_pre19::java
Portage 2.2.14 (python 2.7.9-final-0, default/linux/sparc/13.0, gcc-4.9.2, glibc-2.19-r1, 3.19.1-gentoo sparc64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.19.1-gentoo-sparc64-sun4v-with-gentoo-2.2
KiB Mem:    16495096 total,   4064960 free
KiB Swap:      48184 total,     47848 free
Timestamp of tree: Fri, 13 Mar 2015 04:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.2.5-r6, 3.3.5-r1, 3.4.1
dev-util/cmake:           3.1.0
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.11
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.13.4, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.2, 4.9.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo rebutia pentoo java voyageur dotnet rust
ACCEPT_KEYWORDS="sparc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=niagara -pipe -ggdb"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mcpu=niagara -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common"
MAKEOPTS="-j1"
PKGDIR="/var/www/localhost/htdocs/gentoo/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/rebutia /var/lib/layman/pentoo /var/lib/layman/java /var/lib/layman/voyageur /var/lib/layman/dotnet /var/lib/layman/rust /usr/local/portage"
USE="X acl apng berkdb bzip2 cli cracklib crypt cxx dri fortran gcc64 gdbm iconv ipv6 libav llvm-shared-libs lto modules native ncurses nls nptl opengl openmp pcre readline session sparc ssl tcpd threads unicode zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="sparc sparc64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Chase Rayfield 2015-03-16 01:57:22 UTC
Also gcj-jdk has been bumped to 4.9.2 locally on my box as 4.9.1 doesn't build on sparc64.

gcj-ecj 4.2  was used for the build although it doesn't seem to make a difference if you use the older 3.6 one.

It would be even nicer if hotspot and zero were working but that may be more than anyone wants to bite off at once.
Comment 2 James Le Cuirot gentoo-dev 2015-03-17 12:38:29 UTC
I've just bumped gcj-jdk to 4.9.2 in the tree but have pointed it at ecj 4.4, which I have also just bumped. Please give this combo a try.
Comment 3 James Le Cuirot gentoo-dev 2015-05-09 22:00:13 UTC
Sorry but Gentoo is no longer supporting Java on sparc Linux, not that it ever did in the first place. As far as I can see, Andrew never added the sparc keyword to his overlay ebuilds either but even if he does, you should take issues like this one upstream where he can address it.