Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39628 - Blackdown-1.4.1-01 javac fails (badly) to function on a sparcstation20.
Summary: Blackdown-1.4.1-01 javac fails (badly) to function on a sparcstation20.
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High major (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-27 18:05 UTC by je_fro
Modified: 2006-02-04 06:05 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 je_fro 2004-01-27 18:05:02 UTC
Hello.
I just installed gentoo on a sparcstation20, emerged Blackdown-1.4.1-01, java-config and Tomcat. My machine has the following specs:
################################################################################
$ cat /proc/cpuinfo 
cpu             : Texas Instruments, Inc. - SuperSparc-(II)
fpu             : SuperSparc on-chip FPU
promlib         : Version 3 Revision 2
prom            : 2.15
type            : sun4m
ncpus probed    : 1
ncpus active    : 1
Cpu0Bogo        : 59.80
MMU type        : TI Viking/MXCC
contexts        : 65536
nocache total   : 2097152
nocache used    : 400384
CPU0            : online

$ uname -a
Linux ss20-single 2.4.24-sparc #1 SMP Mon Jan 26 18:19:43 CST 2004 sparc sun4m Texas Instruments, Inc. - SuperSparc-(II) GNU/Linux

$ java -version
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.1-01)
Java HotSpot(TM) Client VM (build Blackdown-1.4.1-01, mixed mode)

$ gcc --version
gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)

USE="sparc ssl tcpd pam -audio -X -gtk -gnome -alsa"
CHOST="sparc-unknown-linux-gnu"
CFLAGS="-mcpu=supersparc -O2 -pipe"
################################################################################

I built SMP support into the kernel in anticipation of getting another CPU, so that may have something to do with it.

Anyway "javac" and "jar" produce errors like the one shown below, whether I provide arguments or not. helloworld.java has no errors, and "java -help" functions normally. In fact "java" doesn't seem to have a problem.
ErrorPuke is below...let me know if there's anything else I can do to elaborate.
Thanks,
je_fro
 
################################################################################
$ javac hello.java 

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 10 occurred at PC=0x500CE048
Function=__sigsuspend+0x60
Library=/lib/libc.so.6

Current Java thread:
        at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:350)
        at com.sun.tools.javac.v8.Main.compile(Main.java:520)
        at com.sun.tools.javac.Main.compile(Main.java:36)
        at com.sun.tools.javac.Main.main(Main.java:27)

