From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mathieu Othacehe Newsgroups: gmane.comp.gnu.guix.devel,gmane.lisp.guile.devel Subject: Cross-compiling guile libraries Date: Thu, 21 Mar 2019 14:25:05 +0100 Message-ID: <87d0mkpdfy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="45086"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.0; emacs 26.1 To: Guix-devel , guile-devel Original-X-From: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Thu Mar 21 14:27:52 2019 Return-path: Envelope-to: gcggd-guix-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6xjb-000BbB-Cn for gcggd-guix-devel@m.gmane.org; Thu, 21 Mar 2019 14:27:51 +0100 Original-Received: from localhost ([127.0.0.1]:37155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6xja-0001zo-CV for gcggd-guix-devel@m.gmane.org; Thu, 21 Mar 2019 09:27:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6xj6-0001zP-Vn for guix-devel@gnu.org; Thu, 21 Mar 2019 09:27:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6xh0-0000H7-Bl for guix-devel@gnu.org; Thu, 21 Mar 2019 09:25:11 -0400 Original-Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:51754) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h6xgy-00007U-Up; Thu, 21 Mar 2019 09:25:09 -0400 Original-Received: by mail-wm1-x333.google.com with SMTP id 4so2202709wmf.1; Thu, 21 Mar 2019 06:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=YJBRE8p3PhUUoY5o4gE50nscXWVMyVujYXTukCxeK+8=; b=ASRzlVJir1fCgYEZ2AEuuujrMiuuOaNtxk6ZiwDhOTrZhNlDELQLPGuQ2IYV4KZMBn YgIh/fTrTbKdOF9hhUvS62kdjz/FaXHCKuOg4wX81pWZwWhln3F2hoGGSxEw7jqcmUt6 JE9nXAt7FzqrS5+uiAziVZK0fn/B2A9ZqEdT8YVFJlEaoCp/+DEY7NHDcsXke+Zy/Ohn l/iQ4TDOSE3Kotmhan/99fHwVxldc/vn0TdJWkb+8BUyAa9jMw6jVn77YOUt6Lo7sp0M 0VFGS+4zLnzUjKRjxd/LIoiVQwhyzlpUjFSImeALZCcumbQ/mqy4mVnOtzU2cpw84DNb uCtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=YJBRE8p3PhUUoY5o4gE50nscXWVMyVujYXTukCxeK+8=; b=nwt5xKsibwW1WxXmSeMbYQweDQPam1bIbM12+CJRkj1YtQKHKKZc2qItuFDtiL1Kdy Wi7DXPguSyhlLZKBlHc6ZbZZ3Q5qN/xMD9f1hO8UWoFCrzDR/vvfZd5SnWK+QjRuY5bl bTtDFw1o7xgNWOjyCl9nZXvom+eGpwlI6ZUPDOP+qNzcZ2bT3/z1Wv/G4T90n/jSmAgc aaypDSgRNJQxjJ3OmQGglb4LNJ5pLCREftwZQWGbzP04MwNT/yctBEADfzBa6WiWXKbM Uq6sM9rVv/Y8yFhk1L6QAy9YM2G3xLKIl0cSATe+BuZMRf99aLgQ2wyNLP9bZ46jUPOk NXYg== X-Gm-Message-State: APjAAAVaVh7Gi29UwF/T7pcsK39M0O/MAX2Nbio6+pPNkk79RB9BImsO JDUajVMz9ybRufI+hycEu1xRiasp X-Google-Smtp-Source: APXvYqyiR+dRTCB4V7tHB1rIT0YgbxnUAaEPRXvCPvZEko2pc9Dd23BeimoS7TCakNhvnSRcd+04Lw== X-Received: by 2002:a1c:e0c6:: with SMTP id x189mr2447596wmg.4.1553174707084; Thu, 21 Mar 2019 06:25:07 -0700 (PDT) Original-Received: from fuji (smtp.parrot.biz. [62.23.167.188]) by smtp.gmail.com with ESMTPSA id y2sm6155100wmy.38.2019.03.21.06.25.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2019 06:25:06 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::333 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list 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 Original-Sender: "Guix-devel" Xref: news.gmane.org gmane.comp.gnu.guix.devel:47412 gmane.lisp.guile.devel:19861 Archived-At: Hello! To be able to add a cross-compilation option to guix-system (see https://lists.gnu.org/archive/html/guix-devel/2019-03/msg00062.html), we need to cross-compile a bunch of guile libraries. Even if guild has a "target" option allowing to cross-compile sources, autotools does not seem to have support for guile cross-compilation. For instance, passing "--host=aarch64-linux-gnu" to configure script doesn't set the "target" argument of guild to the specified triplet. For trivial guile libraries guix has a "guile-build-system" which does the job alright, but I don't think using this build-system for every guile library is a solution. Has anyone already tried to mess with guile.m4 and other stuff in order to cross-compile a guile library via autotools? Thanks, Mathieu