From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jan Nieuwenhuizen Newsgroups: gmane.lisp.guile.devel Subject: wip-mingw with x86_64 support updated for 3.0.8 Date: Wed, 11 May 2022 23:45:31 +0200 Organization: AvatarAcademy.nl Message-ID: <87r14zaglg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31348"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Wed May 11 23:46:50 2022 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nouAU-0007wE-AI for guile-devel@m.gmane-mx.org; Wed, 11 May 2022 23:46:50 +0200 Original-Received: from localhost ([::1]:34832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nouAT-0004V7-Bf for guile-devel@m.gmane-mx.org; Wed, 11 May 2022 17:46:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nou9L-0003Pm-NQ for guile-devel@gnu.org; Wed, 11 May 2022 17:45:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nou9K-0004W0-Jw; Wed, 11 May 2022 17:45:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=XNlDc0vNJEePtQmBtSEc29lYO/Cxl4b/UWOnk1vNwUE=; b=jydv1yyZb9+ZtY /KGcbpz3Z6NrWSD0GMHIli2jk/hDkKOz+g6B4B1ROX10So/8Pujfc0wdKYEpISyyenpnMkQosm5XU zb9yiSVeEaxgTHlEpz2j09Y1bdSmkvMx1uMEmGOt/G6bQF67saBEv5VHtRBYQCnfVAm6FF5d6PJ1/ 7dWNQZMROHK7i7OIZUcbQREDKTCDP1uojPZR1g+KMGpPOyI/K9UL0R6JSppTREgnA/B+7tn+cOKyW G1zQpmNVhZYoZflQhI/en6tcoz6LdZfB4Dppgk+Wiu6F4PJvjpRgBTNyNJxHZjS2rzc02z7aTmnXy x30xgHJZrUUk1nqw2D/Q==; Original-Received: from 2a02-a462-da03-1-fa3e-1174-c33f-9485.fixed6.kpn.net ([2a02:a462:da03:1:fa3e:1174:c33f:9485]:55346 helo=drakenbij.janneke.lilypond.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nou9K-0006E4-73; Wed, 11 May 2022 17:45:38 -0400 X-Url: http://AvatarAcademy.nl X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:21207 Archived-At: Hi! I've reset and updated wip-mingw onto latest main: https://git.savannah.gnu.org/cgit/guile.git/log/?h=3Dwip-mingw Most changes are simply a continuation of the previous x86_64-w64-mingw32 work done for 3.0.7, using intptr_t and uintptr_t instead of scm_t_inum or long and unsigned long. There's one new problem though, the fix I made to determine file-name-convention correctly when (cross)compiling and when running now does not work anymore. FIXME in 3.0.7, this works: ;; boot-9.scm (define (compile-time-file-name-convention) (let ((target ((@ (system base target) target-type)))) (cond ((equal? target %host-type) (system-file-name-convention)) ((string-contains-ci target "mingw") 'windows) (else 'posix))))) in 3.0.8 it aborts hard. guile: uncaught exception: Unbound variable:define-module Cannot exit gracefully when init is in progress; aborting. Anyway, I gave up and changed it back to 'posix always using this hack: (let ((target (or "FIXME" ((@ (system base target) target-type))))) with a MinGW-specific for cross-compiling to MinGW to 'windows always: (let ((target (or "mingw" "FIXME" ((@ (system base target) target-type)= )))) Ugh. Ideas for a proper fix much appreciated! Other than that, guile-mingw can still be built by doing GUIX_PACKAGE_PATH=3Dguix guix build guile-mingw Greetings, Janneke --=20 Jan Nieuwenhuizen | GNU LilyPond https://lilypond.org Freelance IT https://JoyOfSource.com | Avatar=C2=AE https://AvatarAcademy.c= om