Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10963 - sun-j2sdk fails
Summary: sun-j2sdk fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-19 11:40 UTC by Paper
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
log of the beginning of the build process (begin.log,4.26 KB, text/plain)
2002-11-19 11:49 UTC, Paper
Details
log of the (sad) ending of the build process (end.log,28.67 KB, text/plain)
2002-11-19 11:50 UTC, Paper
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paper 2002-11-19 11:40:43 UTC
The build process quit with an error.
It compiles successfully the vm, but it blocks at some point while 
recompiling the java library.
I can't figure out what cause the problem, but the problem

I have a dual-P3 450, so I ran emerge using MAKEOPTS="".
I have 384MB of RAM, but just to be sure not running out of memory I 
stopped every other process (and only 1MB of swap got used).
... and yes, I unmerged lesstif and openmotif :)
In fact I also linked /usr/bin/zip, /usr/bin/unzip and /usr/bin/cpio to 
/bin/zip, /bin/unzip and /bin/cpio, 'cause when sometime ago I build the 
jdk from scratch this step was definitely needed. For the same reason I 
also emerged tcsh.
The problem is perfectly reproducible. It happened 4/4 times, exactly at 
the same point ... and about 3 hours after starting emerging! :(((

I redirected the output to a file. It's very long (about 3MB) so I'm going 
to attach just the beginning (showing the environment variables) and the 
end (showing the error).
If needed I can post the whole log.
Comment 1 Paper 2002-11-19 11:49:09 UTC
Created attachment 5788 [details]
log of the beginning of the build process
Comment 2 Paper 2002-11-19 11:50:45 UTC
Created attachment 5790 [details]
log of the (sad) ending of the build process
Comment 3 Stefan Jones (RETIRED) gentoo-dev 2002-11-21 02:01:46 UTC
I am very sorry for you...

The problem looks like a segfault in the compiled version of javac. This could
be for a number of reasons.

What is your toolchain like, glibc/gcc/binutils versions would be helpful.

It seems that the java code reacted badly to one (or more) of the above packages
and thus the resulting binary it compiled was a dud

That is all I can think of, sorry, good bug report though, you have covered most
of the info about your system.
Comment 4 Paper 2002-11-21 12:38:08 UTC
Well, I tried to compile using glibc-2.2.5-r7, binutils-2.13.90.0.4, 
gcc-3.2-r2 (or maybe -r1). Yesterday I upgraded to gcc-3.2-r4, which come 
with some new patch ... so right now the jdk is compiling ... guess I'll 
have news (hope good) in couple hours ;))

Btw in July I got the jdk successfully compiled (from scratch) using 
gcc3.2pre (was a gentoo 1.3beta system).

PS: thanks for the appreciation about my report ;) in fact I'm a computer 
engineer ... I know quite well what is like to fix bugs with dumb bug 
reports ;))
Comment 5 Stefan Jones (RETIRED) gentoo-dev 2002-11-21 12:57:28 UTC
The java ebuild has a patch for glibc-2.3+ so that could be it, but reading the
patch it looked glibc-2.2 save, I could be wrong ..... but glibc-2.2.5 could
have bugs, there was the atexit bug.

Well all I can say now is it works for ppl using the latest testing gentoo gcc
and the redhat 8.0 gcc in CVS and binutils 2.13.90.0.10 and 2.13.90.0.14 all
ontop of glibc-2.3.1

Thats about all I can think of, if it ever fails again you could try to go the
the compile directory and try to resume it and/or gdb the errant javac command.


Comment 6 Paper 2002-12-03 14:19:25 UTC
Aaaah .... shame on me ... ;) at last I solved it!
It wasn't a matter of tool chain. I moved to 'unstable' and nothing changed.
But using the new tool chain the ebuild failed giving a more explicative 
error: it was failing trying to get info about a process ... guess why?
GRSECURITY!!! I removed it from the kernel et voila'!!! It was probably a 
problem related to restrictions accessing the /proc filesystem ;)
Maybe it would be worth to show some kind of warning ... just to avoid users 
wasting sooo much time! ;))
Great ebuild though!!! Thanks!
Comment 7 Adrian Almenar 2002-12-15 10:06:21 UTC
Seems to be fixed, so closing this bug.