Building OpenJDK on Ubuntu 11.10

Dr Andrew John Hughes ahughes at redhat.com
Mon Oct 24 20:41:19 UTC 2011


On 15:42 Fri 21 Oct     , Tim Ellison wrote:
> 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.
> 

CCing build-dev instead as these are build issues, not porting issues.

> 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))
> 

I've already fixed this and submitted it upstream months ago, but as
external contributors apparently aren't allowed to commit to the HotSpot
repositories (still!), I've no idea exactly where it ended up.

It at least seems to be in the jdk7u tree:

changeset:   2647:ca1f1753c866
user:        andrew
date:        Thu Jul 28 14:10:21 2011 -0400
summary:     7072341: enable hotspot builds on Linux 3.0

I suggest you just need to update.

> 
> 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.
> 

I've never seen this before, but it seems like an Ubuntu issue, not an
OpenJDK one.  Surely /usr/lib/i386-linux-gnu should be on the system
library path if this library is being stored there?

> 
> Anyone else come across these?  Any interest to have OpenJDK build on
> Ubuntu 10.11 straight out of the box?
> 
> Thoughts?
> Tim

-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and IcedTea
http://www.gnu.org/software/classpath
http://icedtea.classpath.org
PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20111024/9ba12064/signature.asc>


More information about the build-dev mailing list