* [meta-oe][PATCHv2] llvm: Add recipe for llvm-3.7.0. @ 2015-10-30 18:13 Philip Balister 2015-10-30 19:51 ` Martin Jansa 0 siblings, 1 reply; 6+ messages in thread From: Philip Balister @ 2015-10-30 18:13 UTC (permalink / raw) To: openembedded-devel; +Cc: Philip Balister From: Philip Balister <philip@opensdr.com> 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. * Disable compiler version check since it checks the host compiler. Signed-off-by: Philip Balister <philip@opensdr.com> --- meta-oe/recipes-core/llvm/llvm.inc | 6 +++--- 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, 31 insertions(+), 3 deletions(-) create mode 100644 meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core/llvm/llvm.inc index 04c87aa..c9a4ce4 100644 --- a/meta-oe/recipes-core/llvm/llvm.inc +++ b/meta-oe/recipes-core/llvm/llvm.inc @@ -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" @@ -46,7 +45,8 @@ EXTRA_OECONF += "--disable-assertions \ --enable-libffi \ --enable-optimized \ --enable-shared \ - --enable-targets=host-only" + --enable-targets=host-only \ + --disable-compiler-version-checks" EXTRA_OEMAKE += "REQUIRES_RTTI=1 VERBOSE=1" do_configure_prepend() { diff --git a/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb b/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb index 60a2221..f1562f6 100644 --- a/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb +++ b/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb @@ -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 " diff --git a/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb b/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb new file mode 100644 index 0000000..813b185 --- /dev/null +++ b/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb @@ -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" -- 1.9.3 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [meta-oe][PATCHv2] llvm: Add recipe for llvm-3.7.0. 2015-10-30 18:13 [meta-oe][PATCHv2] llvm: Add recipe for llvm-3.7.0 Philip Balister @ 2015-10-30 19:51 ` Martin Jansa 2015-10-30 19:56 ` Philip Balister 0 siblings, 1 reply; 6+ messages in thread From: Martin Jansa @ 2015-10-30 19:51 UTC (permalink / raw) To: openembedded-devel; +Cc: Philip Balister [-- Attachment #1: Type: text/plain, Size: 4984 bytes --] On Fri, Oct 30, 2015 at 11:13:28AM -0700, Philip Balister wrote: > From: Philip Balister <philip@opensdr.com> > > 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. > * Disable compiler version check since it checks the host compiler. I made one more change in master-next already, I've renamed it to llvm3.7_3.7.0.bb I don't know if there will be 3.7.1 release, but I would assume that 3.7 series will be ABI compatible, so users of this won't need to update DEPENDS when switching from 3.7.0 to 3.7.1 (if that exists). OK? > Signed-off-by: Philip Balister <philip@opensdr.com> > --- > meta-oe/recipes-core/llvm/llvm.inc | 6 +++--- > 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, 31 insertions(+), 3 deletions(-) > create mode 100644 meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb > > diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core/llvm/llvm.inc > index 04c87aa..c9a4ce4 100644 > --- a/meta-oe/recipes-core/llvm/llvm.inc > +++ b/meta-oe/recipes-core/llvm/llvm.inc > @@ -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" > @@ -46,7 +45,8 @@ EXTRA_OECONF += "--disable-assertions \ > --enable-libffi \ > --enable-optimized \ > --enable-shared \ > - --enable-targets=host-only" > + --enable-targets=host-only \ > + --disable-compiler-version-checks" > EXTRA_OEMAKE += "REQUIRES_RTTI=1 VERBOSE=1" > > do_configure_prepend() { > diff --git a/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb b/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb > index 60a2221..f1562f6 100644 > --- a/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb > +++ b/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb > @@ -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 " > diff --git a/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb b/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb > new file mode 100644 > index 0000000..813b185 > --- /dev/null > +++ b/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb > @@ -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" > -- > 1.9.3 > > -- > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-devel -- Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 188 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [meta-oe][PATCHv2] llvm: Add recipe for llvm-3.7.0. 2015-10-30 19:51 ` Martin Jansa @ 2015-10-30 19:56 ` Philip Balister 2015-11-03 14:15 ` Martin Jansa 0 siblings, 1 reply; 6+ messages in thread From: Philip Balister @ 2015-10-30 19:56 UTC (permalink / raw) To: openembedded-devel On 10/30/2015 12:51 PM, Martin Jansa wrote: > On Fri, Oct 30, 2015 at 11:13:28AM -0700, Philip Balister wrote: >> From: Philip Balister <philip@opensdr.com> >> >> 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. >> * Disable compiler version check since it checks the host compiler. > > I made one more change in master-next already, I've renamed it to > llvm3.7_3.7.0.bb > > I don't know if there will be 3.7.1 release, but I would assume that 3.7 > series will be ABI compatible, so users of this won't need to update > DEPENDS when switching from 3.7.0 to 3.7.1 (if that exists). > > OK? I tried doing this as 3.7, but for some reason (possibly installing something that required me to set the LLVM_VERSION to the full version, not 3.7) led me to version it this way. Check what gets installed as llvmconfig.x.y.x. Philip > >> Signed-off-by: Philip Balister <philip@opensdr.com> >> --- >> meta-oe/recipes-core/llvm/llvm.inc | 6 +++--- >> 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, 31 insertions(+), 3 deletions(-) >> create mode 100644 meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb >> >> diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core/llvm/llvm.inc >> index 04c87aa..c9a4ce4 100644 >> --- a/meta-oe/recipes-core/llvm/llvm.inc >> +++ b/meta-oe/recipes-core/llvm/llvm.inc >> @@ -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" >> @@ -46,7 +45,8 @@ EXTRA_OECONF += "--disable-assertions \ >> --enable-libffi \ >> --enable-optimized \ >> --enable-shared \ >> - --enable-targets=host-only" >> + --enable-targets=host-only \ >> + --disable-compiler-version-checks" >> EXTRA_OEMAKE += "REQUIRES_RTTI=1 VERBOSE=1" >> >> do_configure_prepend() { >> diff --git a/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb b/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb >> index 60a2221..f1562f6 100644 >> --- a/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb >> +++ b/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb >> @@ -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 " >> diff --git a/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb b/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb >> new file mode 100644 >> index 0000000..813b185 >> --- /dev/null >> +++ b/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb >> @@ -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" >> -- >> 1.9.3 >> >> -- >> _______________________________________________ >> Openembedded-devel mailing list >> Openembedded-devel@lists.openembedded.org >> http://lists.openembedded.org/mailman/listinfo/openembedded-devel > > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [meta-oe][PATCHv2] llvm: Add recipe for llvm-3.7.0. 2015-10-30 19:56 ` Philip Balister @ 2015-11-03 14:15 ` Martin Jansa 2015-11-03 17:56 ` Philip Balister 0 siblings, 1 reply; 6+ messages in thread From: Martin Jansa @ 2015-11-03 14:15 UTC (permalink / raw) To: openembedded-devel [-- Attachment #1: Type: text/plain, Size: 6120 bytes --] On Fri, Oct 30, 2015 at 12:56:55PM -0700, Philip Balister wrote: > On 10/30/2015 12:51 PM, Martin Jansa wrote: > > On Fri, Oct 30, 2015 at 11:13:28AM -0700, Philip Balister wrote: > >> From: Philip Balister <philip@opensdr.com> > >> > >> 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. > >> * Disable compiler version check since it checks the host compiler. > > > > I made one more change in master-next already, I've renamed it to > > llvm3.7_3.7.0.bb > > > > I don't know if there will be 3.7.1 release, but I would assume that 3.7 > > series will be ABI compatible, so users of this won't need to update > > DEPENDS when switching from 3.7.0 to 3.7.1 (if that exists). > > > > OK? > > I tried doing this as 3.7, but for some reason (possibly installing > something that required me to set the LLVM_VERSION to the full version, > not 3.7) led me to version it this way. > > Check what gets installed as llvmconfig.x.y.x. OK, I won't rename it then :). The --disable-compiler-version-checks in EXTRA_OECONF isn't passed to configure: http://errors.yoctoproject.org/Errors/Details/21293/ > > Philip > > > > >> Signed-off-by: Philip Balister <philip@opensdr.com> > >> --- > >> meta-oe/recipes-core/llvm/llvm.inc | 6 +++--- > >> 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, 31 insertions(+), 3 deletions(-) > >> create mode 100644 meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb > >> > >> diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core/llvm/llvm.inc > >> index 04c87aa..c9a4ce4 100644 > >> --- a/meta-oe/recipes-core/llvm/llvm.inc > >> +++ b/meta-oe/recipes-core/llvm/llvm.inc > >> @@ -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" > >> @@ -46,7 +45,8 @@ EXTRA_OECONF += "--disable-assertions \ > >> --enable-libffi \ > >> --enable-optimized \ > >> --enable-shared \ > >> - --enable-targets=host-only" > >> + --enable-targets=host-only \ > >> + --disable-compiler-version-checks" > >> EXTRA_OEMAKE += "REQUIRES_RTTI=1 VERBOSE=1" > >> > >> do_configure_prepend() { > >> diff --git a/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb b/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb > >> index 60a2221..f1562f6 100644 > >> --- a/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb > >> +++ b/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb > >> @@ -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 " > >> diff --git a/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb b/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb > >> new file mode 100644 > >> index 0000000..813b185 > >> --- /dev/null > >> +++ b/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb > >> @@ -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" > >> -- > >> 1.9.3 > >> > >> -- > >> _______________________________________________ > >> Openembedded-devel mailing list > >> Openembedded-devel@lists.openembedded.org > >> http://lists.openembedded.org/mailman/listinfo/openembedded-devel > > > > > > > > -- > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-devel -- Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 188 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [meta-oe][PATCHv2] llvm: Add recipe for llvm-3.7.0. 2015-11-03 14:15 ` Martin Jansa @ 2015-11-03 17:56 ` Philip Balister 2015-11-03 19:29 ` Khem Raj 0 siblings, 1 reply; 6+ messages in thread From: Philip Balister @ 2015-11-03 17:56 UTC (permalink / raw) To: openembedded-devel [-- Attachment #1: Type: text/plain, Size: 6271 bytes --] On 11/03/2015 09:15 AM, Martin Jansa wrote: > On Fri, Oct 30, 2015 at 12:56:55PM -0700, Philip Balister wrote: >> On 10/30/2015 12:51 PM, Martin Jansa wrote: >>> On Fri, Oct 30, 2015 at 11:13:28AM -0700, Philip Balister wrote: >>>> From: Philip Balister <philip@opensdr.com> >>>> >>>> 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. >>>> * Disable compiler version check since it checks the host compiler. >>> >>> I made one more change in master-next already, I've renamed it to >>> llvm3.7_3.7.0.bb >>> >>> I don't know if there will be 3.7.1 release, but I would assume that 3.7 >>> series will be ABI compatible, so users of this won't need to update >>> DEPENDS when switching from 3.7.0 to 3.7.1 (if that exists). >>> >>> OK? >> >> I tried doing this as 3.7, but for some reason (possibly installing >> something that required me to set the LLVM_VERSION to the full version, >> not 3.7) led me to version it this way. >> >> Check what gets installed as llvmconfig.x.y.x. > > OK, I won't rename it then :). > > The --disable-compiler-version-checks in EXTRA_OECONF isn't passed to > configure: > http://errors.yoctoproject.org/Errors/Details/21293/ That is the log from do_compile. Apparently configure is getting re-run with different arguments. Anyone have ideas? Philip > > >> >> Philip >> >>> >>>> Signed-off-by: Philip Balister <philip@opensdr.com> >>>> --- >>>> meta-oe/recipes-core/llvm/llvm.inc | 6 +++--- >>>> 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, 31 insertions(+), 3 deletions(-) >>>> create mode 100644 meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb >>>> >>>> diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core/llvm/llvm.inc >>>> index 04c87aa..c9a4ce4 100644 >>>> --- a/meta-oe/recipes-core/llvm/llvm.inc >>>> +++ b/meta-oe/recipes-core/llvm/llvm.inc >>>> @@ -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" >>>> @@ -46,7 +45,8 @@ EXTRA_OECONF += "--disable-assertions \ >>>> --enable-libffi \ >>>> --enable-optimized \ >>>> --enable-shared \ >>>> - --enable-targets=host-only" >>>> + --enable-targets=host-only \ >>>> + --disable-compiler-version-checks" >>>> EXTRA_OEMAKE += "REQUIRES_RTTI=1 VERBOSE=1" >>>> >>>> do_configure_prepend() { >>>> diff --git a/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb b/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb >>>> index 60a2221..f1562f6 100644 >>>> --- a/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb >>>> +++ b/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb >>>> @@ -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 " >>>> diff --git a/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb b/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb >>>> new file mode 100644 >>>> index 0000000..813b185 >>>> --- /dev/null >>>> +++ b/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb >>>> @@ -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" >>>> -- >>>> 1.9.3 >>>> >>>> -- >>>> _______________________________________________ >>>> Openembedded-devel mailing list >>>> Openembedded-devel@lists.openembedded.org >>>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel >>> >>> >>> >> >> -- >> _______________________________________________ >> Openembedded-devel mailing list >> Openembedded-devel@lists.openembedded.org >> http://lists.openembedded.org/mailman/listinfo/openembedded-devel > > > [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 484 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [meta-oe][PATCHv2] llvm: Add recipe for llvm-3.7.0. 2015-11-03 17:56 ` Philip Balister @ 2015-11-03 19:29 ` Khem Raj 0 siblings, 0 replies; 6+ messages in thread From: Khem Raj @ 2015-11-03 19:29 UTC (permalink / raw) To: Martin Jansa [-- Attachment #1: Type: text/plain, Size: 461 bytes --] > On Nov 3, 2015, at 9:56 AM, Philip Balister <philip@balister.org> wrote: > >> The --disable-compiler-version-checks in EXTRA_OECONF isn't passed to >> configure: >> http://errors.yoctoproject.org/Errors/Details/21293/ > > That is the log from do_compile. Apparently configure is getting re-run > with different arguments. Anyone have ideas? > you need to show log.do_configure or run.do_configure to make sure its not happening > Philip [-- Attachment #2: Message signed with OpenPGP using GPGMail --] [-- Type: application/pgp-signature, Size: 211 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-11-03 19:29 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-10-30 18:13 [meta-oe][PATCHv2] llvm: Add recipe for llvm-3.7.0 Philip Balister 2015-10-30 19:51 ` Martin Jansa 2015-10-30 19:56 ` Philip Balister 2015-11-03 14:15 ` Martin Jansa 2015-11-03 17:56 ` Philip Balister 2015-11-03 19:29 ` Khem Raj
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.