From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: Cross-compiling Guile 2.0 Date: Sun, 20 Mar 2011 14:50:43 +0100 Message-ID: <87mxkp2958.fsf@gnu.org> References: <87hbbhbb99.fsf@ossau.uklinux.net> <87k4gb99uv.fsf@gnu.org> <87bp18pwbi.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300629068 10963 80.91.229.12 (20 Mar 2011 13:51:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2011 13:51:08 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Mar 20 14:51:04 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1J27-0005x9-Pz for guile-devel@m.gmane.org; Sun, 20 Mar 2011 14:51:03 +0100 Original-Received: from localhost ([127.0.0.1]:50875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1J27-0002J5-AI for guile-devel@m.gmane.org; Sun, 20 Mar 2011 09:51:03 -0400 Original-Received: from [140.186.70.92] (port=58043 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1J1v-0002Hz-9e for guile-devel@gnu.org; Sun, 20 Mar 2011 09:50:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1J1t-0003m3-Tu for guile-devel@gnu.org; Sun, 20 Mar 2011 09:50:51 -0400 Original-Received: from solo.fdn.fr ([80.67.169.19]:53650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1J1t-0003lo-Oz for guile-devel@gnu.org; Sun, 20 Mar 2011 09:50:49 -0400 Original-Received: from nixey (reverse-83.fdn.fr [80.67.176.83]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: lcourtes) by smtp.fdn.fr (Postfix) with ESMTPSA id A8557446A6; Sun, 20 Mar 2011 14:50:47 +0100 (CET) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 30 =?iso-8859-1?Q?Vent=F4se?= an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Andy Wingo's message of "Sat, 19 Mar 2011 12:04:42 +0100") User-Agent: Gnus/5.110013 (No Gnus v0.13) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 80.67.169.19 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11927 Archived-At: Hello! Andy Wingo writes: > It's true that a simple command-line argument and fluid could work, but > the situation will get more complicated, so we will need some part of > Guile to define the host and target triplets. That's the questions I > was really asking: where in Guile to define those? There=E2=80=99s already =E2=80=98%host-type=E2=80=99. However, I don=E2=80= =99t think defining =E2=80=98%target-type=E2=80=99 would make sense since: 1. Of the GNU triplet, only the $target_arch matters for bytecode; 2. You can really choose at run-time what target you want to build for, by just setting the endianness fluid. Now, if we want to produce something comparable to cross-GCC & cross-Binutils[*], we could install, say, arm-linux-gnueabi-guile-tools in addition to guile-tools; the former would somehow set the right endianness for that target when running =E2=80=98arm-linux-gnueabi-guile-to= ols compile=E2=80=99. WDYT? Thanks, Ludo=E2=80=99. [*] Installed cross-GCC and cross-Binutils provide binaries called TARGET-gcc, TARGET-ld, etc.