Problems compiling java under FreeBSD

Adam Vande More adam at imedmobility.com
Tue Jun 3 16:33:45 UTC 2008


Germán C. Basisty wrote:
> Helo Folks!
>
> Im trying to compile jdk16 to run tomcat. After make install clean (every
> additional file allready downloaded) I get the following error message:
>
> ...
>
>             gmake ALT_SLASH_JAVA=/java ARCH_DATA_MODEL=32
> ALT_OUTPUTDIR=/usr/ports/java/jdk16/work/control/build/bsd-i586/hotspot/outp
> utdir
> ALT_EXPORT_PATH=/usr/ports/java/jdk16/work/control/build/bsd-i586/hotspot/im
> port PREVIOUS_JDK_VERSION=1.5.0 ALT_BOOTDIR=/usr/local/diablo-jdk1.5.0
> FULL_VERSION="1.6.0_03-p4-root_29_may_2008_15_47-b00" JDK_VERSION=1.6.0_03
> COOKED_JDK_UPDATE_VERSION=30 COOKED_BUILD_NUMBER=0 JDK_MKTG_VERSION=6u3
> JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=6 JDK_MICRO_VERSION=0 all_product
>
> gmake[1]: Entering directory `/usr/ports/java/jdk16/work/hotspot/make'
>
> gmake VM_TARGET=product generic_build2
>
> gmake[2]: Entering directory `/usr/ports/java/jdk16/work/hotspot/make'
>
> mkdir -p /usr/ports/java/jdk16/work/control/build/bsd-i586/hotspot/outputdir
>
> cd /usr/ports/java/jdk16/work/control/build/bsd-i586/hotspot/outputdir; \
>
>             gmake -f /usr/ports/java/jdk16/work/hotspot/build/bsd/Makefile \
>
>
> HOTSPOT_BUILD_VERSION=1.6.0_03-p4-root_29_may_2008_15_47-b00
> JAVA_HOME=/usr/local/diablo-jdk1.5.0
> GAMMADIR=/usr/ports/java/jdk16/work/hotspot MAKE_VERBOSE=y product
>
> gmake[3]: Entering directory
> `/usr/ports/java/jdk16/work/control/build/bsd-i586/hotspot/outputdir'
>
> gmake -f /usr/ports/java/jdk16/work/hotspot/build/bsd/Makefile checks
>
> gmake[4]: Entering directory
> `/usr/ports/java/jdk16/work/control/build/bsd-i586/hotspot/outputdir'
>
> /usr/local/diablo-jdk1.5.0/bin/javap javax.xml.transform.TransformerFactory
>   
>> /dev/null 2>&1; \
>>     
>
>         if [ $? -ne 0 ]; then \
>
>           /usr/local/diablo-jdk1.5.0/bin/java -version; \
>
>           echo "*** An XSLT processor (J2SE 1.4.x or newer) is required" \
>
>           "to bootstrap this build" 1>&2; \
>
>           exit 1; \
>
>         fi
>
> Illegal instruction (core dumped)
>
>
>
> ...
>
>
>
> Fatal error 'Cannot allocate red zone for initial thread' at line 384 in
> file /usr/src/lib/libthr/thread/thr_init.c (errno = 12)
>
> Fatal error 'Cannot allocate red zone for initial thread' at line 384 in
> file /usr/src/lib/libthr/thread/thr_init.c (errno = 12)
>
> Fatal error 'Cannot allocate red zone for initial thread' at line 384 in
> file /usr/src/lib/libthr/thread/thr_init.c (errno = 12)
>
> Fatal error 'Cannot allocate red zone for initial thread' at line 384 in
> file /usr/src/lib/libthr/thread/thr_init.c (errno = 12)
>
> Fatal error 'Cannot allocate red zone for initial thread' at line 384 in
> file /usr/src/lib/libthr/thread/thr_init.c (errno = 12)
>
> Fatal error 'Cannot allocate red zone for initial thread' at line 384 in
> file /usr/src/lib/libthr/thread/thr_init.c (errno = 12)
>
> Fatal error 'Cannot allocate red zone for initial thread' at line 384 in
> file /usr/src/lib/libthr/thread/thr_init.c (errno = 12)
>
> Fatal error 'Cannot allocate red zone for initial thread' at line 384 in
> file /usr/src/lib/libthr/thread/thr_init.c (errno = 12)
>
> Fatal error 'Cannot allocate red zone for initial thread' at line 384 in
> file /usr/src/lib/libthr/thread/thr_init.c (errno = 12)
>
> Fatal error 'Cannot allocate red zone for initial thread' at line 384 in
> file /usr/src/lib/libthr/thread/thr_init.c (errno = 12)
>
> Fatal error 'Cannot allocate red zone for initial thread' at line 384 in
> file /usr/src/lib/libthr/thread/thr_init.c (errno = 12)
>
> Illegal instruction (core dumped)
>
> *** An XSLT processor (J2SE 1.4.x or newer) is required to bootstrap this
> build
>
> gmake[4]: *** [check_j2se_version] Error 1
>
> gmake[4]: Leaving directory
> `/usr/ports/java/jdk16/work/control/build/bsd-i586/hotspot/outputdir'
>
> gmake[3]: *** [bsd_i486_compiler2/debug] Error 2
>
> gmake[3]: Leaving directory
> `/usr/ports/java/jdk16/work/control/build/bsd-i586/hotspot/outputdir'
>
> gmake[2]: *** [generic_build2] Error 2
>
> gmake[2]: Leaving directory `/usr/ports/java/jdk16/work/hotspot/make'
>
> gmake[1]: *** [product] Error 2
>
> gmake[1]: Leaving directory `/usr/ports/java/jdk16/work/hotspot/make'
>
> gmake: *** [hotspot-build] Error 2
>
> *** Error code 2
>
>
>
> Stop in /usr/ports/java/jdk16.
>
> *** Error code 1
>
>
>
> Stop in /usr/ports/java/jdk16.
>
> I asked in a spanish general freebsd mailing list and they told me its a problem
> with the disassembler javap. The also told me to ask right here :) ç
>
> I hope you can help me.
> Bests regards,
>   
I believe that if you are are going to install the native jdk, you need 
to have another version of java installed to bootstap the install 
process.  Install the diablo port then try again.

-- 
Adam Vandemore
Systems Administrator
IMED Mobility



More information about the freebsd-java mailing list