Date: Mon, 11 Sep 2006 14:44:21 -0400 From: Pat Lashley <patl+freebsd@volant.org> To: Bruce Burden <brucegb@realtime.net>, freebsd-java@freebsd.org Subject: Re: Compiling java jdk15 on AMD64 FreeBSD 6.1 Message-ID: <F3DFFD0E35AA0585C53B755E@garrett.local> In-Reply-To: <20060906155059.GB1045@tigerfish2.my.domain> References: <44FEB496.1060908@radier.ca> <20060906155059.GB1045@tigerfish2.my.domain>
next in thread | previous in thread | raw e-mail | index | archive | help
--On 6 September, 2006 10:50:59 -0500 Bruce Burden <brucegb@realtime.net> wrote: > > On Wed, Sep 06, 2006 at 07:44:22AM -0400, Dmitriy Fitisov wrote: > > Hello everyone, > > I may not compile java on FreeBSD 6.1 AMD64 > > > > ... > > Why are you (still) using linux_base-8 for you Linux > emulation? This is a very old, dated port. > > I have JDK1.5 installed with linux_base-fc4 on AMD64, and > things seem to work. It did take a few tries on the compilation, > but in the end... If you're trying to build the native jdk15, you don't actually have to use linux at all. Install the amd64 version of the diablo-jdk15 port; then apply the following patch to java/jdk15/Makefile and build jdk15: --- Makefile.dist Tue Aug 1 14:38:25 2006 +++ Makefile Wed Sep 6 09:31:08 2006 @@ -59,6 +59,8 @@ .if !defined(WITH_LINUX_BOOTSTRAP) .if ${MACHINE_ARCH} == "i386" NATIVE_BOOTSTRAP_JDKS+= ${LOCALBASE}/diablo-jdk1.5.0 +.elif ${MACHINE_ARCH} == "amd64" +NATIVE_BOOTSTRAP_JDKS+= ${LOCALBASE}/diablo-jdk1.5.0 .endif NATIVE_BOOTSTRAP_JDKS+= ${LOCALBASE}/jdk1.5.0 \ ${LOCALBASE}/jdk1.4.2 (That probably isn't the cleanest way to do that; but it's a simple copy-and-paste with a one-word replacement; which reduces the chances of introducing a typo. And it does allow for the possibility of [hopefully temporary] divergence between the amd64 and i386 version numbers on the diablo port.) I haven't yet tested the result thoroughly; but it builds OK and seems to work... -Pat
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F3DFFD0E35AA0585C53B755E>