From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32227 invoked by alias); 12 Jun 2014 08:27:19 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 32213 invoked by uid 89); 12 Jun 2014 08:27:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: hera.aquilenet.fr Received: from hera.aquilenet.fr (HELO hera.aquilenet.fr) (141.255.128.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Jun 2014 08:27:16 +0000 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 784012C88; Thu, 12 Jun 2014 10:27:13 +0200 (CEST) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J02rkw3rhtOQ; Thu, 12 Jun 2014 10:27:13 +0200 (CEST) Received: from pluto (162-75.80-90.static-ip.oleane.fr [90.80.75.162]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 0B0CE2C66; Thu, 12 Jun 2014 10:27:12 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Eli Zaretskii Cc: xdje42@gmail.com, gdb-patches@sourceware.org Subject: Re: Building the current snapshot on Windows with Guile References: <83y4x614y6.fsf@gnu.org> <87ha3rocq3.fsf@gnu.org> <83k38nze3y.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 24 Prairial an 222 de la =?utf-8?Q?R=C3=A9volution?= 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 Date: Thu, 12 Jun 2014 08:27:00 -0000 In-Reply-To: <83k38nze3y.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 11 Jun 2014 17:59:29 +0300") Message-ID: <87ha3qlehr.fsf@gnu.org> User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2014-06/txt/msg00490.txt.bz2 Eli Zaretskii skribis: >> From: ludo@gnu.org (Ludovic Court=C3=A8s) >> Cc: Eli Zaretskii , "gdb-patches\@sourceware.org" >> Date: Wed, 11 Jun 2014 14:24:52 +0200 >>=20 >> Doug Evans skribis: >>=20 >> > (*1): As Ludo suggested, we could compile these files during a gdb >> > build, but that doesn't work in a cross-compilation scenario (without >> > requiring more complexity in the build, which would be nice to avoid). >> > Are these files guaranteed to be equivalent across configurations (I'm >> > guessing not), and if not does guile provide a cross-compiler for them >> > (I'm guessing not - could be wrong of course)? >>=20 >> It does provide a cross-compiler (info "(guile) Compilation"): >>=20 >> guix compile --target=3Dmips64el-linux-gnu foo.scm -o foo.go >>=20 >> But note that the interpretation of triplets might defer from that of >> GDB. In particular, for platforms that support several ABIs with >> different word sizes, it recognizes some specific triplet >> extensions=E2=80=93e.g., =E2=80=9Cmips64el-linux-gnuabi64=E2=80=9D for t= he N64 ABI on MIPS. See >> . > > Apart of the issue with multi-ABI platforms, are there any other > reasons for the *.go files to be non-portable? In Guile 2.0, .go files are not portable essentially because sizeof(SCM) is the size of a pointer, and because numbers stored in .go files are in native endianness. (Guile 2.2 uses ELF as its container format, with similar issues.) > E.g., if they were compiled on a 64-bit Windows 7, will they work on a > 32-bit Windows XP? No. > Does the answer depend on whether the Guile executable that compiled > the *.scm files was a 64-bit or a 32-bit executable? No. > What about compiling on GNU/Linux and using on Windows, when the CPU > is the same or from the same family? That works fine. Thanks, Ludo=E2=80=99.