From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by mail.openembedded.org (Postfix) with ESMTP id 2B9EA755F4 for ; Thu, 29 Oct 2015 21:21:56 +0000 (UTC) Received: by wikq8 with SMTP id q8so295985490wik.1 for ; Thu, 29 Oct 2015 14:21:56 -0700 (PDT) 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=XMxr872UBKEuCRAg1IqR1Vi32+tQsMUsEFvzoKqZ3HA=; b=pN60fB9Fc0MGZgRrQVFwm4pREBwGu7Rez/kNJiRnga1IjbqcUfNZ61neXjJHnJyH22 NZOVhrrWhWXEdpMPFCft0d7BABbsFkXPCCfk4lQgXh9gppJjIpzd3GyKR5wLq+14ONS3 X9hrepQNDGP+Q0IIHP0z77jznWK6m0hxu54nBYEPfQQW8KLDf2j04qDrwc3WNMLhrPdD tFKRCIXlBQzUPac8wZAMAD9QY6wnBuQf57wr1R4iPOh4wP8kjiH9Chm4WJlylC6c+Ki+ s6YbEghU/xpQbtX/XguCIX3WAeJ09zFIzxEJ/x4fXzZt0+KrXiC+nW71XNucD2AA6WVQ jAmQ== X-Received: by 10.194.23.228 with SMTP id p4mr5168061wjf.151.1446153716392; Thu, 29 Oct 2015 14:21:56 -0700 (PDT) Received: from localhost (ip-86-49-34-37.net.upcbroadband.cz. [86.49.34.37]) by smtp.gmail.com with ESMTPSA id c1sm3713333wjf.19.2015.10.29.14.21.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Oct 2015 14:21:54 -0700 (PDT) From: Martin Jansa X-Google-Original-From: Martin Jansa Date: Thu, 29 Oct 2015 22:22:23 +0100 To: openembedded-devel@lists.openembedded.org Message-ID: <20151029212223.GD2564@jama> References: <1445901886-17887-1-git-send-email-philip@blister.org> <20151029191455.GC2564@jama> <56328009.30808@balister.org> MIME-Version: 1.0 In-Reply-To: <56328009.30808@balister.org> User-Agent: Mutt/1.5.24 (2015-08-30) Subject: Re: [meta-oe][PATCH] 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: Thu, 29 Oct 2015 21:21:59 -0000 X-Groupsio-MsgNum: 58168 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qrgsu6vtpU/OV/zm" Content-Disposition: inline --Qrgsu6vtpU/OV/zm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 29, 2015 at 01:22:33PM -0700, Philip Balister wrote: > On 10/29/2015 12:14 PM, Martin Jansa wrote: > > On Mon, Oct 26, 2015 at 04:24:46PM -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. > >=20 > > 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 configu= re to > > | bypass these sanity checks. > >=20 > > Shouldn't it check the cross compiler instead of the native one from > > host? (in this build it was 5.2) >=20 >=20 > 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. > Philip > >=20 > >> Signed-off-by: Philip Balister > >> --- > >> 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 > >> > >> diff --git a/meta-oe/recipes-core/llvm/llvm.inc b/meta-oe/recipes-core= /llvm/llvm.inc > >> index 04c87aa..7df4f4c 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" > >> 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 --Qrgsu6vtpU/OV/zm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlYyjg8ACgkQN1Ujt2V2gBy/2gCfcMwRJGoK9GWWpBLEMGtA7BPi 9GkAoKvQ/jVy+70vIS8AtLie6yY/xi/S =hcnL -----END PGP SIGNATURE----- --Qrgsu6vtpU/OV/zm--