Dynamic libraries:
00010000-00017000 r-xp 00000000 08:34 202301     /opt/blackdown-jdk-1.4.1/bin/javac
00026000-00027000 rwxp 00006000 08:34 202301     /opt/blackdown-jdk-1.4.1/bin/javac
50000000-50018000 r-xp 00000000 08:34 162611     /lib/ld-2.3.2.so
50019000-5001c000 r--s 00000000 08:34 218532     /opt/blackdown-jdk-1.4.1/jre/lib/ext/dnsns.jar
50027000-50028000 rwxp 00017000 08:34 162611     /lib/ld-2.3.2.so
50028000-50034000 r-xp 00000000 08:34 169691     /lib/libpthread-0.10.so
50034000-50038000 ---p 0000c000 08:34 169691     /lib/libpthread-0.10.so
50038000-50048000 rwxp 00000000 08:34 169691     /lib/libpthread-0.10.so
50088000-5008a000 r-xp 00000000 08:34 162845     /lib/libdl-2.3.2.so
5008a000-50098000 ---p 00002000 08:34 162845     /lib/libdl-2.3.2.so
50098000-5009b000 rwxp 00000000 08:34 162845     /lib/libdl-2.3.2.so
5009b000-501cf000 r-xp 00000000 08:34 169689     /lib/libc-2.3.2.so
501cf000-501db000 ---p 00134000 08:34 169689     /lib/libc-2.3.2.so
501db000-501e4000 rwxp 00130000 08:34 169689     /lib/libc-2.3.2.so
501e7000-505f0000 r-xp 00000000 08:34 121182     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/client/libjvm.so
505f0000-505f7000 ---p 00409000 08:34 121182     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/client/libjvm.so
505f7000-5061e000 rwxp 00400000 08:34 121182     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/client/libjvm.so
5062f000-50640000 r-xp 00000000 08:34 169701     /lib/libnsl-2.3.2.so
50640000-5064f000 ---p 00011000 08:34 169701     /lib/libnsl-2.3.2.so
5064f000-50651000 rwxp 00010000 08:34 169701     /lib/libnsl-2.3.2.so
50653000-50735000 r-xp 00000000 08:34 146271     /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/libstdc++.so.5.0.3
50735000-50743000 ---p 000e2000 08:34 146271     /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/libstdc++.so.5.0.3
50743000-50751000 rwxp 000e0000 08:34 146271     /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/libstdc++.so.5.0.3
50751000-507d1000 r-xp 00000000 08:34 162612     /lib/libm-2.3.2.so
507d1000-507e3000 rwxp 00070000 08:34 162612     /lib/libm-2.3.2.so
507e3000-507ec000 r-xp 00000000 08:34 146265     /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/libgcc_s.so.1
507ec000-507f3000 ---p 00009000 08:34 146265     /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/libgcc_s.so.1
507f3000-507fc000 rwxp 00000000 08:34 146265     /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.2.3/libgcc_s.so.1
507fc000-50806000 r-xp 00000000 08:34 121296     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/native_threads/libhpi.so
50806000-5080c000 ---p 0000a000 08:34 121296     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/native_threads/libhpi.so
5080c000-50817000 rwxp 00000000 08:34 121296     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/native_threads/libhpi.so
50817000-50828000 r-xp 00000000 08:34 186082     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/libverify.so
50828000-50837000 ---p 00011000 08:34 186082     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/libverify.so
50837000-50839000 rwxp 00010000 08:34 186082     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/libverify.so
50839000-5085b000 r-xp 00000000 08:34 186083     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/libjava.so
5085b000-50869000 ---p 00022000 08:34 186083     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/libjava.so
50869000-5086d000 rwxp 00020000 08:34 186083     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/libjava.so
5086d000-5087f000 r-xp 00000000 08:34 186084     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/libzip.so
5087f000-5088d000 ---p 00012000 08:34 186084     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/libzip.so
5088d000-50891000 rwxp 00010000 08:34 186084     /opt/blackdown-jdk-1.4.1/jre/lib/sparc/libzip.so
50891000-51f5f000 r--s 00000000 08:34 186128     /opt/blackdown-jdk-1.4.1/jre/lib/rt.jar
51fa2000-51fb9000 r--s 00000000 08:34 186108     /opt/blackdown-jdk-1.4.1/jre/lib/sunrsasign.jar
51fb9000-5202a000 r--s 00000000 08:34 186110     /opt/blackdown-jdk-1.4.1/jre/lib/jsse.jar
5202a000-5203d000 r--s 00000000 08:34 186109     /opt/blackdown-jdk-1.4.1/jre/lib/jce.jar
5203d000-522f9000 r--s 00000000 08:34 186126     /opt/blackdown-jdk-1.4.1/jre/lib/charsets.jar
543a1000-543af000 r--s 00000000 08:34 218534     /opt/blackdown-jdk-1.4.1/jre/lib/ext/ldapsec.jar
5c732000-5c73c000 r-xp 00000000 08:34 169704     /lib/libnss_compat-2.3.2.so
5c73c000-5c742000 ---p 0000a000 08:34 169704     /lib/libnss_compat-2.3.2.so
5c742000-5c74d000 rwxp 00000000 08:34 169704     /lib/libnss_compat-2.3.2.so
5cb51000-5cb6e000 r--s 00000000 08:34 218531     /opt/blackdown-jdk-1.4.1/jre/lib/ext/sunjce_provider.jar
5cb6e000-5cc0d000 r--s 00000000 08:34 218533     /opt/blackdown-jdk-1.4.1/jre/lib/ext/localedata.jar
5cc0d000-5d0c0000 r--s 00000000 08:34 56329      /opt/blackdown-jdk-1.4.1/lib/tools.jar

Local Time = Tue Jan 27 19:46:27 2004
Elapsed Time = 20
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (Blackdown-1.4.1-01 mixed mode)
#
# An error report file has been saved as hs_err_pid1324.log.
# Please refer to the file for further information.
#
Aborted


Reproducible: Always
Steps to Reproduce:
1.emerge dev-java/blackdown-jdk-1.4.1
2.write helloworld.java
3.javac helloworld.java

Actual Results:  
Ugly error that I've pasted above.

Expected Results:  
javac should've created a .class file.

No other programs running. This is a fresh install. No other packages installed
except the base system, metalog, dcron, silo, tomcat, blackdown, java-config, links.
Comment 1 je_fro 2004-01-31 17:28:28 UTC
UPDATE!
I got a sparc j2sdk from here: ftp://ftp.tux.org/pub/java/JDK-1.3.1/sparc/FCS-02b/

I created a file: /etc/env.d/java/20blackdown-j2sdk1.3.1 

$ cat /etc/env.d/java/20blackdown-j2sdk1.3.1 
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Karl Trygve Kalleberg

VERSION="Sun JDK 1.3.1"
JAVA_HOME=/opt/j2sdk1.3.1
CLASSPATH=.:/opt/j2sdk1.3.1/jre/lib:/opt/j2sdk1.3.1/lib/tools.jar:/opt/j2sdk1.3.1/jre/lib/rt.jar
JDK_HOME=/opt/j2sdk1.3.1
JAVAC=${JAVA_HOME}/bin/javac
ADDPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin"
ADDLDPATH="/opt/j2sdk1.3.1/jre/lib"

ENV_VARS="JAVA_HOME CLASSPATH JDK_HOME JAVAC ADDPATH ADDLDPATH"


Ran java-config and everything is fine now.
Good Luck!
je_fro
Comment 2 Jason Wever (RETIRED) gentoo-dev 2004-03-07 15:35:10 UTC
I can replicate this with an SMP kernel, but if i use a uniprocessor kernel on the same machine, the problem goes away.  As little to no work will be done to fix the buggy SMP implementation on sparc32 2.4, I'm resolving as CANTFIX