Date: Sat, 24 Aug 2002 12:52:54 -0700 From: Branden Root <hexghost@attbi.com> To: <freebsd-java@FreeBSD.ORG> Subject: Re: building native hotspot Message-ID: <200208241252.54654.hexghost@attbi.com> In-Reply-To: <NEBBJKCJGLMILKAIGPHBCEGAEMAA.skeetz@8thdeadlysim.com> References: <NEBBJKCJGLMILKAIGPHBCEGAEMAA.skeetz@8thdeadlysim.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Chad, I think you're making this more difficult than it really is. First, you will need the linux jdk to build the native jdk, along with a few other things that you can delete after the native jdk build is complete. All you need to do, after installing the dependancies, is cd to the /usr/ports/java/jdk13 directory, type make install, grab both the files that it asks of you (the actual jdk and the patchset), stick them in your /usr/ports/distfiles, and then make install again. You shouldn't have to edit any makefiles, etc. Branden Root On Friday 23 August 2002 11:38 pm, skeetz wrote: > Hey all, I'm looking at the java options again for Freebsd. I'm trying to > build the hotspot for my jdk13 port. I found this message instructing me > how to do it. > > http://www.geocrawler.com/lists/3/FreeBSD/162/0/9147806/ > > I'm running a 4.3 box and a 4.6 release, but I'm trying to get things > working on my 4.3 box for testing purposes. If I go into > /usr/ports/java/jdk13/work/hotspot1.3.1/build/ , I see that there is a bsd > directory now. Is that the one I'm supposed to use instead of linux? > > USING BSD DIRECTORY > > I first had to edit ./makefiles/top.make and add in > > DISABLE_HOTSPOT_OS_VERSION_CHECK=ok > > then I > setenv ALT_BOOTDIR /usr/local/linux-sun-jdk1.3.1/ > > is this right? building hot spot requires the linux sun jvm? why can't I > use the one I just made /usr/local/jdk1.3.1? > > then I try running gmake core and I get > > gmake[1]: Entering directory > `/usr/ports/java/jdk13/work/hotspot1.3.1/build/bsd/bsd_i486_core/jvmg' > gmake[2]: Entering directory > `/usr/ports/java/jdk13/work/hotspot1.3.1/build/bsd/bsd_i486_core/jvmg' > Compiling > /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/functionAtStar >t .cpp > In file included from ../generated/incls/_functionAtStart.cpp.incl:2, > from > /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/functionAtStar >t .cpp:18: > /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/utilities/globalDefini >t ions_gcc.hpp:27: wchar.h: No such file or directory > In file included from ../generated/incls/_functionAtStart.cpp.incl:2, > from > /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/runtime/functionAtStar >t .cpp:18: > /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/utilities/globalDefini >t ions_gcc.hpp:91: integer constant out of range > /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/utilities/globalDefini >t ions_gcc.hpp:92: integer constant out of range > /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/utilities/globalDefini >t ions_gcc.hpp: In function `int g_isnan(double)': > /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/utilities/globalDefini >t ions_gcc.hpp:107: implicit declaration of function `int isnand(...)' > /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/utilities/globalDefini >t ions_gcc.hpp: In function `int wcslen(const jchar *)': > /usr/ports/java/jdk13/work/hotspot1.3.1/src/share/vm/utilities/globalDefini >t ions_gcc.hpp:123: passing `const __wchar_t *' as argument 1 of > `wcslen(const jchar *)' > gmake[2]: *** [functionAtStart.o] Error 1 > gmake[2]: Leaving directory > `/usr/ports/java/jdk13/work/hotspot1.3.1/build/bsd/bsd_i486_core/jvmg' > gmake[1]: *** [the_vm] Error 2 > gmake[1]: Leaving directory > `/usr/ports/java/jdk13/work/hotspot1.3.1/build/bsd/bsd_i486_core/jvmg' > gmake: *** [jvmgcore] Error 2 > > USING LINUX DIRECTORY > > sh > /usr/ports/java/jdk13/work/hotspot1.3.1/build/linux/../../build/linux/makef >i les/buildATree.sh core > /usr/ports/java/jdk13/work/hotspot1.3.1/build/linux/../.. linux i486 > gmake: *** [linux_i486_core/jvmg] Error 1 > > SUMMARY > > I can't seem to figure out how I am supposed to do this. Is the problem > that I'm running Freebsd STABLE? I would appreciate if someone pointed me > in the right direction. > > Also, now that we have a licence to distribute a native FreeBSD version of > java, doesn't that mean that we should be able to download just the > binaries instead of downloading the src and building all of the code? If > not, then what exactly does it mean? > > Chad Skeeters > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208241252.54654.hexghost>