Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 13153

Summary: sun-j2sdk-1.4.0-r2.ebuild fails due to: [ Unrecognized option: -XX:ThreadStackSize=768 ] (compiling w/ ibm-jdk-1.4.0)
Product: Gentoo Linux Reporter: Michal Maruska <mmc>
Component: Current packagesAssignee: Stefan Jones (RETIRED) <cretin>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: 1.0   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michal Maruska 2003-01-03 06:44:12 UTC
this ebuild made me emerge ibm-jdk-1.4.0. But apparently its javac doesn't handle this option -J-XX:ThreadStackSize=768. So, i commented it out (yes, maybe it will crash on me later) a line in work/j2sdk/j2se/make/common/Defs.gmk:   # JAVAHFLAGS+= -J$(STACKSIZEFLAG)
.... then it built. Now i have mozilla Java-enabled.

the failing command is:

/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/tmp/java/java.lang/java/CClassHeaders/ \
        java.lang.Object java.lang.Class java.lang.Compiler java.lang.String java.lang.Thread java.lang.ThreadGroup java.lang.StrictMath java.lang.Number java.lang.Byte java.lang.Short java.lang.Integer java.lang.Long java.lang.Float java.lang.Double java.lang.Boolean java.lang.Character java.lang.System java.lang.Process java.lang.UNIXProcess java.lang.ClassLoader java.lang.Runtime java.lang.SecurityManager java.lang.Shutdown java.lang.Package java.lang.ref.Finalizer java.lang.reflect.AccessibleObject java.lang.reflect.Field java.lang.reflect.Method java.lang.reflect.Constructor java.lang.reflect.InvocationTargetException java.lang.reflect.Array java.lang.reflect.Proxy java.security.AccessController java.util.Date java.util.TimeZone java.util.ResourceBundle java.util.prefs.FileSystemPreferences java.io.FileDescriptor java.io.InputStream java.io.FileInputStream java.io.FileOutputStream java.io.PrintStream java.io.RandomAccessFile java.io.DataInputStream java.io.DataOutputStream java.io.File java.io.FileSystem java.io.UnixFileSystem java.io.ObjectInputStream java.io.ObjectOutputStream java.io.ObjectStreamClass sun.io.ByteToCharConverter sun.io.CharToByteConverter java.lang.Throwable java.lang.NoClassDefFoundError java.lang.StringIndexOutOfBoundsException java.lang.OutOfMemoryError sun.misc.VM sun.misc.Signal sun.misc.MessageUtils sun.misc.NativeSignalHandler sun.misc.GC sun.reflect.NativeConstructorAccessorImpl sun.reflect.NativeMethodAccessorImpl sun.reflect.Reflection   java.lang.ClassLoader\$NativeLibrary



[ Unrecognized option: -XX:ThreadStackSize=768 ]
[ Unable to parse 1.2 format supplied options - rc=-6 ]
Could not create JVM.
make[4]: *** [/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/tmp/java/java.lang/java/obj/.class.headers.i386] Error 1
make[4]: Leaving directory `/tmp/portage.1/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/java/java'
make[3]: *** [optimized] Error 2
make[3]: Leaving directory `/tmp/portage.1/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/java/java'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/tmp/portage.1/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/java'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/tmp/portage.1/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make'
Comment 1 Stefan Jones (RETIRED) gentoo-dev 2003-01-15 02:06:52 UTC
Well it looks like IBM's java is a bit differant to blackdown's and Sun's Java.
That was unexpected as all 1.4 java sdk's should have similar options, may have
to tighten up the ebuild to install privatly the required jdk (blackdown as it
is easy to download).

Stefan
Comment 2 Stefan Jones (RETIRED) gentoo-dev 2003-04-13 06:45:00 UTC
I'm a bit too lazy, and it is a rare case