Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Half-automated build-script for Java J2SDK from source
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3, 4, 5  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
weijia
n00b
n00b


Joined: 14 Sep 2002
Posts: 57

PostPosted: Wed Nov 13, 2002 2:07 am    Post subject: Reply with quote

I am getting this error when trying to compile with sun-j2sdk-1.4.0-r2.ebuild.
Code:

i486.o functionAtEnd.o  -lnsl -lm -ldl -lpthread
Linking vm...
collect2: ld terminated with signal 15 [Terminated], core dumped
make[3]: *** [libjvm_g.so] Error 1
make[3]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/hotspot-i386/tmp/linux_i486_compiler2/jvmg'
make[2]: *** [the_vm] Error 2
make[2]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/hotspot-i386/tmp/linux_i486_compiler2/jvmg'
make[1]: *** [jvmg] Error 2
make[1]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/hotspot-i386/tmp'
make: *** [jvmg] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 34, Exitcode 2
!!! (no error message)


Any ideas? Thanks
Back to top
View user's profile Send private message
purplerhino
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2002
Posts: 90
Location: Chicago, IL

PostPosted: Sat Nov 16, 2002 7:16 pm    Post subject: HOWTO! Reply with quote

I've read through the past 4 pages of messages and I still have no Java plugin, and I need it by Sunday for fantasy football :D

I installed blackdown 1.4.1_beta, no openmotif, and ran java-config. I have galeon 1.2.6 and mozilla 1.0.1. Could someone with a working Gentoo 1.4rc1 plugin make some comprehensive instructions, a lot of people have had success and the secret has to be in these past four pages somewhere, but I just can't put it all together!

Thanks in advance.
Back to top
View user's profile Send private message
mmealman
Guru
Guru


Joined: 02 Nov 2002
Posts: 348
Location: Florida

PostPosted: Sat Nov 16, 2002 7:42 pm    Post subject: Steps Reply with quote

Here's what I did. My system already had the binary compiled sun-jdk-1.4.1.01 installed, which I used for the source java install, although I had the backdown jdk-1.3 currently set as my system vm.

Logged in as root.
java-config --set-system-vm=sun-jdk-1.4.1.01
env-update
source /etc/profile
java -version
(which confirmed I was using the Gentoo precompiled Sun JDK 1.4 Java VM)
emerge -C openmotif
went to http://www.sun.com/software/java2/download.html and downloaded everything under Java[tm] 2 SDK 1.4.0 category, this included the "Mozilla Binaries".
I placed the above files under /usr/portage/distfiles
emerge sync
emerge sun-j2sdk

After the compile:
java-config --set-system-vm=sun-j2sdk-1.4.0
env-update
source /etc/profile
java -version comfirmed the new JVM was installed.

cd /usr/lib/mozilla/plugins
ls -l confirmed that I had the following symlink:
libjavaplugin_oji140.so -> /opt/sun-j2sdk-1.4.0/jre/plugin/i386/ns610/libjavaplugin_oji140.so

exit from root
exit out of KDE, then log back in(to make sure I sourced the profile, so mozilla started from KDE would have the new VM).
started mozilla and went to http://java.sun.com/applets/ and tried the applets there.

Then I logged back in as root and ran emerge openmotif.
Back to top
View user's profile Send private message
purplerhino
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2002
Posts: 90
Location: Chicago, IL

PostPosted: Tue Nov 19, 2002 3:58 pm    Post subject: No go. Reply with quote

Thanks for the response... following those instructions step by step got me this after compiling the j2sdk for what seemed like forever...

Code:

