Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Feb 2003 03:43:44 +0600
From:      Max Khon <fjoe@iclub.nsu.ru>
To:        Christopher Rued <c.rued@xsb.com>
Cc:        Gene Harris <geneh@tetronsoftware.com>, freebsd-java@freebsd.org
Subject:   Re: jdk13 and WITH_NATIVE_THREADS compile failing
Message-ID:  <20030217034344.A39208@iclub.nsu.ru>
In-Reply-To: <15951.63959.454333.307092@ool-18bacefa.dyn.optonline.net>; from c.rued@xsb.com on Sun, Feb 16, 2003 at 03:51:35PM -0500
References:  <200302161054.03375.geneh@tetronsoftware.com> <15951.63959.454333.307092@ool-18bacefa.dyn.optonline.net>

next in thread | previous in thread | raw e-mail | index | archive | help
hi, there!

On Sun, Feb 16, 2003 at 03:51:35PM -0500, Christopher Rued wrote:

>  > uname -a:
>  > FreeBSD ns1.tetronsoftware.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Sat Feb 15 
>  > 22:29:24 CST 2003
>  > 
>  > I've thought I would give a try at compiling jdk13 with the 
>  > WITH_NATIVE_THREADS=yes in my make.conf file.  It fizzles with several 
>  > errors. 
>  > 
>  > I am trying to compile with the latest patchset 8 from Greg's site.
>  > A normal  compile works fine, just not a native thread compile.  I
>  > just cvsup'ed on  Saturday around 10 AM CST (-6 GMT).
> 
> I'm (what I assume is) the same issue.  I tried to compile
> WITH_NATIVE_THREADS with patchset 7 shortly before the release of
> patchset 8, but could not successfully compile.  So, I thought I'd
> wait until p8 came out and give it a try then -- still does not work.
> 
> My FreeBSD source was CVSup-ed early on the morning of 8 Feb.
> My ports were last CVSup-ed on 15 Feb.
> 
> Here's a trimmed down log of the build with p8 WITH_NATIVE_THREADS.
> I've tried to leave in only the parts that are useful for
> context/debugging...hopefully someone a little more familiar with the
> source can help diagnose the problem...
> 
> ool-18bacefa# uname -a
> FreeBSD ool-18bacefa.dyn.optonline.net 4.7-STABLE FreeBSD 4.7-STABLE #1: Sat Feb  8 19:58:28 EST 2003     root@ool-18bacefa.dyn.optonline.net:/usr/obj/usr/src/sys/FRANKENSTEIN  i386
> ool-18bacefa# make -DWITH_NATIVE_THREADS
> ===>  Extracting for jdk-1.3.1p8
> 
>   [...trimmed found dependencies...]
> 
>   [...trimmed lots of what seem to be successful patches...]
> 
> WARNING: Your MAKEFLAGS environment variable is set.
>          You should be very careful about the values set here.
> 
>          MAKEFLAGS is set to =>HPIS=green\ native<=
> 
> Sanity check passed
> >>>Recursively making java all @ Sun Feb 16 15:16:08 EST 2003 ...
> gmake[1]: Entering directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java'
> >>>Recursively making hpi all @ Sun Feb 16 15:16:08 EST 2003 ...
> gmake[2]: Entering directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi'
> >>>Recursively making green all @ Sun Feb 16 15:16:08 EST 2003 ...
> 
>    [...trimmed uneventful build of "green all"...]
> 
> <<<Finished Recursively making green all @ Sun Feb 16 15:16:26 EST 2003.
> >>>Recursively making native all @ Sun Feb 16 15:16:26 EST 2003 ...
> gmake[3]: Entering directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/native'
> gmake ../../../../build/bsd-i386/lib/i386/native_threads/libhpi.so VARIANT=OPT
> gmake[4]: Entering directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/native'
>    [...trimmed what seemed to be successful compilations of various
>        souce files...]
> 
> /usr/bin/gcc  -O -pipe  -W -Wall  -Wno-unused -Wno-parentheses -pthread -I/usr/src/lib/libc_r/uthread -I/usr/src/lib/libc/include  -Di386 -DARCH='"i386"' -DSOLARIS2 -DRELEASE='"1.3.1-p8"' -DFULL_VERSION='"1.3.1-p8-root-030216-15:16"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -DLOGGING -D_LITTLE_ENDIAN -I. -I../../../../build/bsd-i386/tmp/java/hpi/native_threads/CClassHeaders -I../../../../src/solaris/javavm/export -I../../../../src/share/javavm/export -I../../../../src/solaris/hpi/native_threads/include -I../../../../src/solaris/hpi/include -I../../../../src/solaris/hpi/export -I../../../../src/share/hpi/include -I../../../../src/share/hpi/export -D_REENTRANT -DNATIVE -DUSE_PTHREADS -DMOOT_PRIORITIES -DNO_INTERRUPTIBLE_IO    -c -o ../../../../build/bsd-i386/tmp/java/hpi/native_threads/obj/threads_bsd.o ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:287: warning: `enum pthread_susp' declared inside parameter list
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:287: warning: its scope is only this definition or declaration, which is probably not what you want.
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:288: parameter `suspendState' has incomplete type
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c: In function `getSuspendStateString':
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:293: warning: control reaches end of non-void function
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c: At top level:
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:321: warning: initializer-string for array of chars is too long
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:321: warning: (near initialization for `SignalList[21]')
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:323: warning: excess elements in array initializer
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:323: warning: (near initialization for `SignalList')
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c: In function `record_gc_registers_of':
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:530: structure has no member named `ctxtype'
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:532: `CTX_JB_NOSIG' undeclared (first use in this function)
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:532: (Each undeclared identifier is reported only once
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:532: for each function it appears in.)
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:533: `CTX_JB' undeclared (first use in this function)
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:534: `CTX_SJB' undeclared (first use in this function)
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:540: `CTX_UC' undeclared (first use in this function)
> ../../../../src/solaris/hpi/native_threads/src/threads_bsd.c:535: warning: unreachable code at beginning of switch statement
> gmake[4]: *** [../../../../build/bsd-i386/tmp/java/hpi/native_threads/obj/threads_bsd.o] Error 1
> gmake[4]: Leaving directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/native'
> gmake[3]: *** [optimized] Error 2
> gmake[3]: Leaving directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi/native'
> gmake[2]: *** [all] Error 1
> gmake[2]: Leaving directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java/hpi'
> gmake[1]: *** [all] Error 1
> gmake[1]: Leaving directory `/usr/ports/java/jdk13/work/j2sdk1.3.1/make/java'
> gmake: *** [all] Error 1
> *** Error code 2
> 
> Stop in /usr/ports/java/jdk13.
> 
> 
> Thanks in advance for any help...

I posted an updated version of threads_bsd.c less than a month ago to this
mailing list. Search in mailing list archives.
It will be included into the jdk13 port afaik.

/fjoe


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?20030217034344.A39208>