llvm: Add recipe for llvm-3.7.0.
PATCH 1/1 llvm: Add recipe for llvm-3.7.0.
From: Philip Balister <[email protected]>
This version builds in parallel with the 3.3 recipe. I had to use the mesa llvmpipe driver, which required updates to llvm and mesa before it worked. With updates, I succesfully used the mesa llvmpipe driver.
* Move the licence file checksum to the version specific part of the recipe
* License changed for 3.7.0 due to year change and adding related software
* llvm source is now compressed with xz not gz.
--- meta-oe/recipes-core/llvm/llvm.inc | 3 +-- meta-oe/recipes-core/llvm/llvm3.3_3.3.bb | 4 ++++ meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb | 24 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb
meta-oe/recipes-core/llvm/llvm.inc +1 -2
@@ -23,7 +23,6 @@ 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"
@@ -32,7 +31,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"
meta-oe/recipes-core/llvm/llvm3.3_3.3.bb +4 -0
@@ -1,8 +1,12 @@ require llvm.inc +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=d0a3ef0d3e0e8f5cf59e5ffc273ab1f8" + DEPENDS += "zlib" EXTRA_OECONF += "--enable-zlib" +# Overwrite SRC_URI from include file since older llvm uses .gz compression +SRC_URI = "http://llvm.org/releases/${PV}/llvm-${PV}.src.tar.gz" SRC_URI += "file://Remove-error-output-from-configure-if-CFLAGS-is-set-.patch" SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch "
meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb new file +24 -0
@@ -0,0 +1,24 @@ +require llvm.inc + +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=4c0bc17c954e99fd547528d938832bfa" + +DEPENDS += "zlib" +EXTRA_OECONF += "--enable-zlib" + +SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch " + +SRC_URI[md5sum] = "b98b9495e5655a672d6cb83e1a180f8e" +SRC_URI[sha256sum] = "ab45895f9dcdad1e140a3a79fd709f64b05ad7364e308c0e582c5b02e9cc3153" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[r600] = "--enable-experimental-targets=R600,,," + +PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" + +# Fails to build with thumb-1 (qemuarm) +# | {standard input}: Assembler messages: +# | {standard input}:22: Error: selected processor does not support Thumb mode `stmdb sp!,{r0,r1,r2,r3,lr}' +# | {standard input}:31: Error: lo register required -- `ldmia sp!,{r0,r1,r2,r3,lr}' +# | {standard input}:32: Error: lo register required -- `ldr pc,[sp],#4' +# | make[3]: *** [/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/llvm3.3/3.3-r0/llvm-3.3.build/lib/Target/ARM/Release/ARMJITInfo.o] Error 1 +ARM_INSTRUCTION_SET = "arm"
Signature · 1 line
1.9.3
Quoted 9 lines · Philip Balister
From: Philip Balister <[email protected]>
This version builds in parallel with the 3.3 recipe. I had to use the mesa llvmpipe driver, which required updates to llvm and mesa before it worked. With updates, I succesfully used the mesa llvmpipe driver.
* Move the licence file checksum to the version specific part of the recipe
* License changed for 3.7.0 due to year change and adding related software
* llvm source is now compressed with xz not gz.
It fails to build on older Ubuntu-12.04 with:
| 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.
Shouldn't it check the cross compiler instead of the native one from host? (in this build it was 5.2)
Quoted 84 lines
Signed-off-by Philip Balister <[email protected]>--- meta-oe/recipes-core/llvm/llvm.inc | 3 +-- meta-oe/recipes-core/llvm/llvm3.3_3.3.bb | 4 ++++ meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb | 24 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bbmeta-oe/recipes-core/llvm/llvm.inc +1
-2@@ -23,7 +23,6 @@ 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"@@ -32,7 +31,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"meta-oe/recipes-core/llvm/llvm3.3_3.3.bb +4
-0@@ -1,8 +1,12 @@ require llvm.inc +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=d0a3ef0d3e0e8f5cf59e5ffc273ab1f8" + DEPENDS += "zlib" EXTRA_OECONF += "--enable-zlib" +# Overwrite SRC_URI from include file since older llvm uses .gz compression +SRC_URI = "http://llvm.org/releases/${PV}/llvm-${PV}.src.tar.gz" SRC_URI += "file://Remove-error-output-from-configure-if-CFLAGS-is-set-.patch" SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch "meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb new file +24
-0@@ -0,0 +1,24 @@ +require llvm.inc + +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=4c0bc17c954e99fd547528d938832bfa" + +DEPENDS += "zlib" +EXTRA_OECONF += "--enable-zlib" + +SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch " + +SRC_URI[md5sum] = "b98b9495e5655a672d6cb83e1a180f8e" +SRC_URI[sha256sum] = "ab45895f9dcdad1e140a3a79fd709f64b05ad7364e308c0e582c5b02e9cc3153" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[r600] = "--enable-experimental-targets=R600,,," + +PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" + +# Fails to build with thumb-1 (qemuarm) +# | {standard input}: Assembler messages: +# | {standard input}:22: Error: selected processor does not support Thumb mode `stmdb sp!,{r0,r1,r2,r3,lr}' +# | {standard input}:31: Error: lo register required -- `ldmia sp!,{r0,r1,r2,r3,lr}' +# | {standard input}:32: Error: lo register required -- `ldr pc,[sp],#4' +# | make[3]: *** [/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/llvm3.3/3.3-r0/llvm-3.3.build/lib/Target/ARM/Release/ARMJITInfo.o] Error 1 +ARM_INSTRUCTION_SET = "arm"Signature · 7 lines
1.9.3 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 12 lines · Martin Jansa
Quoted 9 lines · Philip Balister
From: Philip Balister <[email protected]>
This version builds in parallel with the 3.3 recipe. I had to use the mesa llvmpipe driver, which required updates to llvm and mesa before it worked. With updates, I succesfully used the mesa llvmpipe driver.
* Move the licence file checksum to the version specific part of the recipe
* License changed for 3.7.0 due to year change and adding related software
* llvm source is now compressed with xz not gz.It fails to build on older Ubuntu-12.04 with:
Quoted 8 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.Shouldn't it check the cross compiler instead of the native one from host? (in this build it was 5.2)
How about disabling the check with the flag the message mentions? We aren't going to use this with any OE that has an older gcc.
Philip
Quoted 88 lines
Quoted 85 lines
Signed-off-by Philip Balister <[email protected]>--- meta-oe/recipes-core/llvm/llvm.inc | 3 +-- meta-oe/recipes-core/llvm/llvm3.3_3.3.bb | 4 ++++ meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb | 24 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bbmeta-oe/recipes-core/llvm/llvm.inc +1
-2@@ -23,7 +23,6 @@ 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"@@ -32,7 +31,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"meta-oe/recipes-core/llvm/llvm3.3_3.3.bb +4
-0@@ -1,8 +1,12 @@ require llvm.inc +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=d0a3ef0d3e0e8f5cf59e5ffc273ab1f8" + DEPENDS += "zlib" EXTRA_OECONF += "--enable-zlib" +# Overwrite SRC_URI from include file since older llvm uses .gz compression +SRC_URI = "http://llvm.org/releases/${PV}/llvm-${PV}.src.tar.gz" SRC_URI += "file://Remove-error-output-from-configure-if-CFLAGS-is-set-.patch" SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch "meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb new file +24
-0@@ -0,0 +1,24 @@ +require llvm.inc + +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=4c0bc17c954e99fd547528d938832bfa" + +DEPENDS += "zlib" +EXTRA_OECONF += "--enable-zlib" + +SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch " + +SRC_URI[md5sum] = "b98b9495e5655a672d6cb83e1a180f8e" +SRC_URI[sha256sum] = "ab45895f9dcdad1e140a3a79fd709f64b05ad7364e308c0e582c5b02e9cc3153" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[r600] = "--enable-experimental-targets=R600,,," + +PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" + +# Fails to build with thumb-1 (qemuarm) +# | {standard input}: Assembler messages: +# | {standard input}:22: Error: selected processor does not support Thumb mode `stmdb sp!,{r0,r1,r2,r3,lr}' +# | {standard input}:31: Error: lo register required -- `ldmia sp!,{r0,r1,r2,r3,lr}' +# | {standard input}:32: Error: lo register required -- `ldr pc,[sp],#4' +# | make[3]: *** [/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/llvm3.3/3.3-r0/llvm-3.3.build/lib/Target/ARM/Release/ARMJITInfo.o] Error 1 +ARM_INSTRUCTION_SET = "arm"Signature · 7 lines
1.9.3 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 19 lines · Philip Balister
Quoted 18 lines · Martin Jansa
Quoted 9 lines · Philip Balister
From: Philip Balister <[email protected]>
This version builds in parallel with the 3.3 recipe. I had to use the mesa llvmpipe driver, which required updates to llvm and mesa before it worked. With updates, I succesfully used the mesa llvmpipe driver.
* Move the licence file checksum to the version specific part of the recipe
* License changed for 3.7.0 due to year change and adding related software
* llvm source is now compressed with xz not gz.It fails to build on older Ubuntu-12.04 with:
| 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 6 lines
Quoted 2 lines
Shouldn't it check the cross compiler instead of the native one from host? (in this build it was 5.2)
How about disabling the check with the flag the message mentions? We aren't going to use this with any OE that has an older gcc.
Either that or teaching configure script to check GCC from CC variable.
Quoted 95 lines
Philip
Quoted 88 lines
Quoted 85 lines
Signed-off-by Philip Balister <[email protected]>--- meta-oe/recipes-core/llvm/llvm.inc | 3 +-- meta-oe/recipes-core/llvm/llvm3.3_3.3.bb | 4 ++++ meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb | 24 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bbmeta-oe/recipes-core/llvm/llvm.inc +1
-2@@ -23,7 +23,6 @@ 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"@@ -32,7 +31,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"meta-oe/recipes-core/llvm/llvm3.3_3.3.bb +4
-0@@ -1,8 +1,12 @@ require llvm.inc +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=d0a3ef0d3e0e8f5cf59e5ffc273ab1f8" + DEPENDS += "zlib" EXTRA_OECONF += "--enable-zlib" +# Overwrite SRC_URI from include file since older llvm uses .gz compression +SRC_URI = "http://llvm.org/releases/${PV}/llvm-${PV}.src.tar.gz" SRC_URI += "file://Remove-error-output-from-configure-if-CFLAGS-is-set-.patch" SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch "meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb new file +24
-0@@ -0,0 +1,24 @@ +require llvm.inc + +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=4c0bc17c954e99fd547528d938832bfa" + +DEPENDS += "zlib" +EXTRA_OECONF += "--enable-zlib" + +SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch " + +SRC_URI[md5sum] = "b98b9495e5655a672d6cb83e1a180f8e" +SRC_URI[sha256sum] = "ab45895f9dcdad1e140a3a79fd709f64b05ad7364e308c0e582c5b02e9cc3153" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[r600] = "--enable-experimental-targets=R600,,," + +PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" + +# Fails to build with thumb-1 (qemuarm) +# | {standard input}: Assembler messages: +# | {standard input}:22: Error: selected processor does not support Thumb mode `stmdb sp!,{r0,r1,r2,r3,lr}' +# | {standard input}:31: Error: lo register required -- `ldmia sp!,{r0,r1,r2,r3,lr}' +# | {standard input}:32: Error: lo register required -- `ldr pc,[sp],#4' +# | make[3]: *** [/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/llvm3.3/3.3-r0/llvm-3.3.build/lib/Target/ARM/Release/ARMJITInfo.o] Error 1 +ARM_INSTRUCTION_SET = "arm"Signature · 7 lines
1.9.3 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-develSignature · 4 lines
_______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 15 lines
Am 29.10.2015 um 20:14 schrieb Martin Jansa <[email protected]>:
Quoted 9 lines · Philip Balister
From: Philip Balister <[email protected]>
This version builds in parallel with the 3.3 recipe. I had to use the mesa llvmpipe driver, which required updates to llvm and mesa before it worked. With updates, I succesfully used the mesa llvmpipe driver.
* Move the licence file checksum to the version specific part of the recipe
* License changed for 3.7.0 due to year change and adding related software
* llvm source is now compressed with xz not gz.It fails to build on older Ubuntu-12.04 with:
Quoted 8 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.Shouldn't it check the cross compiler instead of the native one from host? (in this build it was 5.2)
Usually some tools run on the host to preprocess input specifically for a distribution might be build using the host compiler.
Either Yocto moves to generate native tools during bootstrapping itself or you have to update :(
Quoted 92 lines
Quoted 84 lines
Signed-off-by Philip Balister <[email protected]>---
meta-oe/recipes-core/llvm/llvm.inc | 3 +-- meta-oe/recipes-core/llvm/llvm3.3_3.3.bb | 4 ++++ meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb | 24 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-)create mode 100644 meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb
meta-oe/recipes-core/llvm/llvm.inc +0
-0@@ -23,7 +23,6 @@ HOMEPAGE = "http://llvm.org" # 3-clause BSD-like # University of Illinois/NCSA Open Source LicenseLICENSE = "NCSA"
-LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=d0a3ef0d3e0e8f5cf59e5ffc273ab1f8"DEPENDS = "libffi libxml2-native llvm-common"
meta-oe/recipes-core/llvm/llvm.inc +0
-0@@ -32,7 +31,7 @@ inherit perlnative pythonnative autotools
LLVM_RELEASE= "${PV}"LLVM_DIR= "llvm${LLVM_RELEASE}"meta-oe/recipes-core/llvm/llvm.inc +1
-1-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"meta-oe/recipes-core/llvm/llvm3.3_3.3.bb +0
-0@@ -1,8 +1,12 @@require llvm.inc
meta-oe/recipes-core/llvm/llvm3.3_3.3.bb +2
-0+LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=d0a3ef0d3e0e8f5cf59e5ffc273ab1f8" +DEPENDS += "zlib"
EXTRA_OECONF+= "--enable-zlib"meta-oe/recipes-core/llvm/llvm3.3_3.3.bb +2
-0+# Overwrite SRC_URI from include file since older llvm uses .gz compression +SRC_URI = "http://llvm.org/releases/${PV}/llvm-${PV}.src.tar.gz"
SRC_URI+= "file://Remove-error-output-from-configure-if-CFLAGS-is-set-.patch"SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch "
meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb new file +24
-0@@ -0,0 +1,24 @@ +require llvm.inc + +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=4c0bc17c954e99fd547528d938832bfa" + +DEPENDS += "zlib" +EXTRA_OECONF += "--enable-zlib" + +SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch " + +SRC_URI[md5sum] = "b98b9495e5655a672d6cb83e1a180f8e" +SRC_URI[sha256sum] = "ab45895f9dcdad1e140a3a79fd709f64b05ad7364e308c0e582c5b02e9cc3153" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[r600] = "--enable-experimental-targets=R600,,," + +PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" + +# Fails to build with thumb-1 (qemuarm) +# | {standard input}: Assembler messages: +# | {standard input}:22: Error: selected processor does not support Thumb mode `stmdb sp!,{r0,r1,r2,r3,lr}' +# | {standard input}:31: Error: lo register required -- `ldmia sp!,{r0,r1,r2,r3,lr}' +# | {standard input}:32: Error: lo register required -- `ldr pc,[sp],#4' +# | make[3]: *** [/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/llvm3.3/3.3-r0/llvm-3.3.build/lib/Target/ARM/Release/ARMJITInfo.o] Error 1 +ARM_INSTRUCTION_SET = "arm"Signature · 7 lines
1.9.3 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-develSignature · 6 lines
Martin 'JaMa' Jansa jabber: [email protected] -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Jens Rehsack - [email protected]
Quoted 21 lines · Jens Rehsack
Quoted 21 lines
Am 29.10.2015 um 20:14 schrieb Martin Jansa <[email protected]>:
Quoted 9 lines · Philip Balister
From: Philip Balister <[email protected]>
This version builds in parallel with the 3.3 recipe. I had to use the mesa llvmpipe driver, which required updates to llvm and mesa before it worked. With updates, I succesfully used the mesa llvmpipe driver.
* Move the licence file checksum to the version specific part of the recipe
* License changed for 3.7.0 due to year change and adding related software
* llvm source is now compressed with xz not gz.It fails to build on older Ubuntu-12.04 with:
| 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 8 lines
Quoted 2 lines
Shouldn't it check the cross compiler instead of the native one from host? (in this build it was 5.2)
Usually some tools run on the host to preprocess input specifically for a distribution might be build using the host compiler.
Either Yocto moves to generate native tools during bootstrapping itself or you have to update :(
In this case, it is testing the host compiler. But we are sure it uses the cross compiler OE built, so we can disable the check.
The alternative is to fix the configure test, but many times this ends up being patch it out since m4 can make your eyes bleed.
Philip
Quoted 94 lines
Quoted 93 lines
Quoted 85 lines
Signed-off-by Philip Balister <[email protected]>---
meta-oe/recipes-core/llvm/llvm.inc | 3 +-- meta-oe/recipes-core/llvm/llvm3.3_3.3.bb | 4 ++++ meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb | 24 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-)create mode 100644 meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb
meta-oe/recipes-core/llvm/llvm.inc +0
-0@@ -23,7 +23,6 @@ HOMEPAGE = "http://llvm.org" # 3-clause BSD-like # University of Illinois/NCSA Open Source LicenseLICENSE = "NCSA"
-LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=d0a3ef0d3e0e8f5cf59e5ffc273ab1f8"DEPENDS = "libffi libxml2-native llvm-common"
meta-oe/recipes-core/llvm/llvm.inc +0
-0@@ -32,7 +31,7 @@ inherit perlnative pythonnative autotools
LLVM_RELEASE= "${PV}"LLVM_DIR= "llvm${LLVM_RELEASE}"meta-oe/recipes-core/llvm/llvm.inc +1
-1-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"meta-oe/recipes-core/llvm/llvm3.3_3.3.bb +0
-0@@ -1,8 +1,12 @@require llvm.inc
meta-oe/recipes-core/llvm/llvm3.3_3.3.bb +2
-0+LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=d0a3ef0d3e0e8f5cf59e5ffc273ab1f8" +DEPENDS += "zlib"
EXTRA_OECONF+= "--enable-zlib"meta-oe/recipes-core/llvm/llvm3.3_3.3.bb +2
-0+# Overwrite SRC_URI from include file since older llvm uses .gz compression +SRC_URI = "http://llvm.org/releases/${PV}/llvm-${PV}.src.tar.gz"
SRC_URI+= "file://Remove-error-output-from-configure-if-CFLAGS-is-set-.patch"SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch "
meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb new file +24
-0@@ -0,0 +1,24 @@ +require llvm.inc + +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=4c0bc17c954e99fd547528d938832bfa" + +DEPENDS += "zlib" +EXTRA_OECONF += "--enable-zlib" + +SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch " + +SRC_URI[md5sum] = "b98b9495e5655a672d6cb83e1a180f8e" +SRC_URI[sha256sum] = "ab45895f9dcdad1e140a3a79fd709f64b05ad7364e308c0e582c5b02e9cc3153" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[r600] = "--enable-experimental-targets=R600,,," + +PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" + +# Fails to build with thumb-1 (qemuarm) +# | {standard input}: Assembler messages: +# | {standard input}:22: Error: selected processor does not support Thumb mode `stmdb sp!,{r0,r1,r2,r3,lr}' +# | {standard input}:31: Error: lo register required -- `ldmia sp!,{r0,r1,r2,r3,lr}' +# | {standard input}:32: Error: lo register required -- `ldr pc,[sp],#4' +# | make[3]: *** [/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/llvm3.3/3.3-r0/llvm-3.3.build/lib/Target/ARM/Release/ARMJITInfo.o] Error 1 +ARM_INSTRUCTION_SET = "arm"Signature · 7 lines
1.9.3 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-develSignature · 6 lines
Martin 'JaMa' Jansa jabber: [email protected] -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel