From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: Cross-compiling Guile 2.0 Date: Sat, 19 Mar 2011 12:04:42 +0100 Message-ID: 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 1300538484 21518 80.91.229.12 (19 Mar 2011 12:41:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2011 12:41:24 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Mar 19 13:41:14 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 1Q0vSx-0003Vj-GE for guile-devel@m.gmane.org; Sat, 19 Mar 2011 13:41:12 +0100 Original-Received: from localhost ([127.0.0.1]:42099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0vSw-0004MJ-Uj for guile-devel@m.gmane.org; Sat, 19 Mar 2011 08:41:11 -0400 Original-Received: from [140.186.70.92] (port=44447 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0vSq-0004Kf-Lo for guile-devel@gnu.org; Sat, 19 Mar 2011 08:41:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0vSp-0004xr-IV for guile-devel@gnu.org; Sat, 19 Mar 2011 08:41:04 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:52597 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0vSp-0004xZ-FC; Sat, 19 Mar 2011 08:41:03 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 3BEB93EFD; Sat, 19 Mar 2011 08:42:38 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=pvuvEG/PUy2L RVoCeOtCthkpEaI=; b=M91ORbtT71/3w4EZwuuJZZuPQEQF0rtpX/2eqnPghGA2 EH96z9hEebc9aZK+u7KcYXqOl55jyHeVzOoobqVuG5T8+JNSnKIT3oz4wfnsSCM6 U8SR7E0VZZyiaD0rjMRfxV7qZ+15Hs98l/d2GqumrmeVo2FlLPtXKCPccw+I+Kw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=sMtGhY ykEy3JQySdijWkB374oxTi8lkYBoz4WKRGiqTDH6V2scM6JH6jZjVQ0WXTBe6T9c Csza8vRHOg6INDU++7nf8r+xI0HlCB2pSbfZQhCav+1WG8+zePzwV51JvYMYXr2W 7nDDFFdGprFNTr7igqgXtf5y37eBT+PolCuIw= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 286833EFB; Sat, 19 Mar 2011 08:42:36 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 76A523EF9; Sat, 19 Mar 2011 08:42:34 -0400 (EDT) In-Reply-To: <87bp18pwbi.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Fri, 18 Mar 2011 11:17:05 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 5E06CD14-5226-11E0-B66A-E8AB60295C12-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 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:11911 Archived-At: On Fri 18 Mar 2011 11:17, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > I would add a =E2=80=98current-bytecode-endianness=E2=80=99 fluid in (lan= guage assembly > compile-bytecode). The =E2=80=98compile=E2=80=99 procedure would have an= optional > =E2=80=98endianness=E2=80=99 parameter, which would set this fluid. And = =E2=80=98guile-tools > compile=E2=80=99 would have a command-line argument to specify the target > endianness. This sounds fine, but I would like to actually build a Guile cross-compiler. So build =3D host =3D my x86-64 laptop, but target =3D ARM (for example). Then you would use that Guile cross-compiler as GUILE_FOR_BUILD, as you cross-compile Guile itself, or other packages based on Guile. 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? I am leaning towards some other module; (system machine-type) or something, which would load some previously registered extension. Andy --=20 http://wingolog.org/