Building java/jdk16 and jdk15 inside FreeBSD jail

Building java/jdk16 and jdk15 inside FreeBSD jail

Post by chat9 » Tue, 03 Feb 2009 17:16:52


ello greg@ and *

I cannot build java/jdk16 and jdk15 inside FreeBSD jail.
The error message is folloing. I can build both ports outside of
the jail.
-----------------------------------------------------------------------------
gmake[4]: Entering directory `/usr/ports/java/jdk16/work/j2se/make/sun/javac'
Begin Processing SUBDIRS: javac recompile javadoc apt
gmake[5]: Entering directory `/usr/ports/java/jdk16/work/j2se/make/sun/javac/javac'
/usr/ports/java/jdk16/work/control/build/bsd-amd64/bin/java -Xmx512m -Xms256m -classpath ../../../../make/tools/CompileProperties CompileProperties ../../../../src/share/classes/com/sun/tools/javac/resources/compiler.properties /usr/ports/java/jdk16/work/control/build/bsd-amd64/gensrc/com/sun/tools/javac/resources/compiler.java
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
gmake[5]: *** [/usr/ports/java/jdk16/work/control/build/bsd-amd64/gensrc/com/sun/tools/javac/resources/compiler.java] Error 2
gmake[5]: Leaving directory `/usr/ports/java/jdk16/work/j2se/make/sun/javac/javac'
gmake[4]: *** [all] Error 1
gmake[4]: Leaving directory `/usr/ports/java/jdk16/work/j2se/make/sun/javac'
gmake[3]: *** [all] Error 1
gmake[3]: Leaving directory `/usr/ports/java/jdk16/work/j2se/make/java/javac'
gmake[2]: *** [all] Error 1
gmake[2]: Leaving directory `/usr/ports/java/jdk16/work/j2se/make/java'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/usr/ports/java/jdk16/work/j2se/make'
gmake: *** [j2se-build] Error 2
*** Error code 2

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

