Building OpenJDK on Ubuntu 11.10
t.p.ellison at gmail.com
Fri Oct 21 07:42:56 PDT 2011
Is anyone else building OpenJDK 7 on Ubuntu 10.11? I found I need a
couple of extra definitions to work around problems not seen on 10.4.
1) "This OS is not supported"
The Hotspot build checks that the Linux kernel version number is in a
known list. As Ubuntu 10.11 has kernel 3.0.0 you either need to
bypass the version check (DISABLE_HOTSPOT_OS_VERSION_CHECK=ok), or add
3.0 to the supported versions, i.e.
diff -r 9b0ca45cd756 make/linux/Makefile
--- a/make/linux/Makefile Tue Jun 28 10:57:38 2011 -0700
+++ b/make/linux/Makefile Fri Oct 21 15:15:20 2011 +0100
@@ -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))
2) Can't find asound lib
To get jsoundalsa to link successfully I found I need to specify
"EXTRA_LIBS=/usr/lib/i386-linux-gnu/libasound.so" to pick up
libasound.so (from pkg libasound2-dev) as it is no longer in /usr/lib.
Anyone else come across these? Any interest to have OpenJDK build on
Ubuntu 10.11 straight out of the box?
More information about the porters-dev