From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manolis Ragkousis Subject: Re: [PATCH] gnu: cross-gcc-arguments: Disable libitm, libvtv and, libsanitizer. Date: Thu, 7 Apr 2016 16:07:25 +0300 Message-ID: <57065B8D.5060009@gmail.com> References: <56C322C4.3040706@gmail.com> <56CC4E79.7030706@gmail.com> <87pouyt3sz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010106060109080109000007" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ao9eo-00052k-4N for guix-devel@gnu.org; Thu, 07 Apr 2016 09:07:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ao9ek-00058l-4p for guix-devel@gnu.org; Thu, 07 Apr 2016 09:07:34 -0400 In-Reply-To: <87pouyt3sz.fsf@gnu.org> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= Cc: guix-devel@gnu.org This is a multi-part message in MIME format. --------------010106060109080109000007 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hey Ludo, I have reproduced the problem on the latest master targeting i686-linux and arm-linux-gnueabihf. 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. You can reproduce it with ./pre-inst-env guix build -e '((@@(gnu packages cross-base) cross-gcc) "arm-linux-gnueabihf")' This does not happen when targeting mips. I have added an explanation to the patch and a link to this thread. Manolis --------------010106060109080109000007 Content-Type: text/x-patch; name="0001-gnu-cross-gcc-arguments-Disable-libitm-libvtv-and-li.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-gnu-cross-gcc-arguments-Disable-libitm-libvtv-and-li.pa"; filename*1="tch" >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. * 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(+) 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" ))) ,(if libc -- 2.7.2 --------------010106060109080109000007--