Stop in /usr/ports/java/jdk16.
-----------------------------------------------------------------------------
gmake[4]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java/zip'
gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java/zip'
<<<Finished Recursively making zip all @ Mon Feb 2 16:48:20 JST 2009.
gmake[3]: Entering directory `/usr/ports/java/jdk15/work/j2se/make/java/javac'
cd ../../sun/javac ; gmake all RELEASE=1.5.0_14-p8 FULL_VERSION=1.5.0_14-p8-maho_02_feb_2009_16_47
gmake[4]: Entering directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac'
gmake[5]: Entering directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac/javac'
gmake /usr/ports/java/jdk15/work/control/build/bsd-amd64/bin/javac VARIANT=OPT
gmake[6]: Entering directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac/javac'
rm -f /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/com.sun.tools.javac/javac/.classes.list
/usr/ports/java/jdk15/work/control/build/bsd-amd64/bin/java -classpath ../../../tools/CompileProperties CompileProperties ../../../../src/share/classes/com/sun/tools/javac/resources/compiler.properties /usr/ports/java/jdk15/work/control/build/bsd-amd64/gensrc/com/sun/tools/javac/resources/compiler.java
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
gmake[6]: *** [/usr/ports/java/jdk15/work/control/build/bsd-amd64/gensrc/com/sun/tools/javac/resources/compiler.java] Error 2
gmake[6]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac/javac'
gmake[5]: *** [optimized] Error 2
gmake[5]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac/javac'
gmake[4]: *** [all] Error 1
gmake[4]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java/javac'
gm
 
 
 

Building java/jdk16 and jdk15 inside FreeBSD jail

Post by daich » Wed, 04 Feb 2009 12:03:19

have been doubting that nullfs works properly. Try without
nullfs, IMO, combination of jail and nullfs does not work correctly.

Maho NAKATA wrote:


--
Daichi GOTO, http://people.freebsd.org/~daichi
_______________________________________________
XXXX@XXXXX.COM mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to " XXXX@XXXXX.COM "

 
 
 

Building java/jdk16 and jdk15 inside FreeBSD jail

Post by avg » Wed, 04 Feb 2009 22:20:08

n 03/02/2009 04:43 Daichi GOTO said the following:

I am using it all the time for kernel/world/packages cross-building
(i386 on amd64) and it works great for me.
/usr/ports on /export/j386/usr/ports (nullfs, local, read-only)
/usr/ports/distfiles on /export/j386/usr/ports/distfiles (nullfs, local)
/usr/src on /export/j386/usr/src (nullfs, local, read-only)
/usr/devel on /export/j386/usr/devel (nullfs, local, read-only)

Original directories are on ZFS.
And the builds are done in a jail populated with i386 world.
Just yesterday I successfully built jdk-1.6.0.3p4_8 using
diablo-jdk-1.6.0.07.02_3 as bootstrap.



--
Andriy Gapon
_______________________________________________
XXXX@XXXXX.COM mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to " XXXX@XXXXX.COM "
 
 
 

Building java/jdk16 and jdk15 inside FreeBSD jail

Post by ndene » Sat, 21 Feb 2009 08:45:20

his is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--Apple-Mail-3--919818174
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit


On Feb 2, 2009, at 9:50 AM, Maho NAKATA wrote:


A thread back from 2006 suggests that procfs in the jail may be the
problem,
can you try unmounting it and trying to rebuild?
P.S.: I have the same problem, and I'm testing without procfs right now

Regards,
Niki Denev


--Apple-Mail-3--919818174
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)

iEYEARECAAYFAkmd6GsACgkQHNAJ/fLbfrnNIACffr6QuvMb6PdB1B7rR5HEXswo
xpcAoKn0Nu+mDlxtNWh3c0B3sGfIA5qx
=nMHQ
-----END PGP SIGNATURE-----

--Apple-Mail-3--919818174--
 
 
 

Building java/jdk16 and jdk15 inside FreeBSD jail

Post by chat9 » Sat, 21 Feb 2009 14:16:34

---Security_Multipart(Fri_Feb_20_14_15_17_2009_586)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Daichi-kun,

Thanks for your e-mail, and I tried on jail enviroment,
# cp -r /usr/ports/java/jdk16 /root/jdk16
# cd /root/jdk16 ; make

it worked!

Thanks for your info.
Best,

From: Daichi GOTO < XXXX@XXXXX.COM >
Subject: Re: Building java/jdk16 and jdk15 inside FreeBSD jail
Date: Tue, 03 Feb 2009 11:43:27 +0900



----Security_Multipart(Fri_Feb_20_14_15_17_2009_586)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (FreeBSD)

iEYEABECAAYFAkmePGYACgkQpcQqaPiEzfnxIwCZATW2tn233id41QDbwnxZMDuu
EV4An3AH1gHqz6NYloN3y07psMuQA3R/
=AeAO
-----END PGP SIGNATURE-----

----Security_Multipart(Fri_Feb_20_14_15_17_2009_586)----
 
 
 

Building java/jdk16 and jdk15 inside FreeBSD jail

Post by chat9 » Sat, 21 Feb 2009 14:17:54

---Security_Multipart(Fri_Feb_20_14_16_48_2009_018)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hm, Andriy, nullfs on ZFS might work?
Still my environment is UFS2, so I'll try when I switched to ZFS...
thanks

From: Andriy Gapon < XXXX@XXXXX.COM >
Subject: Re: Building java/jdk16 and jdk15 inside FreeBSD jail
Date: Tue, 03 Feb 2009 15:06:20 +0200


----Security_Multipart(Fri_Feb_20_14_16_48_2009_018)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (FreeBSD)

iEYEABECAAYFAkmePMEACgkQpcQqaPiEzfmwdQCgk+/lM2BadWMQaRGaZea/Syux
x+cAoMk+6H5ZUslsrbHPMYbtWMpU/+ZE
=VZql
-----END PGP SIGNATURE-----

----Security_Multipart(Fri_Feb_20_14_16_48_2009_018)----
 
 
 

Building java/jdk16 and jdk15 inside FreeBSD jail

Post by avg » Sat, 21 Feb 2009 15:22:52

on 20/02/2009 07:16 Maho NAKATA said the following:

My understanding is that nullfs should work even better with UFS, so I
am guessing that your problem might not be caused nullfs.

--
Andriy Gapon
_______________________________________________
XXXX@XXXXX.COM mailing list
http://www.yqcomputer.com/
To unsubscribe, send any mail to " XXXX@XXXXX.COM "
 
 
 

Building java/jdk16 and jdk15 inside FreeBSD jail

Post by daich » Sat, 21 Feb 2009 23:37:48


From my opinion, I am doubting that read-write unionfs works
stably and correctly even on heavy situations. JIMO, current
implementation of nullfs essentially has unstable seen while
heavy read-write situations.

If you want to use nullfs, read-only mode is better even for
heavy situation :)

Thanks

--
Daichi GOTO, http://www.yqcomputer.com/ ~daichi
_______________________________________________
XXXX@XXXXX.COM mailing list
http://www.yqcomputer.com/
To unsubscribe, send any mail to " XXXX@XXXXX.COM "