From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by mail.openembedded.org (Postfix) with ESMTP id 1C51D75A31 for ; Tue, 3 Nov 2015 14:15:41 +0000 (UTC) Received: by wmff134 with SMTP id f134so16018219wmf.0 for ; Tue, 03 Nov 2015 06:15:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=oOkkHZZZsw5GbSoqe9VDU9nq/lwt6qxd20CenGDZC/U=; b=VGgU/z3+C3rO5F2WW8xoQwP+QP+NXtHGrHKFxArra3Z9llNIKpuO3OomFgjbhxVRjq dfPt6e+xwxUgScSp7JqXSrSEQ6x8AXz/Ww8vZDfnOORvTs4PkAtqyRvCiRM3w+F1cHSa vf05QQr+ubFNs7DYEzt4TqeFmLyvnKCASoJYKjQh3YOa/zHcisPkYdNy06LH+7EHzslT iZnZ7bHkfrzHY/90NjDmg4EDdOWEOqHOOGKGQuWuspMXlECZpvVqNwihzWovzfkq3Xxv pOlm3f8q4MgpayexuTwtiIrqJPLFVkGRVIirSXNi0FxO2oUKcbDDTkiOW/p+BxJjAs6Z H2hQ== X-Received: by 10.28.217.18 with SMTP id q18mr20168329wmg.10.1446560141983; Tue, 03 Nov 2015 06:15:41 -0800 (PST) Received: from localhost (ip-86-49-34-37.net.upcbroadband.cz. [86.49.34.37]) by smtp.gmail.com with ESMTPSA id v9sm27734948wjv.45.2015.11.03.06.15.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Nov 2015 06:15:41 -0800 (PST) From: Martin Jansa X-Google-Original-From: Martin Jansa Date: Tue, 3 Nov 2015 15:15:46 +0100 To: openembedded-devel@lists.openembedded.org Message-ID: <20151103141546.GA2556@jama> References: <1446228808-18756-1-git-send-email-philip@balister.org> <20151030195137.GD2566@jama> <5633CB87.1070903@balister.org> MIME-Version: 1.0 In-Reply-To: <5633CB87.1070903@balister.org> User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [meta-oe][PATCHv2] llvm: Add recipe for llvm-3.7.0. X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2015 14:15:42 -0000 X-Groupsio-MsgNum: 58263 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 > >> > >> 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 sof= tware > >> * llvm source is now compressed with xz not gz. > >> * Disable compiler version check since it checks the host compiler. > >=20 > > I made one more change in master-next already, I've renamed it to=20 > > llvm3.7_3.7.0.bb > >=20 > > 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). > >=20 > > OK? >=20 > 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. >=20 > 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/ >=20 > Philip >=20 > >=20 > >> Signed-off-by: Philip Balister > >> --- > >> 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 =3D "http://llvm.org" > >> # 3-clause BSD-like > >> # University of Illinois/NCSA Open Source License > >> LICENSE =3D "NCSA" > >> -LIC_FILES_CHKSUM =3D "file://LICENSE.TXT;md5=3Dd0a3ef0d3e0e8f5cf59e5f= fc273ab1f8" > >> =20 > >> DEPENDS =3D "libffi libxml2-native llvm-common" > >> =20 > >> @@ -32,7 +31,7 @@ inherit perlnative pythonnative autotools > >> LLVM_RELEASE =3D "${PV}" > >> LLVM_DIR =3D "llvm${LLVM_RELEASE}" > >> =20 > >> -SRC_URI =3D "http://llvm.org/releases/${PV}/llvm-${PV}.src.tar.gz" > >> +SRC_URI =3D "http://llvm.org/releases/${PV}/llvm-${PV}.src.tar.xz" > >> S =3D "${WORKDIR}/llvm-${PV}.src" > >> =20 > >> LLVM_BUILD_DIR =3D "${WORKDIR}/llvm-${PV}.build" > >> @@ -46,7 +45,8 @@ EXTRA_OECONF +=3D "--disable-assertions \ > >> --enable-libffi \ > >> --enable-optimized \ > >> --enable-shared \ > >> - --enable-targets=3Dhost-only" > >> + --enable-targets=3Dhost-only \ > >> + --disable-compiler-version-checks" > >> EXTRA_OEMAKE +=3D "REQUIRES_RTTI=3D1 VERBOSE=3D1" > >> =20 > >> do_configure_prepend() { > >> diff --git a/meta-oe/recipes-core/llvm/llvm3.3_3.3.bb b/meta-oe/recipe= s-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 > >> =20 > >> +LIC_FILES_CHKSUM =3D "file://LICENSE.TXT;md5=3Dd0a3ef0d3e0e8f5cf59e5f= fc273ab1f8" > >> + > >> DEPENDS +=3D "zlib" > >> EXTRA_OECONF +=3D "--enable-zlib" > >> =20 > >> +# Overwrite SRC_URI from include file since older llvm uses .gz compr= ession > >> +SRC_URI =3D "http://llvm.org/releases/${PV}/llvm-${PV}.src.tar.gz" > >> SRC_URI +=3D "file://Remove-error-output-from-configure-if-CFLAGS-is-= set-.patch" > >> =20 > >> SRC_URI_append_libc-uclibc =3D " file://arm_fenv_uclibc.patch " > >> diff --git a/meta-oe/recipes-core/llvm/llvm3.7.0_3.7.0.bb b/meta-oe/re= cipes-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 =3D "file://LICENSE.TXT;md5=3D4c0bc17c954e99fd547528= d938832bfa" > >> + > >> +DEPENDS +=3D "zlib" > >> +EXTRA_OECONF +=3D "--enable-zlib" > >> + > >> +SRC_URI_append_libc-uclibc =3D " file://arm_fenv_uclibc.patch " > >> + > >> +SRC_URI[md5sum] =3D "b98b9495e5655a672d6cb83e1a180f8e" > >> +SRC_URI[sha256sum] =3D "ab45895f9dcdad1e140a3a79fd709f64b05ad7364e308= c0e582c5b02e9cc3153" > >> + > >> +PACKAGECONFIG ??=3D "" > >> +PACKAGECONFIG[r600] =3D "--enable-experimental-targets=3DR600,,," > >> + > >> +PACKAGE_DEBUG_SPLIT_STYLE =3D "debug-without-src" > >> + > >> +# Fails to build with thumb-1 (qemuarm) > >> +# | {standard input}: Assembler messages: > >> +# | {standard input}:22: Error: selected processor does not support T= humb mode `stmdb sp!,{r0,r1,r2,r3,lr}' > >> +# | {standard input}:31: Error: lo register required -- `ldmia sp!,{r= 0,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/armv= 5te-oe-linux-gnueabi/llvm3.3/3.3-r0/llvm-3.3.build/lib/Target/ARM/Release/A= RMJITInfo.o] Error 1 > >> +ARM_INSTRUCTION_SET =3D "arm" > >> --=20 > >> 1.9.3 > >> > >> --=20 > >> _______________________________________________ > >> Openembedded-devel mailing list > >> Openembedded-devel@lists.openembedded.org > >> http://lists.openembedded.org/mailman/listinfo/openembedded-devel > >=20 > >=20 > >=20 >=20 > --=20 > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-devel --=20 Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com --opJtzjQTFsWo+cga Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlY4wY8ACgkQN1Ujt2V2gBzbMgCfRZRnX5uoWjjMK32QgYjhjlir dKoAn2EAVRIGhWNuFF3LNT5/CloGbsrP =3i7x -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga--