The makefiles are not prepared for building on Linux 3.0 kernels yet. Try applying this patch:
diff --git a/make/linux/Makefile b/make/linux/Makefile --- a/make/linux/Makefile +++ b/make/linux/Makefile @@ -230,7 +230,7 @@ # Solaris 2.5.1, 2.6). # Disable this check by setting DISABLE_HOTSPOT_OS_VERSION_CHECK=ok. -SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 2.7% +SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 2.7% 3.0% OS_VERSION := $(shell uname -r) EMPTY_IF_NOT_SUPPORTED = $(filter $(SUPPORTED_OS_VERSION),$(OS_VERSION)) However, I can't be sure that is the only change needed. -kto On Dec 29, 2011, at 10:05 AM, m silverstri wrote: > Hi, > > I am trying to build openjd on 11.10, but it said 'op is not > supported'. Any idea how to fix it? > > Thank you. > > > mkdir -p /home/michael/src/jdk7/build/linux-amd64/hotspot/outputdir > cd /home/michael/src/jdk7/build/linux-amd64/hotspot/outputdir; \ > make -f /home/michael/src/jdk7/hotspot/make/linux/Makefile \ > LP64=1 JAVA_HOME=/home/michael/Programs/jdk1.6.0_30 > OUTPUTDIR=/home/michael/src/jdk7/build/linux-amd64/hotspot/outputdir > GAMMADIR=/home/michael/src/jdk7/hotspot MAKE_VERBOSE=y > HOTSPOT_RELEASE_VERSION=21.0-b17 > JRE_RELEASE_VERSION=1.7.0-internal-michael_2011_12_29_09_49-b00 > HOTSPOT_BUILD_VERSION= product > make[4]: Entering directory > `/home/michael/src/jdk7/build/linux-amd64/hotspot/outputdir' > make -f /home/michael/src/jdk7/hotspot/make/linux/Makefile checks > make[5]: Entering directory > `/home/michael/src/jdk7/build/linux-amd64/hotspot/outputdir' >> &2 echo "*** This OS is not supported:" `uname -a`; exit 1; > *** This OS is not supported: Linux test 3.0.0-14-generic #23-Ubuntu > SMP Mon Nov 21 20:28:43 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux > make[5]: *** [check_os_version] Error 1 > make[5]: Leaving directory > `/home/michael/src/jdk7/build/linux-amd64/hotspot/outputdir' > make[4]: *** [linux_amd64_compiler2/debug] Error 2