From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: [PATCH] gnu: cross-gcc-arguments: Disable libitm, libvtv and, libsanitizer. Date: Fri, 24 Jun 2016 11:32:31 +0300 Message-ID: <20160624083231.GA7766@debian-netbook> References: <56C322C4.3040706@gmail.com> <56CC4E79.7030706@gmail.com> <87pouyt3sz.fsf@gnu.org> <57065B8D.5060009@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGMXk-0001Wb-EI for guix-devel@gnu.org; Fri, 24 Jun 2016 04:32:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGMXf-0006h7-DG for guix-devel@gnu.org; Fri, 24 Jun 2016 04:32:51 -0400 Content-Disposition: inline In-Reply-To: <57065B8D.5060009@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Manolis Ragkousis Cc: guix-devel@gnu.org --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 07, 2016 at 04:07:25PM +0300, Manolis Ragkousis wrote: > Hey Ludo, >=20 > I have reproduced the problem on the latest master targeting i686-linux > and arm-linux-gnueabihf. >=20 > The problem is that those libraries will fail to build when glibc is not > present. Also if target os is none, this problem will not appear because > the libs will not get built at all. >=20 > You can reproduce it with ./pre-inst-env guix build -e '((@@(gnu > packages cross-base) cross-gcc) "arm-linux-gnueabihf")' >=20 > This does not happen when targeting mips. >=20 > I have added an explanation to the patch and a link to this thread. >=20 > Manolis This patch was instrumental in building aarch64 bootstrap tarballs. Without it, when building the cross-gcc compiler from x86_64 to aarch64 it would fail to compile when trying to build libitm. Searching around the internet suggested that this was only when building a cross-compiler that targeted C++ and not only C. I understand that it's too late to push this to core-updates, but we should push it to core-updates-next. > From dc8154ef19bc28886f350f42c49fb7995eefcec8 Mon Sep 17 00:00:00 2001 > From: Manolis Ragkousis > Date: Tue, 16 Feb 2016 15:06:33 +0200 > Subject: [PATCH] gnu: cross-gcc-arguments: Disable libitm, libvtv and > libsanitizer. >=20 > * gnu/packages/cross-base.scm (cross-gcc-arguments)[arguments]: Add > "--disable-libitm", "--disable-libvtv" and "--disable-libsanitizer" > when libc is not present. > --- > gnu/packages/cross-base.scm | 8 ++++++++ > 1 file changed, 8 insertions(+) >=20 > diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm > index 8bd599c..bd7a1e7 100644 > --- a/gnu/packages/cross-base.scm > +++ b/gnu/packages/cross-base.scm > @@ -120,6 +120,14 @@ may be either a libc package or #f.)" > "--disable-libquadmath" > "--disable-decimal-float" ;would need libc > "--disable-libcilkrts" > + > + ;; When target is any OS other than 'none= ' these > + ;; libraries will fail if there is no libc > + ;; present. See > + ;; > + "--disable-libitm" > + "--disable-libvtv" > + "--disable-libsanitizer" > ))) > =20 > ,(if libc > --=20 > 2.7.2 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJXbPAcAAoJEPTB05F+rO6T+MQP+wYKnpVoNq+Z/qh3lccz115+ P8UxpukPhcChEU9p0kAm4+gzKTlDJTyYfDrkIZd8m5F95ab0Iv6+dWpenLzIiDXY H0QEOxQq+0eW6ctHe/8/V6Ez2sdzeixzrDX+f4YQ7H72JPr4n4Ao9JzwS4agBAZu lbzSmC2iZJ8L21fC1i7WinX3huO93jCb1+v386tHVx+uMkXO5/igGGc+JHHqH7Y7 OpKLrMAH5yCUk40AOt0LKbBDDXFcV9pEUn5PQeD3iql8div0BY6RVCm9YmWwT8WL Rm5N7/C6n/bLtrNS7XlEt/dJyW4ugZP3BbKDJp/eG1bHyOqJHJ3P1NdRfGDoGQ+6 UD4GYtcDSuEDGQL6433kDXJtEhTduWEIHcGmdYh40u+tZLOZnqyqbt/PXPfOdSj3 jMM+i4VCNV6PCXQP2F0mTVb3yfUvdw8kXHImRioJLfOcnqaF5fLtapJWaqdLMj32 0AYitWPVhIokQc3YqwtT8PIj/2HYpmtahbPBkfj2qmENkk4NXzmL95IjB2kCy2rS jyJ47cnbw27vrsWKFcSnmDmBEWAb5LpZeyqhSPp3TPTTq6lxlkpR5YKSAnFRJvSd 2UCj59tnwlR38mSorBSOr2Kybi/SYb4vxaT7d2VQ/XiiZ5k4HsDPChzcigglWVow A9SjpaCAe1OW6YQ1HFUL =Ta4V -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--