Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Sep 2003 11:22:32 +0100 
From:      "Sparrevohn, Thomas" <thomas.sparrevohn@eds.com>
To:        "'Jens Rehsack'" <rehsack@liwing.de>, Alexey Zelkin <phantom@FreeBSD.org.ua>
Cc:        freebsd-java@freebsd.org
Subject:   RE: jdk-1.4 on 5.1-current
Message-ID:  <2946E9F05C8DD511A7DC0002A5608CE4DB1DD4@GBCHM201>

next in thread | raw e-mail | index | archive | help
For what it is worth - The error does not occur if you use the debugger
version of the bin/* executables - I have not looked into it yet - but both
the _g and stripped _g executables work. 

Regards
	Thomas

-----Original Message-----
From: Jens Rehsack [mailto:rehsack@liwing.de] 
Sent: 08 September 2003 09:52
To: Alexey Zelkin
Cc: glewis@freebsd.org; phantom@freebsd.org; freebsd-java@freebsd.org
Subject: Re: jdk-1.4 on 5.1-current


Alexey Zelkin wrote:
> hi,
> 
> On Thu, Sep 04, 2003 at 12:33:20PM +0000, Jens Rehsack wrote:
> 
>>Hi all,
>>
>>as all others I have problems getting jdk-1.4 compiled under -current. 
>>The preprocessor problems I could solve on my own, but later in the 
>>progress I'm getting a bus error with a core dump.
> 
> 
> This is strange.  I did not expirienced any such problems with latest 
> gcc imported.

I get:

[...] /usr/ports/java/jdk14/work/control/build/bsd-i586/bin/java -classpath 
../../../tools/strip StripProperties < 
../../../../src/share/javac/com/sun/tools/javac/v8/resources/compiler.proper
ties 
 > 
/usr/ports/java/jdk14/work/control/build/bsd-i586/gensrc/com/sun/tools/javac
/v8/resources/compiler.properties
Bus error (core dumped)
gmake[5]: *** 
[/usr/ports/java/jdk14/work/control/build/bsd-i586/gensrc/com/sun/tools/java
c/v8/resources/compiler.properties] 
Error 138
gmake[5]: Leaving directory 
`/usr/ports/java/jdk14/work/j2se/make/sun/javac/sources'
gmake[4]: *** [all] Error 1
gmake[4]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make/sun/javac'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory 
`/usr/ports/java/jdk14/work/j2se/make/java/javac'
gmake[2]: *** [all] Error 1
gmake[2]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make/java'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/j2se/make'
gmake: *** [j2se-build] Error 2
*** Error code 2

I modified them using attached 4 files. I get even the same result. And no
output :-(

>>It seems, the patchset is adding a flag "-O3" which is known to be 
>>broken in all gcc3 variants, eg.:
>>- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11319
>>- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11741
> 
> 
> Hmm...  I'll look into.  Thanks for the reference.
> 
> 
>>My questions are:
>>1) How can I enable the output of the compile instruction
>>    which is executed (how can I enable verbose_echo)?
> 
> 
> Comment line 86 in hotspot/build/bsd/makefiles/vm.make.  Or just set 
> environment variable 'MAKE_VERBOSE' to 'YES'.

Thanks, I give it a try.

> 
>>2) How can I modify the c/c++-compiler flags which are used
>>    to build java?
> 
> 
> See hotspot/build/bsd/makefiles/{vm,gcc}.make files.  All compiler 
> options are set there.

I already tried. Maybe I'm to stupid :-) But I'm afraid I'm not but made
another mistake.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2946E9F05C8DD511A7DC0002A5608CE4DB1DD4>