make[2]: *** [/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/tmp/plugin/ns4/GetFactory.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/ext/plugin/build/solaris'
make[1]: *** [plugin-all] Error 1
make[1]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make'
make: *** [j2se-build] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 157, Exitcode 2
!!! (no error message)
Back to top
View user's profile Send private message
Cretin
Retired Dev
Retired Dev


Joined: 11 Nov 2002
Posts: 23
Location: UK

PostPosted: Tue Nov 19, 2002 6:49 pm    Post subject: Why on earth do ppl have problems?!!? Reply with quote

I am guessing that these are low/medium memory systems with about 256Mb of RAM.

I guess this is another ebuild which uses alot of RAM, thus if it runs out it crashes as shown.

Try to disable parallel makes by setting MAKEOPTS="" in make.conf.
Also try closing down as many programs as feasable.

If this doesn't work, I don't know what will .....
Back to top
View user's profile Send private message
Wilke
n00b
n00b


Joined: 09 May 2002
Posts: 40
Location: University of Twente

PostPosted: Sun Dec 01, 2002 6:48 pm    Post subject: Reply with quote

Whatever I try, I can't get it to work.

I have the latest GCC version (3.2-r4), and have uninstalled openmotif and lesstif before I tried to build Java from source, using this compiler version (which is exactly as indicated earlier in this thread):
Code:

# java -version
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)


This is the error I get:

Code:

if [ -s /var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/tmp/sun/com.sun.tools.javac/javac/.classes.list ] ; \
then /opt/sun-jdk-1.4.1.01/bin/javac -J-Xmx64m  -classpath /var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/classes -bootclasspath "/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/lib/jce.jar:/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/lib/jsse.jar" -sourcepath "/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/gensrc:../../../../src/solaris/classes:../../../../src/share/classes" -d /var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/classes  \
    /var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/gensrc/com/sun/tools/javac/v8/Main.java[.....huge list of .java source files here...] /var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/gensrc/com/sun/tools/javadoc/PrimitiveType.java ; \
fi

make[6]: *** [.compile.classlist] Error 139
make[6]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/sun/javac/javac'
make[5]: *** [optimized] Error 2
make[5]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/sun/javac/javac'
make[4]: *** [all] Error 1
make[4]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/sun/javac'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/java/javac'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/java'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make'
make: *** [j2se-build] Error 2

!!! ERROR: dev-java/sun-j2sdk-1.4.0-r2 failed.
!!! Function src_compile, Line 34, Exitcode 2
!!! (no error message)


As you can see, all I get is this very descriptive 'error 139' message...anyone has a clue as to what actually went wrong?

Oh yeah in case you where going to answer 'not enogugh RAM/disk space': that's very unlikely, as I have 1.5 GB RAM+swap and 4 GB free harddisk space.
Back to top
View user's profile Send private message
LaSombra
n00b
n00b


Joined: 01 Nov 2002
Posts: 30
Location: Rio de Janeiro, Brazil

PostPosted: Sun Dec 01, 2002 8:21 pm    Post subject: Reply with quote

I've tried everything reported here. Every combination of settings and vms and didn't get it to compile because it always segfaults on the same part, near the end I guess.
That's the message I always got:

Unexpected Signal : 11 occurred at PC=0x101E9B4C
Function=members (compiled Java code)
Library=(N/A)

Current Java thread:

