Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2013 17:16:23 GMT
From:      Hardy Schumacher <hardy.schumacher@gmx.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/178816: java/netbeans does not build, compile error at java/openjdk6
Message-ID:  <201305211716.r4LHGNGm055071@oldred.FreeBSD.org>
Resent-Message-ID: <201305211720.r4LHK0ro059306@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         178816
>Category:       ports
>Synopsis:       java/netbeans does not build, compile error at java/openjdk6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 21 17:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Hardy Schumacher
>Release:        FreeBSD-9.1
>Organization:
>Environment:
FreeBSD gamma.low.org 9.1-RELEASE-p2 FreeBSD 9.1-RELEASE-p2 #0 r249040: Wed Apr  3 11:57:09 CEST 2013     root@gamma.low.org:/usr/obj/usr/src/sys/LOW_GAMMA  i386
>Description:
Building of port java/netbeans on a system without having installed java/openjdk6, build process is broken on compiling dependency java/openjdk6.

It seems that this issue depends on the configured dependencies between java/netbeans and java/openjdk6.
Just because when installing java/openjdk6 separately, it builds and installs without issues, java/netbeans can also be installed afterwards.

Please also check if this issue is similar to the one reported by PR:178647 "java/openjdk6 does not build (without extra hack)".

>How-To-Repeat:
Use a system without having installed java/netbeans and java/openjdk6.
Switch into ${PORTSDIR}/java/netbeans.
Execute "make clean", to ensure no artefacts are left.
Execute "make install clean".

Last messages from port java/openjdk6:
..
gmake[4]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir'
:
Creating env.csh ...
( \
echo "# Generated by /usr/ports/java/openjdk6/work/hotspot/make/bsd/makefiles/buildtree.make"; \
[ -n "$JAVA_HOME" ] && \
{ echo "if (! \$?JAVA_HOME) setenv JAVA_HOME \"$JAVA_HOME\""; }; \
sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=/setenv \1 /p' env.sh; \
) > env.csh
Creating jdkpath.sh ...
( \
echo "# Generated by /usr/ports/java/openjdk6/work/hotspot/make/bsd/makefiles/buildtree.make"; \
echo "JDK=/usr/local/bootstrap-openjdk"; \
) > jdkpath.sh     
Creating .dbxrc ...
( \
echo "echo '# Loading bsd_amd64_compiler2/profiled/.dbxrc'"; \
echo "if [ -f \"\${HOTSPOT_DBXWARE}\" ]"; \
echo "then"; \
echo "  source \"\${HOTSPOT_DBXWARE}\""; \
echo "elif [ -f \"\$HOME/.dbxrc\" ]"; \
echo "then"; \
echo "  source \"\$HOME/.dbxrc\""; \
echo "fi"; \
) > .dbxrc
Creating test_gamma ...
( \
echo '#!/bin/sh'; \
echo "# Generated by /usr/ports/java/openjdk6/work/hotspot/make/bsd/makefiles/buildtree.make"; \
echo '. ./env.sh'; \
echo "if [ \"\" != \"\" ]; then { echo "Cross compiling for ARCH , skipping gamma run."; exit 0; }; fi"; \
echo "if [ -z \$JAVA_HOME ]; then { echo "JAVA_HOME must be set to run this test."; exit 0; }; fi"; \
echo "if ! \${JAVA_HOME}/bin/java -d64 -fullversion 2>&1 > /dev/null"; \
echo "then"; \
echo "  echo "JAVA_HOME must point to 64bit JDK."; exit 0;"; \
echo "fi"; \
echo "rm -f Queens.class"; \
echo "\${JAVA_HOME}/bin/javac -d . /usr/ports/java/openjdk6/work/hotspot/make/test/Queens.java"; \
echo '[ -f gamma_g ] && { gamma=gamma_g; }'; \
echo './${gamma:-gamma} -Xbatch -showversion Queens < /dev/null'; \
) > test_gamma
chmod +x test_gamma
gmake[6]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/profiled'
touch bsd_amd64_compiler2/profiled
gmake[5]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir'
cd bsd_amd64_compiler2/product && gmake -w " LP64=1 "
gmake[5]: Entering directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
cd /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product/../generated;  cp /usr/ports/java/openjdk6/work/hotspot/make/bsd/platform_amd64 /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product/../generated/platform.current
gmake[6]: Entering directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
Compiling /usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc/adlparse.cpp
rm -f ../generated/adfiles/adlparse.o
c++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DAMD64 -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm/prims -I/usr/ports/java/openjdk6/work/hotspot/src/cpu/x86/vm -I/usr/ports/java/openjdk6/work/hotspot/src/os/bsd/vm -I/usr/ports/java/openjdk6/work/hotspot/src/os_cpu/bsd_x86/vm -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc -I../generated -DASSERT -O2 -pipe -fno-strict-aliasing -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1  -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1  -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -w -g -c -o ../generated/adfiles/adlparse.o /usr/ports/java/openjdk6/work/hotspot/src/share/vm/
 adlc/adlparse.cpp 
/usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc/adlparse.cpp:1: sorry, unimplemented: 64-bit mode not compiled in
gmake[6]: *** [../generated/adfiles/adlparse.o] Error 1
gmake[6]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
gmake[5]: *** [ad_stuff] Error 2
gmake[5]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
gmake[4]: *** [product] Error 2
gmake[4]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir'
gmake[3]: *** [generic_build2] Error 2
gmake[3]: Leaving directory `/usr/ports/java/openjdk6/work/hotspot/make'
gmake[2]: *** [product] Error 2
gmake[2]: Leaving directory `/usr/ports/java/openjdk6/work/hotspot/make'
gmake[1]: *** [hotspot-build] Error 2
gmake[1]: Leaving directory `/usr/ports/java/openjdk6/work'
gmake: *** [build_product_image] Error 2
*** [do-build] Error code 1

Stop in /usr/ports/java/openjdk6.
*** [install] Error code 1

Stop in /usr/ports/java/openjdk6.
*** [run-depends] Error code 1

Stop in /usr/ports/java/netbeans.
>Fix:
n/a

>Release-Note:
>Audit-Trail:
>Unformatted:



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