From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: [PATCH] gnu: cross-gcc-arguments: Disable libitm, libvtv and, libsanitizer. Date: Sun, 28 Feb 2016 22:23:03 +0800 Message-ID: <87oab0ncc8.fsf@member.fsf.org> References: <56C322C4.3040706@gmail.com> <56CC4E79.7030706@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aa2Fq-00023G-Is for guix-devel@gnu.org; Sun, 28 Feb 2016 09:23:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aa2Fn-0004qA-Bs for guix-devel@gnu.org; Sun, 28 Feb 2016 09:23:26 -0500 Received: from smtp6.openmailbox.org ([62.4.1.40]:59548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aa2Fn-0004q5-60 for guix-devel@gnu.org; Sun, 28 Feb 2016 09:23:23 -0500 In-Reply-To: (Ricardo Wurmus's message of "Tue, 23 Feb 2016 14:14:03 +0100") 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: Ricardo Wurmus Cc: guix-devel@gnu.org 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=E2=80=99m the author of that commit and I did th= is to > be able to build a C and C++ cross compiler for arm-none-eabi (which I > still haven=E2=80=99t submitted to the ML). At no point did I see any er= rors > about libitm, libvtv, or libsanitizer. > On the master, =E2=80=98arm-linux-gnueabihf=E2=80=99 also failed. Look at the end of =E2=80=98configure.tgt=E2=80=99 scripts of libitm, libvt= v and libsanitizer, the target is matched with some well-known OS (eg: linux, gnu, etc.). So, I think those libraries won=E2=80=99t build at all when yo= u=E2=80=99re using =E2=80=98none=E2=80=99 as OS.