Dynamic libraries:
08048000-0804e000 r-xp 00000000 03:03 454699 /opt/blackdown-jdk-1.4.1_beta/bin/javac
0804e000-0804f000 rw-p 00005000 03:03 454699 /opt/blackdown-jdk-1.4.1_beta/bin/javac
0e000000-0e013000 r-xp 00000000 03:03 310698 /lib/ld-2.3.1.so
0e013000-0e014000 rw-p 00013000 03:03 310698 /lib/ld-2.3.1.so
0e014000-0e01d000 r-xp 00000000 03:03 519411 /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386/native_threads/libhpi.so
0e01d000-0e01e000 ---p 00009000 03:03 519411 /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386/native_threads/libhpi.so
0e01e000-0e01f000 rw-p 00009000 03:03 519411 /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386/native_threads/libhpi.so
0e021000-0e02e000 r-xp 00000000 03:03 310877 /lib/libpthread-0.10.so
0e02e000-0e031000 rw-p 0000d000 03:03 310877 /lib/libpthread-0.10.so
0e072000-0e074000 r-xp 00000000 03:03 310742 /lib/libdl-2.3.1.so
0e074000-0e075000 rw-p 00001000 03:03 310742 /lib/libdl-2.3.1.so
0e075000-0e19a000 r-xp 00000000 03:03 310921 /lib/libc-2.3.1.so
0e19a000-0e19f000 rw-p 00125000 03:03 310921 /lib/libc-2.3.1.so
0e1a3000-0e607000 r-xp 00000000 03:03 519406 /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386/client/libjvm.so
0e607000-0e624000 rw-p 00463000 03:03 519406 /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386/client/libjvm.so
0e634000-0e646000 r-xp 00000000 03:03 310903 /lib/libnsl-2.3.1.so
0e646000-0e647000 rw-p 00011000 03:03 310903 /lib/libnsl-2.3.1.so
0e649000-0e66b000 r-xp 00000000 03:03 310722 /lib/libm-2.3.1.so
0e66b000-0e66c000 rw-p 00021000 03:03 310722 /lib/libm-2.3.1.so
0e66c000-0e67b000 r-xp 00000000 03:03 325346 /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386/libverify.so
0e67b000-0e67d000 rw-p 0000e000 03:03 325346 /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386/libverify.so
0e67d000-0e69c000 r-xp 00000000 03:03 325347 /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386/libjava.so
0e69c000-0e69e000 rw-p 0001e000 03:03 325347 /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386/libjava.so
0e69e000-0e6b3000 r-xp 00000000 03:03 325348 /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386/libzip.so
0e6b3000-0e6b6000 rw-p 00014000 03:03 325348 /opt/blackdown-jdk-1.4.1_beta/jre/lib/i386/libzip.so
0e6b6000-0fd83000 r--s 00000000 03:03 325391 /opt/blackdown-jdk-1.4.1_beta/jre/lib/rt.jar
0fdc6000-0fddd000 r--s 00000000 03:03 325371 /opt/blackdown-jdk-1.4.1_beta/jre/lib/sunrsasign.jar
0fddd000-0fe4e000 r--s 00000000 03:03 325373 /opt/blackdown-jdk-1.4.1_beta/jre/lib/jsse.jar
0fe4e000-0fe61000 r--s 00000000 03:03 325372 /opt/blackdown-jdk-1.4.1_beta/jre/lib/jce.jar
0fe61000-1011d000 r--s 00000000 03:03 325389 /opt/blackdown-jdk-1.4.1_beta/jre/lib/charsets.jar
121c5000-121c8000 r--s 00000000 03:03 373920 /opt/blackdown-jdk-1.4.1_beta/jre/lib/ext/dnsns.jar
1a3e0000-1a3eb000 r-xp 00000000 03:03 310907 /lib/libnss_compat-2.3.1.so
1a3eb000-1a3ec000 rw-p 0000a000 03:03 310907 /lib/libnss_compat-2.3.1.so
1a5f0000-1a60d000 r--s 00000000 03:03 373919 /opt/blackdown-jdk-1.4.1_beta/jre/lib/ext/sunjce_provider.jar
1a60d000-1a6ac000 r--s 00000000 03:03 373921 /opt/blackdown-jdk-1.4.1_beta/jre/lib/ext/localedata.jar
1a6ac000-1a6ba000 r--s 00000000 03:03 373922 /opt/blackdown-jdk-1.4.1_beta/jre/lib/ext/ldapsec.jar
1a6ba000-1ab6d000 r--s 00000000 03:03 33356 /opt/blackdown-jdk-1.4.1_beta/lib/tools.jar
1ab6d000-1ab80000 r--s 00000000 03:03 892021 /var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/lib/jce.jar
1ab80000-1abee000 r--s 00000000 03:03 892024 /var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/lib/jsse.jar

Local Time = Fri Nov 15 22:38:35 2002
Elapsed Time = 3
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002E6
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (Blackdown-1.4.1-beta mixed mode)
#
# An error report file has been saved as hs_err_pid4563.log.
# Please refer to the file for further information.
#
make[6]: *** [.compile.classlist] Error 134
make[6]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/sun/javac/javac'
make[5]: *** [optimized] Error 2
make[5]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/sun/javac/javac'
make[4]: *** [all] Error 1
make[4]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/sun/javac'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/java/javac'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/java'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make'
make: *** [j2se-build] Error 2

!!! ERROR: dev-java/sun-j2sdk-1.4.0-r2 failed.
!!! Function src_compile, Line 157, Exitcode 2
!!! (no error message)

Anybody has an idea?
I'm having to use Konqueror to get java support on the web.

Thanks in advance,
Ingo -LaSombra- Hoffmann
Back to top
View user's profile Send private message
bhun
n00b
n00b


