From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] gnu: cross-gcc-arguments: Disable libitm, libvtv and, libsanitizer. Date: Sun, 28 Feb 2016 15:43:52 +0100 Message-ID: <87r3fwdhef.fsf@elephly.net> References: <56C322C4.3040706@gmail.com> <56CC4E79.7030706@gmail.com> <87oab0ncc8.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aa2Zm-0006Xj-B7 for guix-devel@gnu.org; Sun, 28 Feb 2016 09:44:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aa2Zj-0001C9-3x for guix-devel@gnu.org; Sun, 28 Feb 2016 09:44:02 -0500 Received: from sender163-mail.zoho.com ([74.201.84.163]:25433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aa2Zi-0001C5-Rh for guix-devel@gnu.org; Sun, 28 Feb 2016 09:43:59 -0500 In-reply-to: <87oab0ncc8.fsf@member.fsf.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?B?5a6L5paH5q2m?= Cc: guix-devel@gnu.org 宋文武 writes: > Ricardo Wurmus writes: > >> Manolis Ragkousis writes: >> >>> This is a follow up to better explain what the problem is with the >>> sans-libc cross gcc in the (gnu packages cross-base) module. >>> >>> In the latest master if you try to build gcc-cross-sans-libc with: >>> >>> ./pre-inst-env guix build -e '((@@(gnu packages cross-base) cross-gcc) >>> "i686-linux-gnu")' -c8 >>> >>> gcc modules libitm, libvtv and libsanitizer fail to build with >>> "configure: error: C compiler cannot create executables". >>> >>> This happens because there is no libc present at that point and the >>> problem was introduced with commit ca7ef4d41854218c which enabled c++. >> >> I find this very odd. I’m the author of that commit and I did this to >> be able to build a C and C++ cross compiler for arm-none-eabi (which I >> still haven’t submitted to the ML). At no point did I see any errors >> about libitm, libvtv, or libsanitizer. >> > On the master, ‘arm-linux-gnueabihf’ also failed. > Look at the end of ‘configure.tgt’ scripts of libitm, libvtv and > libsanitizer, the target is matched with some well-known OS (eg: linux, > gnu, etc.). So, I think those libraries won’t build at all when you’re > using ‘none’ as OS. Ah, this makes sense. Thanks for the clarification. ~~ Ricardo