Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Oct 2008 11:42:31 +1000
From:      Peter Oxenham <poxenham@resolute.com.au>
To:        "freebsd-java@freebsd.org" <freebsd-java@freebsd.org>
Subject:   jdk15 port compile error on FreeBSD 6.2
Message-ID:  <1CC30AC5CAF2554C8CE72BBA7E0C38FF0FBCF8875B@res-mx02.resolute.local>

next in thread | raw e-mail | index | archive | help
I am trying to upgrade to the latest 1.5 JDK via the ports system and am ge=
tting the following error.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Packing /usr/ports/java/jdk15/work/control/build/bsd-i586/j2re-image/lib/rt=
.jar 40383151 bytes
Packing /usr/ports/java/jdk15/work/control/build/bsd-i586/j2re-image/lib/js=
se.jar 279341 bytes
Packing /usr/ports/java/jdk15/work/control/build/bsd-i586/j2re-image/lib/ch=
arsets.jar 4630580 bytes
Packing /usr/ports/java/jdk15/work/control/build/bsd-i586/j2re-image/lib/ex=
t/localedata.jar 448822 bytes
gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/install/make/pack'
gmake PACK_OUTPUTDIR=3D/usr/ports/java/jdk15/work/control/build/bsd-i586/pa=
ck/pack-jdk-jars \
                VAR_IMAGE_DIR=3D/usr/ports/java/jdk15/work/control/build/bs=
d-i586/j2sdk-image \
                JARS_TO_PACK=3D"lib/tools.jar jre/lib/rt.jar jre/lib/jsse.j=
ar jre/lib/charsets.jar jre/lib/ext/localedata.jar" \
                pack-jars
gmake[3]: Entering directory `/usr/ports/java/jdk15/work/install/make/pack'
/bin/mkdir -p /usr/ports/java/jdk15/work/control/build/bsd-i586/pack/pack-j=
dk-jars
for i in lib/tools.jar jre/lib/rt.jar jre/lib/jsse.jar jre/lib/charsets.jar=
 jre/lib/ext/localedata.jar ; do \
            /bin/ls -l /usr/ports/java/jdk15/work/control/build/bsd-i586/j2=
sdk-image/$i | /usr/bin/awk '{printf("Packing %s %s bytes\n",$9, $5)}'  ; \
            /bin/mkdir -p /usr/ports/java/jdk15/work/control/build/bsd-i586=
/pack/pack-jdk-jars/`/usr/bin/dirname $i` ; \
            /bin/mkdir -p /usr/ports/java/jdk15/work/control/build/bsd-i586=
/j2sdk-image/`/usr/bin/dirname $i` ; \
            /usr/ports/java/jdk15/work/control/build/bsd-i586/bin/pack200 -=
J-Xmx256m -J-esa -J-ea "--no-gzip" "--config-file=3Dpack.all.properties"  /=
usr/ports/java/jdk15/work/control/build/bsd-i586/pack/pack-jdk-jars/`/usr/b=
in/dirname $i`/`/usr/bin/basename $i .jar`.pack /usr/ports/java/jdk15/work/=
control/build/bsd-i586/j2sdk-image/$i || exit 1 ; \
            rm -f /usr/ports/java/jdk15/work/control/build/bsd-i586/j2sdk-i=
mage/$i ; \
            /usr/ports/java/jdk15/work/control/build/bsd-i586/bin/unpack200=
   /usr/ports/java/jdk15/work/control/build/bsd-i586/pack/pack-jdk-jars/`/u=
sr/bin/dirname $i`/`/usr/bin/basename $i .jar`.pack /usr/ports/java/jdk15/w=
ork/control/build/bsd-i586/j2sdk-image/$i || exit 1 ; \
        done
Packing /usr/ports/java/jdk15/work/control/build/bsd-i586/j2sdk-image/lib/t=
ools.jar 7043828 bytes
Packing /usr/ports/java/jdk15/work/control/build/bsd-i586/j2sdk-image/jre/l=
ib/rt.jar 40383151 bytes
Killed
gmake[3]: *** [pack-jars] Error 1
gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/install/make/pack'
gmake[2]: *** [pack-sdk] Error 2
gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/install/make/pack'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/install/make'
gmake: *** [install-build] Error 2
*** Error code 2

Stop in /usr/ports/java/jdk15.
*** Error code 1

Stop in /usr/ports/java/jdk15.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D


This is a similar error as posted on other posts and the fix there was to a=
dd the following to /etc/make.conf

    CFLAGS+=3D-fno-tree-vrp

    see http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2007-10/msg=
00475.html

The problem is that this seems to be a gcc 4+ specific parameter and I'm ge=
tting an error when I try this on my 6.2 box.

Any suggestions on how I can get jdk15 compiled correctly?

Thanks
Peter



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