Joined: 01 Dec 2002
Posts: 70

PostPosted: Sun Dec 01, 2002 10:16 pm    Post subject: x Reply with quote

xxx

Last edited by bhun on Tue Dec 10, 2002 5:57 am; edited 1 time in total
Back to top
View user's profile Send private message
Pigeon
Guru
Guru


Joined: 21 Jun 2002
Posts: 307

PostPosted: Thu Dec 05, 2002 9:18 pm    Post subject: Reply with quote

No workie for me, either. It exits with that oh so non-helpful 139 error mentioned earlier.

It also however, spits this out when I start emerging it:

Code:
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/sun-j2sdk-1.4.0-r3 to /
>>> md5 ;-) zlib-1.1.4.tar.bz2
/usr/sbin/ebuild.sh: line 55: [: 14%: integer expression expected
>>> Unpacking source...


Not exactly sure what that means, or if it could be the cause of the problem.

Either, way, my box is an athlon-tbird, running the gentoo-sources kernel, with the blackdown-jdk installed.

ps-could someone put some linebreaks into weijia's post? I hate having to scroll horizontally.
Back to top
View user's profile Send private message
an0nymity
n00b
n00b


Joined: 06 Jul 2002
Posts: 25

PostPosted: Mon Jan 13, 2003 2:25 am    Post subject: Reply with quote

I get the following emerge sun-jdk-1.4.0-r2.ebuild

Code:
Calculating dependencies /
!!! all ebuilds that could satisfy ">=virtual/jdk-1.4" have been masked.
!!!    (dependency required by "dev-java/sun-j2sdk-1.4.0-r2" [ebuild])

!!! Error calculating dependancies. Please correct.
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Mon Jan 13, 2003 2:39 am    Post subject: Reply with quote

unmask it in /usr/portage/profiles/packages.mask
Back to top
View user's profile Send private message
an0nymity
n00b
n00b


Joined: 06 Jul 2002
Posts: 25

PostPosted: Mon Jan 13, 2003 4:17 am    Post subject: Reply with quote

tryied that still gives me the same error
Back to top
View user's profile Send private message
discostu
Guru
Guru


Joined: 01 Nov 2002
Posts: 333

PostPosted: Sun Jan 19, 2003 11:15 pm    Post subject: Reply with quote

Wilke wrote:
This is the error I get:

Code:

if [ -s /var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/tmp/sun/com.sun.tools.javac/javac/.classes.list ] ; \
then /opt/sun-jdk-1.4.1.01/bin/javac -J-Xmx64m  -classpath /var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/classes -bootclasspath "/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/lib/jce.jar:/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/lib/jsse.jar" -sourcepath "/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/gensrc:../../../../src/solaris/classes:../../../../src/share/classes" -d /var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/classes  \
    /var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/gensrc/com/sun/tools/javac/v8/Main.java[.....huge list of .java source files here...] /var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/control/build/linux-i386/gensrc/com/sun/tools/javadoc/PrimitiveType.java ; \
fi

make[6]: *** [.compile.classlist] Error 139
make[6]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/sun/javac/javac'
make[5]: *** [optimized] Error 2
make[5]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/sun/javac/javac'
make[4]: *** [all] Error 1
make[4]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/sun/javac'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/java/javac'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make/java'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/tmp/portage/sun-j2sdk-1.4.0-r2/work/j2sdk/j2se/make'
make: *** [j2se-build] Error 2

!!! ERROR: dev-java/sun-j2sdk-1.4.0-r2 failed.
!!! Function src_compile, Line 34, Exitcode 2
!!! (no error message)


As you can see, all I get is this very descriptive 'error 139' message...anyone has a clue as to what actually went wrong?

Oh yeah in case you where going to answer 'not enogugh RAM/disk space': that's very unlikely, as I have 1.5 GB RAM+swap and 4 GB free harddisk space.
The only answer I have come across is to make sure you have > 2GB in your portage tmp directory. I tried pointing my tmp directory to another partition where I have over 23 GB free and it still crapped out. And this sucks because you have to wait 2-3 hours to find out if it wil work or not. :x

Is there nobody who knows a solution to this problem?
_________________
"Disco Stu doesn't advertise."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum