Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2003 12:22:53 -0500
From:      Christopher Rued <c.rued@xsb.com>
To:        Munehiro Matsuda <haro@kgt.co.jp>
Cc:        c.rued@xsb.com, freebsd-java@FreeBSD.ORG
Subject:   Re: jdk13 and WITH_NATIVE_THREADS compile failing
Message-ID:  <15958.24685.239353.1126@ool-18bacefa.dyn.optonline.net>
In-Reply-To: <20030221.100406.41628347.haro@kgt.co.jp>
References:  <15956.19601.491644.845972@ool-18bacefa.dyn.optonline.net> <20030220.152353.104026134.haro@kgt.co.jp> <15957.11931.949338.673306@ool-18bacefa.dyn.optonline.net> <20030221.100406.41628347.haro@kgt.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
Haro,

I attempted to compile/run the jdk13 with the patches you provided.
All patches now apply cleanly.

I am still having some trouble, however.

When I try to compile the jdk like so:

# make WITH_HOTSPOT=compiler2 -DWITH_NATIVE_THREADS install

I get:

gmake[2]: Entering directory `/usr/ports/java/jdk13/work/hotspot1.3.1/build/linu
x/linux_i486_compiler2/product'
Compiling /usr/ports/java/jdk13/work/hotspot1.3.1/build/linux/../../src/share/vm
/adlc/adlparse.cpp
cc1plus: Invalid option `-fguess-branch-probability'
cc1plus: Invalid option `-fcprop-registers'
cc1plus: Invalid option `-fmerge-constants'
cc1plus: Invalid option `-fmerge-all-constants'
cc1plus: Invalid option `-foptimize-sibling-calls'
cc1plus: Invalid option `-fgcse-sm'
cc1plus: Invalid option `-fgcse-lm'
cc1plus: Invalid option `-fpeephole2'
cc1plus: Invalid option `-fdelete-null-pointer-checks'
cc1plus: Invalid option `-freorder-blocks'
cc1plus: Invalid option `-fprefetch-loop-arrays'
cc1plus: Invalid option `-fno-guess-branch-probability'
cc1plus: Invalid option `-falign-functions'
cc1plus: Invalid option `-falign-labels'
cc1plus: Invalid option `-falign-loops'
cc1plus: Invalid option `-falign-jumps'
cc1plus: Invalid option `-fssa'
cc1plus: Invalid option `-frename-registers'
cc1plus: Invalid option `-fguess-branch-probability'
cc1plus: Invalid option `-fcprop-registers'
cc1plus: Invalid option `-fmerge-constants'
cc1plus: Invalid option `-fmerge-all-constants'
cc1plus: Invalid option `-foptimize-sibling-calls'
cc1plus: Invalid option `-fgcse-sm'
cc1plus: Invalid option `-fgcse-lm'
cc1plus: Invalid option `-fpeephole2'
cc1plus: Invalid option `-fdelete-null-pointer-checks'
cc1plus: Invalid option `-freorder-blocks'
cc1plus: Invalid option `-fprefetch-loop-arrays'
cc1plus: Invalid option `-fno-guess-branch-probability'
cc1plus: Invalid option `-falign-functions'
cc1plus: Invalid option `-falign-labels'
cc1plus: Invalid option `-falign-loops'
cc1plus: Invalid option `-falign-jumps'
cc1plus: Invalid option `-fssa'
cc1plus: Invalid option `-frename-registers'
gmake[2]: *** [../generated/adfiles/adlparse.o] Error 1
gmake[2]: Leaving directory `/usr/ports/java/jdk13/work/hotspot1.3.1/build/linux
/linux_i486_compiler2/product'
gmake[1]: *** [ad_stuff] Error 2
gmake[1]: Leaving directory `/usr/ports/java/jdk13/work/hotspot1.3.1/build/linux
/linux_i486_compiler2/product'
gmake: *** [product] Error 2
*** Error code 2
Stop in /usr/ports/java/jdk13.


When I try to compile the jdk with either of the following:

# make WITH_HOTSPOT=compiler1 -DWITH_NATIVE_THREADS install

or
 
# make WITH_HOTSPOT=core -DWITH_NATIVE_THREADS install

it compiles without complaining, but crashes with the following
message when I try to run it:

   Unexpected Signal : 4 occurred at PC=0x80c022b
   Function name=(N/A)
   Library=(N/A)

   NOTE: We are unable to locate the function name symbol for the error
         just occurred. Please refer to release documentation for possible
         reason and solutions.



   Current Java thread:

   Error: Cannot print dynamic libraries. Function not implemented for FreeBSD

   Local Time = Fri Feb 21 12:01:17 2003
   Elapsed Time = -2147483648
   #
   # HotSpot Virtual Machine Error : 4
   # Error ID : 4F530E43505002CC
   # Please report this error at
   # http://java.sun.com/cgi-bin/bugreport.cgi
   #
   # Java VM: Java HotSpot(TM) Core VM (1.3.1-internal interpreted mode)
   #
   # An error report file has been saved as hs_err_pid17508.log.
   # Please refer to the file for further information.
   #



Munehiro Matsuda writes:

 > ::Something that someone (I forget who) on this mailing list said is
 > ::also causing me to wonder about another issue: My FreeBSD source tree
 > ::(under /usr/src) is not in sync with my compiled system; it's about
 > ::two weeks newer.  I was under the impression that the source under
 > ::/usr/src was never used by any ports (just /usr/include,
 > ::/usr/X11R6/include, etc).  Should I be worried about my source in
 > ::/usr/src being out of sync with my system?  Is the source under
 > ::/usr/src used in the build?
 > 
 > The only file FreeBSD's JDK patchset tries include from the /usr/src
 > is the pthread_private.h file, I think.
 > It is not installed by default, so /usr/src becomes a must have.

Well, the last time anything in the uthread directory was changed
seems to be when a new file was added, 11 days ago.  pthread_private.h
was last changed 6 weeks ago -- my system was built with source from
two weeks ago...I don't think recompiling my system would help, but I
might give it a shot anyway -- just to be sure.

Any other thoughts???

Thanks again :-)

--
Chris


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




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