From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by mail.openembedded.org (Postfix) with ESMTP id 59FD66FF9F for ; Wed, 9 Mar 2016 23:49:14 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id p65so7062247wmp.0 for ; Wed, 09 Mar 2016 15:49:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=A7hVLVls36zL73CFmdNNrzyyNYdbHmBaYjdW1KQdwAw=; b=JCXA4oU1Pfn6DBw0Wpt/1JSfuWFV0wyc16f7akRxei5b1O2hhJbYOzTuxs3z0c1x2S Kw9aezrjhYKySAWDGl86EGf06AtWCDBZ6L1UNlLtQxVKaspJjD69gIoMOAy3MZ9/bTJk GMk48QPbxw+akqIUkuNf5S5iEqePxYNCUo6XY1y7ckQ7zYIqChtERQqpiUGzunZIZJa/ UBkQHWd8u1E1IBJ73XyjqyuNpAB+bkZJs48i7oovHsenfMXHCHZsLEAAP31ZtXqD+hHg 7NO2OcYWDcx7qFMaxpQutx1j/prgLLFWOneUzEmuTVzajA029lesHE34WGmoFIGXD9iJ wV3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=A7hVLVls36zL73CFmdNNrzyyNYdbHmBaYjdW1KQdwAw=; b=bjnlJLIkxJEbEQV3STDYAxdycnGYLbgYLZTO/epeZtjoR1o5Sd/5vxPqJUs5P1WVhA OcpYokOgCtdsEWfQjuHKa1tnO55FBQAuWHoAZe2ZeMyqJrnIQhQOVbJQugEkTwyuLM37 8VNLRRqASx87ttnyLUZFl+LmBM0zFaKreSqlO9fZgJAiljMdsMI5uhgO49Gk5a0DtOHq x9UaXgT/LSzwZ6erEodA8HynU3xsW4XdHjeihK/6acOWYlVdjIXmfGRmwCEZsheq1xDu 6KVsv9iDxmqqz2VzPoMX/W8AmR5zRU0V45icblN8v8QDPQSyz9TUcQbOEmFBSkNnzFIF XAXg== X-Gm-Message-State: AD7BkJJQN+Cqp2YGsoXFqLYvdCANJF+140NbZbrDemo07SlDjX0L5FBgcycPTbFzQQLbrw== X-Received: by 10.28.125.195 with SMTP id y186mr313099wmc.79.1457567355072; Wed, 09 Mar 2016 15:49:15 -0800 (PST) Received: from localhost (ip-86-49-34-37.net.upcbroadband.cz. [86.49.34.37]) by smtp.gmail.com with ESMTPSA id gk4sm857805wjd.7.2016.03.09.15.49.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Mar 2016 15:49:13 -0800 (PST) From: Martin Jansa X-Google-Original-From: Martin Jansa Date: Thu, 10 Mar 2016 00:52:07 +0100 To: Richard Purdie Message-ID: <20160309235207.GO2542@jama> References: <18448427.V3ACvxT67R@rjs-zotac.streifs.net> <20160309225058.GM2542@jama> <1457564551.2804.199.camel@linuxfoundation.org> MIME-Version: 1.0 In-Reply-To: <1457564551.2804.199.camel@linuxfoundation.org> User-Agent: Mutt/1.5.24 (2015-08-30) Cc: "Peter A. Bigot" , "yocto@yoctoproject.org" , openembedded-core@lists.openembedded.org, Rudolf J Streif Subject: Re: Wrong sstate signatures for cross toolchain Was: [yocto] Building gdb-7.10 for arm with master X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2016 23:49:17 -0000 X-Groupsio-MsgNum: 79355 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FcSpk3Icpd/Pbul4" Content-Disposition: inline --FcSpk3Icpd/Pbul4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 09, 2016 at 11:02:31PM +0000, Richard Purdie wrote: > On Wed, 2016-03-09 at 23:50 +0100, Martin Jansa wrote: > > What's even more interesting is that even gcc-cross-initial has > > different signatures for 2 ARM MACHINEs with different DEFAULTTUNES > >=20 > > OE qemuarm7@ ~/build/oe-core $ grep ^DEFAULTTUNE=3D env.gdb-cross-arm* > > env.gdb-cross-arm:DEFAULTTUNE=3D"armv5te" > > env.gdb-cross-arm7:DEFAULTTUNE=3D"armv7a-neon" > >=20 > > OE qemuarm7@ ~/build/oe-core $ ls tmp-glibc/sstate > > -diff/1457556601/*/*/*gcc-cross-initial*/*do_configure* > > tmp-glibc/sstate-diff/1457556601/qemuarm/x86_64-linux/gcc-cross > > -initial-arm/5.3.0 > > -r0.do_configure.sigdata.e54e7a04acf1029cc37463114c7e4dba > > tmp-glibc/sstate-diff/1457556601/qemuarm7/x86_64-linux/gcc-cross > > -initial-arm/5.3.0 > > -r0.do_configure.sigdata.3496e3dde08a49b14462741cc6f8d239 > > OE qemuarm7@ ~/build/oe-core $ bitbake-diffsigs tmp-glibc/sstate > > -diff/1457556601/*/*/*gcc-cross-initial*/*do_configure* > > basehash changed from 5848199c69eee0db746de21c5458c13d to > > 673cd8d19bc4cbea132900a670593df6 > > Variable EXTRA_OECONF value changed from '--with-newlib --without > > -headers --disable-shared --disable-threads --disable-multilib - > > -disable-__cxa_atexit --enable-languages=3Dc --program > > -prefix=3D${TARGET_PREFIX} --with-sysroot=3D/not/exist --with-build > > -sysroot=3D${GCCCROSS_BUILDSYSROOT} ${EXTRA_OECONF_INITIAL}=20 > > ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--with > > -ld=3D${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)} > > ${EXTRA_OECONF_GCC_FLOAT} ${@get_gcc_ppc_plt_settings(bb, d)} --with > > -native-system-header-dir=3D${SYSTEMHEADERS}${DISABLE_STATIC}=20 > > ${@gettext_oeconf(d)} > > DISTRO_FEATURES{ld-is-gold} =3D Unset' to '--with-newlib --without > > -headers --disable-shared --disable-threads --disable-multilib - > > -disable-__cxa_atexit --enable-languages=3Dc --program > > -prefix=3D${TARGET_PREFIX} --with-sysroot=3D/not/exist --with-build > > -sysroot=3D${GCCCROSS_BUILDSYSROOT} ${EXTRA_OECONF_INITIAL}=20 > > ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--with > > -ld=3D${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)} > > ${EXTRA_OECONF_GCC_FLOAT} ${@get_gcc_ppc_plt_settings(bb, d)} --with > > -native-system-header-dir=3D${SYSTEMHEADERS}${DISABLE_STATIC}=20 > > ${@gettext_oeconf(d)} --with-arch=3Darmv7-a > > DISTRO_FEATURES{ld-is-gold} =3D Unset' >=20 > To answer my own question, it looks like: >=20 > gcc-configure-common.inc:EXTRA_OECONF_append_armv6 =3D " --with-arch=3Dar= mv6" > gcc-configure-common.inc:EXTRA_OECONF_append_armv7a =3D " --with-arch=3Da= rmv7-a" > gcc-configure-common.inc:EXTRA_OECONF_append_armv7ve =3D " --with-arch=3D= armv7-a" >=20 > which effectively comes from: >=20 > http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/recipes-devtools/gc= c/gcc-configure-common.inc?id=3Dc0a071e16ec04f485f06eece5b807e5afbe1c1f1 >=20 > The concept of having one gcc for each arch precludes such changes :(. >=20 > I believe these overrides need to move to the gcc-target.inc file. Reverting this change in Dizzy based build fixes the signatures for gcc-cross(-initial)-arm for gdb-cross-arm, there is still datadir -> TUNE_PKGARCH dependency from e= ven older change: OE qemuarm7@ ~/build/oe-core/openembedded-core $ git show -1 3e87aba1 commit 3e87aba1ee2ca0e39ba66fb7cba52e48df499c23 Author: Phil Blundell Date: Wed Apr 24 16:15:54 2013 +0100 gdb-cross: Adjust ${datadir} to avoid file conflicts in sysroot =20 +datadir .=3D "/gdb-${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" Reverting this change fixes gdb-cross-arm signatures. Will try what happens when I revert this in master and move --with-arch options to gcc-target.inc only. --=20 Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com --FcSpk3Icpd/Pbul4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlbgtyYACgkQN1Ujt2V2gBzKfQCfTm7ZOsAqJ1JFG5xO+9tEfl/d 3FMAoKTXaiNiXNnN6/J1sLNpA9z0QVjW =Fmu8 -----END PGP SIGNATURE----- --FcSpk3Icpd/Pbul4--