From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:45272) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hxyDj-00060z-BP for guix-patches@gnu.org; Wed, 14 Aug 2019 14:42:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hxyDi-0002nq-2W for guix-patches@gnu.org; Wed, 14 Aug 2019 14:42:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40836) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hxyDh-0002nc-Uz for guix-patches@gnu.org; Wed, 14 Aug 2019 14:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hxyDh-0004gR-RY for guix-patches@gnu.org; Wed, 14 Aug 2019 14:42:01 -0400 Subject: [bug#37012] [PATCH] gnu: mingw: Add x86_64 support. Resent-Message-ID: From: Jan Nieuwenhuizen References: <87o90sitvi.fsf@gnu.org> <874l2kmdya.fsf@gnu.org> Date: Wed, 14 Aug 2019 20:40:46 +0200 In-Reply-To: (Carl Dong's message of "Wed, 14 Aug 2019 17:54:59 +0000") Message-ID: <87pnl7d1zl.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Carl Dong Cc: "37012@debbugs.gnu.org" <37012@debbugs.gnu.org> Carl Dong writes: Hello Carl, > Here's the updated patch that I've tested. Let me know if this works for = you! :-) Thanks! > From e6df2d6f9b47b02abec01a16f2d0b1271dcec1d2 Mon Sep 17 00:00:00 2001 > From: Carl Dong > Date: Wed, 14 Aug 2019 13:46:53 -0400 > Subject: [PATCH] gnu: mingw: Add x86_64 support. It looks good and I can compile `hello'; the traditional 32 bit version: ./pre-inst-env guix build --target=3Di686-w64-mingw32 hello and now also ./pre-inst-env guix build --target=3Dx86_64-w64-mingw32 hello However, while the 32 bit still works for me, the 64 bit version does not. How is that for you? Do you have any idea how to verify if the x86_64 hello.exe is OK or how to debug that? --8<---------------cut here---------------start------------->8--- 20:33:04 janneke@dundal:~/src/guix/wip [env] $ file /gnu/store/4hayc4wmxz0b0bw555n5gny7xkhg7w6y-hello-2.10/bin/hello.exe /gnu/store/4hayc4wmxz0b0bw555n5gny7xkhg7w6y-hello-2.10/bin/hello.exe: PE32 = executable (console) Intel 80386, for MS Windows 20:34:04 janneke@dundal:~/src/guix/wip [env] $ guix environment --ad-hoc wine -- wine /gnu/store/4hayc4wmxz0b0bw555n5gny= 7xkhg7w6y-hello-2.10/bin/hello.exe=20 Hello, world! 20:34:14 janneke@dundal:~/src/guix/wip [env] $ file /gnu/store/v83ag9ahcg5g5qp06rlvjmvrydyriv7p-hello-2.10/bin/hello.exe= =20 /gnu/store/v83ag9ahcg5g5qp06rlvjmvrydyriv7p-hello-2.10/bin/hello.exe: PE32+= executable (console) x86-64, for MS Windows 20:34:22 janneke@dundal:~/src/guix/wip [env] $ guix environment --ad-hoc wine -- wine /gnu/store/v83ag9ahcg5g5qp06rlvjmv= rydyriv7p-hello-2.10/bin/hello.exe wine: Bad EXE format for Z:\gnu\store\v83ag9ahcg5g5qp06rlvjmvrydyriv7p-hell= o-2.10\bin\hello.exe. [193] --8<---------------cut here---------------end--------------->8--- Possibly I'm even using wine wrong? Other than that the patch looks fine. It would be nice if we knew wether the 64bit version can produce something useful, though. Can you/someone please shed some light on that? Greetings, janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com