Skip to contentSkip to conversation

llvm: update 3.5.2 to have a sane ARM JIT for OpenJDK-8

PATCH In review Jens Rehsack 3 participants 8 messages Oct 14, 2015 – Oct 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 llvm: update 3.5.2 to have a sane ARM JIT for OpenJDK-8

llvm introduced new JIT technology MCJIT with llvm 3.4 and fixes ARM in 3.5 (see http://llvm.org/releases/3.5.2/docs/ReleaseNotes.html#changes-to-the-arm-backend).

Ensure JIT is built with llvm

---
 meta-oe/recipes-core/llvm/llvm.inc                 |  8 +---
 ...r-output-from-configure-if-CFLAGS-is-set-.patch | 52 ----------------------
 .../{llvm3.3 => llvm3.5}/arm_fenv_uclibc.patch     |  0
 .../llvm/{llvm3.3_3.3.bb => llvm3.5_3.5.2.bb}      | 11 +++--
 4 files changed, 9 insertions(+), 62 deletions(-)
 delete mode 100644 meta-oe/recipes-core/llvm/llvm3.3/Remove-error-output-from-configure-if-CFLAGS-is-set-.patch
 rename meta-oe/recipes-core/llvm/{llvm3.3 => llvm3.5}/arm_fenv_uclibc.patch (100%)
 rename meta-oe/recipes-core/llvm/{llvm3.3_3.3.bb => llvm3.5_3.5.2.bb} (71%)
meta-oe/recipes-core/llvm/llvm.inc +2 -6
index 0597be1..cc45ca7 100644
@@ -20,11 +20,6 @@
 DESCRIPTION = "The Low Level Virtual Machine"
 HOMEPAGE = "http://llvm.org"
 
-# 3-clause BSD-like
-# University of Illinois/NCSA Open Source License
-LICENSE = "NCSA"
-LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=d0a3ef0d3e0e8f5cf59e5ffc273ab1f8"
-
 DEPENDS = "libffi libxml2-native llvm-common"
 
 inherit perlnative pythonnative autotools
@@ -32,7 +27,7 @@ inherit perlnative pythonnative autotools
 LLVM_RELEASE = "${PV}"
 LLVM_DIR = "llvm${LLVM_RELEASE}"
 
-SRC_URI = "http://llvm.org/releases/${PV}/llvm-${PV}.src.tar.gz"
+SRC_URI = "http://llvm.org/releases/${PV}/llvm-${PV}.src.tar.xz"
 S = "${WORKDIR}/llvm-${PV}.src"
 
 LLVM_BUILD_DIR = "${WORKDIR}/llvm-${PV}.build"
@@ -42,6 +37,7 @@ EXTRA_OECONF += "--disable-assertions \
                  --enable-debug-runtime \
                  --disable-expensive-checks \
                  --enable-bindings=none \
+                 --enable-jit \
                  --enable-keep-symbols \
                  --enable-libffi \
                  --enable-optimized \
meta-oe/recipes-core/llvm/llvm3.3/Remove-error-output-from-configure-if-CFLAGS-is-set-.patch deleted +0 -52

52 lines not on this page · raw message

meta-oe/recipes-core/llvm/llvm3.5/arm_fenv_uclibc.patch renamed from meta-oe/recipes-core/llvm/llvm3.3/arm_fenv_uclibc.patch +0 -0
similarity index 100%
rename from meta-oe/recipes-core/llvm/llvm3.3/arm_fenv_uclibc.patch
rename to meta-oe/recipes-core/llvm/llvm3.5/arm_fenv_uclibc.patch
meta-oe/recipes-core/llvm/llvm3.5_3.5.2.bb renamed from meta-oe/recipes-core/llvm/llvm3.3_3.3.bb +7 -4
similarity index 71%
rename from meta-oe/recipes-core/llvm/llvm3.3_3.3.bb
rename to meta-oe/recipes-core/llvm/llvm3.5_3.5.2.bb
index 60a2221..7289b81 100644
@@ -1,14 +1,17 @@
 require llvm.inc
 
+# 3-clause BSD-like
+# University of Illinois/NCSA Open Source License
+LICENSE = "NCSA"
+LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=47e311aa9caedd1b3abf098bd7814d1d"
+
 DEPENDS += "zlib"
 EXTRA_OECONF += "--enable-zlib"
 
-SRC_URI += "file://Remove-error-output-from-configure-if-CFLAGS-is-set-.patch"
-
 SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch "
 
-SRC_URI[md5sum] = "40564e1dc390f9844f1711c08b08e391"
-SRC_URI[sha256sum] = "68766b1e70d05a25e2f502e997a3cb3937187a3296595cf6e0977d5cd6727578"
+SRC_URI[md5sum] = "f5a4dc595f7e8bd23397684d0906d014"
+SRC_URI[sha256sum] = "44196156d5749eb4b4224fe471a29cc3984df92570a4a89fa859f7394fc0c575"
 
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[r600] = "--enable-experimental-targets=R600,,,"
Signature · 5 lines
1.9.1


-- 
Jens Rehsack - [email protected]
#1 lore raw
Quoted 5 lines · Jens Rehsack

llvm introduced new JIT technology MCJIT with llvm 3.4 and fixes ARM in 3.5 (see http://llvm.org/releases/3.5.2/docs/ReleaseNotes.html#changes-to-the-arm-backend).

Ensure JIT is built with llvm

I'm tempted to leave this one after jethro is branched, unless default LLVM_RELEASE is updated in oe-core/jethro mesa as well.

Otherwise everybody will need to set LLVM_RELASE in their mesa bbappend or we'll need to bbappend it in meta-oe.

What others think?

And was this tested with mesa or just with java?

Regards,

Quoted 11 lines
---
 meta-oe/recipes-core/llvm/llvm.inc                 |  8 +---
 ...r-output-from-configure-if-CFLAGS-is-set-.patch | 52 ----------------------
 .../{llvm3.3 => llvm3.5}/arm_fenv_uclibc.patch     |  0
 .../llvm/{llvm3.3_3.3.bb => llvm3.5_3.5.2.bb}      | 11 +++--
 4 files changed, 9 insertions(+), 62 deletions(-)
 delete mode 100644 meta-oe/recipes-core/llvm/llvm3.3/Remove-error-output-from-configure-if-CFLAGS-is-set-.patch
 rename meta-oe/recipes-core/llvm/{llvm3.3 => llvm3.5}/arm_fenv_uclibc.patch (100%)
 rename meta-oe/recipes-core/llvm/{llvm3.3_3.3.bb => llvm3.5_3.5.2.bb} (71%)
#2 lore raw
Quoted 5 lines · Martin Jansa
Quoted 4 lines · Jens Rehsack

llvm introduced new JIT technology MCJIT with llvm 3.4 and fixes ARM in 3.5 (see http://llvm.org/releases/3.5.2/docs/ReleaseNotes.html#changes-to-the-arm-backend).

Quoted 7 lines
Quoted 1 line

Ensure JIT is built with llvm

I'm tempted to leave this one after jethro is branched, unless default LLVM_RELEASE is updated in oe-core/jethro mesa as well.

Otherwise everybody will need to set LLVM_RELASE in their mesa bbappend or we'll need to bbappend it in meta-oe.

Or better, update this to keep 3.3 as llvm is meant to allow multiple versions being built and installed in parallel.

Quoted 18 lines

What others think?

And was this tested with mesa or just with java?

Regards,

Quoted 11 lines
---
 meta-oe/recipes-core/llvm/llvm.inc                 |  8 +---
 ...r-output-from-configure-if-CFLAGS-is-set-.patch | 52 ----------------------
 .../{llvm3.3 => llvm3.5}/arm_fenv_uclibc.patch     |  0
 .../llvm/{llvm3.3_3.3.bb => llvm3.5_3.5.2.bb}      | 11 +++--
 4 files changed, 9 insertions(+), 62 deletions(-)
 delete mode 100644 meta-oe/recipes-core/llvm/llvm3.3/Remove-error-output-from-configure-if-CFLAGS-is-set-.patch
 rename meta-oe/recipes-core/llvm/{llvm3.3 => llvm3.5}/arm_fenv_uclibc.patch (100%)
 rename meta-oe/recipes-core/llvm/{llvm3.3_3.3.bb => llvm3.5_3.5.2.bb} (71%)
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw
Quoted 8 lines · Martin Jansa
Quoted 7 lines · Martin Jansa
Quoted 5 lines · Jens Rehsack

llvm introduced new JIT technology MCJIT with llvm 3.4 and fixes ARM in 3.5 (see http://llvm.org/releases/3.5.2/docs/ReleaseNotes.html#changes-to-the-arm-backend).

Ensure JIT is built with llvm

Quoted 8 lines
Quoted 5 lines

I'm tempted to leave this one after jethro is branched, unless default LLVM_RELEASE is updated in oe-core/jethro mesa as well.

Otherwise everybody will need to set LLVM_RELASE in their mesa bbappend or we'll need to bbappend it in meta-oe.

Or better, update this to keep 3.3 as llvm is meant to allow multiple versions being built and installed in parallel.

Another reason to keep 3.3 around is build on older hosts, current 3.5 fails in Ubuntu-12.04

| checking whether GCC is new enough... no
| configure: error:
| The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
| to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
| bypass these sanity checks.
Quoted 22 lines
Quoted 17 lines

What others think?

And was this tested with mesa or just with java?

Regards,

Quoted 11 lines
---
 meta-oe/recipes-core/llvm/llvm.inc                 |  8 +---
 ...r-output-from-configure-if-CFLAGS-is-set-.patch | 52 ----------------------
 .../{llvm3.3 => llvm3.5}/arm_fenv_uclibc.patch     |  0
 .../llvm/{llvm3.3_3.3.bb => llvm3.5_3.5.2.bb}      | 11 +++--
 4 files changed, 9 insertions(+), 62 deletions(-)
 delete mode 100644 meta-oe/recipes-core/llvm/llvm3.3/Remove-error-output-from-configure-if-CFLAGS-is-set-.patch
 rename meta-oe/recipes-core/llvm/{llvm3.3 => llvm3.5}/arm_fenv_uclibc.patch (100%)
 rename meta-oe/recipes-core/llvm/{llvm3.3_3.3.bb => llvm3.5_3.5.2.bb} (71%)
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#4 lore raw
Quoted 21 lines

Am 21.10.2015 um 16:11 schrieb Martin Jansa <[email protected]>:

Quoted 8 lines · Martin Jansa
Quoted 7 lines · Martin Jansa
Quoted 5 lines · Jens Rehsack

llvm introduced new JIT technology MCJIT with llvm 3.4 and fixes ARM in 3.5 (see http://llvm.org/releases/3.5.2/docs/ReleaseNotes.html#changes-to-the-arm-backend).

Ensure JIT is built with llvm

Quoted 8 lines
Quoted 5 lines

I'm tempted to leave this one after jethro is branched, unless default LLVM_RELEASE is updated in oe-core/jethro mesa as well.

Otherwise everybody will need to set LLVM_RELASE in their mesa bbappend or we'll need to bbappend it in meta-oe.

Or better, update this to keep 3.3 as llvm is meant to allow multiple versions being built and installed in parallel.

Quoted 8 lines

Another reason to keep 3.3 around is build on older hosts, current 3.5 fails in Ubuntu-12.04

| checking whether GCC is new enough... no
| configure: error:
| The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
| to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
| bypass these sanity checks.

I'm fine with keeping both. Shall I resend the patch keeping 3.3, or can you extract the relevant part?

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

What others think?

And was this tested with mesa or just with java?

Regards,

Unfortunately (my DISTRO's are without X11) with Java only.

Cheers

Signature · 1 line
Jens Rehsack - [email protected]
#5 lore raw
Quoted 24 lines · Jens Rehsack
Quoted 24 lines

Am 21.10.2015 um 16:11 schrieb Martin Jansa <[email protected]>:

Quoted 8 lines · Martin Jansa
Quoted 7 lines · Martin Jansa
Quoted 5 lines · Jens Rehsack

llvm introduced new JIT technology MCJIT with llvm 3.4 and fixes ARM in 3.5 (see http://llvm.org/releases/3.5.2/docs/ReleaseNotes.html#changes-to-the-arm-backend).

Ensure JIT is built with llvm

Quoted 8 lines
Quoted 5 lines

I'm tempted to leave this one after jethro is branched, unless default LLVM_RELEASE is updated in oe-core/jethro mesa as well.

Otherwise everybody will need to set LLVM_RELASE in their mesa bbappend or we'll need to bbappend it in meta-oe.

Or better, update this to keep 3.3 as llvm is meant to allow multiple versions being built and installed in parallel.

Another reason to keep 3.3 around is build on older hosts, current 3.5 fails in Ubuntu-12.04

Quoted 8 lines
Quoted 5 lines
| checking whether GCC is new enough... no
| configure: error:
| The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
| to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
| bypass these sanity checks.

I'm fine with keeping both. Shall I resend the patch keeping 3.3, or can you extract the relevant part?

Please send updated version.

Quoted 12 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

What others think?

And was this tested with mesa or just with java?

Regards,

Unfortunately (my DISTRO's are without X11) with Java only.

Cheers

Signature · 1 line
Jens Rehsack - [email protected]
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#6 lore raw
In reply to Martin Jansa
Quoted 18 lines · Martin Jansa
Quoted 8 lines · Martin Jansa
Quoted 7 lines · Martin Jansa
Quoted 5 lines · Jens Rehsack

llvm introduced new JIT technology MCJIT with llvm 3.4 and fixes ARM in 3.5 (see http://llvm.org/releases/3.5.2/docs/ReleaseNotes.html#changes-to-the-arm-backend).

Ensure JIT is built with llvm

Quoted 8 lines
Quoted 5 lines

I'm tempted to leave this one after jethro is branched, unless default LLVM_RELEASE is updated in oe-core/jethro mesa as well.

Otherwise everybody will need to set LLVM_RELASE in their mesa bbappend or we'll need to bbappend it in meta-oe.

Or better, update this to keep 3.3 as llvm is meant to allow multiple versions being built and installed in parallel.

Quoted 8 lines

Another reason to keep 3.3 around is build on older hosts, current 3.5 fails in Ubuntu-12.04

| checking whether GCC is new enough... no
| configure: error:
| The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
| to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
| bypass these sanity checks.

I agree to keep 3.3 however supporting 12.04 is a goal? Poky does not support it anymore so will OE-Core keep it?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#7 lore raw
Quoted 22 lines · Otavio Salvador
Quoted 21 lines · Martin Jansa
Quoted 8 lines · Martin Jansa
Quoted 7 lines · Martin Jansa
Quoted 5 lines · Jens Rehsack

llvm introduced new JIT technology MCJIT with llvm 3.4 and fixes ARM in 3.5 (see http://llvm.org/releases/3.5.2/docs/ReleaseNotes.html#changes-to-the-arm-backend).

Ensure JIT is built with llvm

Quoted 8 lines
Quoted 5 lines

I'm tempted to leave this one after jethro is branched, unless default LLVM_RELEASE is updated in oe-core/jethro mesa as well.

Otherwise everybody will need to set LLVM_RELASE in their mesa bbappend or we'll need to bbappend it in meta-oe.

Or better, update this to keep 3.3 as llvm is meant to allow multiple versions being built and installed in parallel.

Another reason to keep 3.3 around is build on older hosts, current 3.5 fails in Ubuntu-12.04

Quoted 8 lines
Quoted 5 lines
| checking whether GCC is new enough... no
| configure: error:
| The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
| to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
| bypass these sanity checks.

I agree to keep 3.3 however supporting 12.04 is a goal? Poky does not support it anymore so will OE-Core keep it?

I'm not saying that we have to support Ubuntu-12.04, it's just what my world builders currently have and this is first recipe which wouldn't build on them (similar issue was in one other recipe lately, but it was patched to allow build with gcc-4.6). Maybe we can get away with --disable-compiler-version-checks here as well.

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]