Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Oct 2010 16:45:39 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Dmitry Morozovsky <marck@rinet.ru>
Cc:        freebsd-java@freebsd.org
Subject:   Re: strange java/jdk16 build error while building over tmpfs
Message-ID:  <20101017134539.GW2392@deviant.kiev.zoral.com.ua>
In-Reply-To: <alpine.BSF.2.00.1010171232070.50296@woozle.rinet.ru>
References:  <alpine.BSF.2.00.1010171232070.50296@woozle.rinet.ru>

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

--UAAUMAtm6/xgGh2k
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Oct 17, 2010 at 12:35:37PM +0400, Dmitry Morozovsky wrote:
> Dear colleagues,
>=20
> I use ports tinderbox with working place null-m,ounted over tmpfs. Quite =
a few=20
> ports are failing to build in such situation, such as jdk16. End of build=
 log=20
> (regardless of 7/8, i386/amd64) is
>=20
> gmake[4]: Entering directory=20
> `/work/a/ports/java/jdk16/work/control/build/bsd-amd64/hotspot/outputdir'
> /usr/local/diablo-jdk1.6.0/bin/javap javax.xml.transform.TransformerFacto=
ry >=20
> /dev/null 2>&1; \
> 	if [ $? -ne 0 ]; then \
> 	  /usr/local/diablo-jdk1.6.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
> Error: could not find libjava.so
> Error: could not find Java 2 Runtime Environment.
> *** 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=20
> `/work/a/ports/java/jdk16/work/control/build/bsd-amd64/hotspot/outputdir'
> gmake[3]: *** [bsd_amd64_compiler2/debug] Error 2
> gmake[3]: Leaving directory=20
> `/work/a/ports/java/jdk16/work/control/build/bsd-amd64/hotspot/outputdir'
> gmake[2]: *** [generic_build2] Error 2
> gmake[2]: Leaving directory `/work/a/ports/java/jdk16/work/hotspot/make'
> gmake[1]: *** [product] Error 2
> gmake[1]: Leaving directory `/work/a/ports/java/jdk16/work/hotspot/make'
> gmake: *** [hotspot-build] Error 2
> *** Error code 2
>=20
> Stop in /a/ports/java/jdk16.
>=20
>=20
> Any hints? Thanks!
>=20
> Please keep me in CC: as I'm not subscribed to -java@ list.

Do you have procfs mounted in the build jail/chroot ? If yes, the issue
is known. vn_fullpath(9) has some issues resolving the vnode to the cached
path over nullfs. As a consequence, /proc/pid/file symlink sometimes cannot
be resolved, and AFAIK jdk uses it to find the base of installation.

I tried to fix the problem in r193175, and it works for me. You should
supply some useful diagnostic to move the issue forward.

Try to unmount procfs from the build chroot as a workaround.

--UAAUMAtm6/xgGh2k
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEARECAAYFAky6/gIACgkQC3+MBN1Mb4jnOwCeOicsfOnassFspgoflKefVULC
yIMAn0CJpLTTP1lpd0g/8KanBm6qsUxS
=U8Ej
-----END PGP SIGNATURE-----

--UAAUMAtm6/xgGh2k--



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