From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vivien Kraus Subject: How to install a cross-compile toolchain? Date: Tue, 17 Dec 2019 19:51:27 +0100 Message-ID: <874kxydc2l.fsf@planete-kraus.eu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54482) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihHxH-0007TK-E6 for help-guix@gnu.org; Tue, 17 Dec 2019 13:52:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihHxF-0003aN-C1 for help-guix@gnu.org; Tue, 17 Dec 2019 13:52:23 -0500 Received: from planete-kraus.eu ([89.234.140.182]:45558) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ihHxF-0002gG-0z for help-guix@gnu.org; Tue, 17 Dec 2019 13:52:21 -0500 Received: from gnou.home ([2a01:cb14:18a:700:913:6d2:47b8:370f] helo=gnou) by planete-kraus.eu with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ihHx6-00074E-I3 for help-guix@gnu.org; Tue, 17 Dec 2019 18:52:12 +0000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org Hello guix! Trying to understand why gmp fails when cross-compiled as mingw (it cannot use g++...), I wanted to know if I could get a guix environment, but with cross-compiled dependencies. Or at least install a cross-compiler. guix environment does not recognize --target=i686-w64-mingw32. It has a --system, but it seems like a system to bootstrap guix: it does not work with i686-w64-mingw32 (no linker) nor i686-mingw (guix environment: error: could not find bootstrap binary 'tar' for system 'i686-mingw') I cannot find any package that could provide i686-w64-mingw32- cross-tools when in an environment. Outside of an environment, I can't seem to find how to install a cross-compiler. I tried to install mingw-w64-i686, and I cannot find any option to guix install that would let me change the target of gcc-toolchain. How would you install i686-w64-mingw32-gcc? Best regards, Vivien