From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +KxZM9odHmTSdwEASxT56A (envelope-from ) for ; Fri, 24 Mar 2023 23:02:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CO1AM9odHmQiBgAAauVa8A (envelope-from ) for ; Fri, 24 Mar 2023 23:02:02 +0100 Received: from lists.gnu.org (unknown [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8FF3A1792A for ; Fri, 24 Mar 2023 23:02:02 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679695322; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=a44tkg16D1CDvLeR4DEJEqPvE09qjBqWZCU9loOaLu0=; b=fBBroYPOus/IliZGEofZuUAh22SiQJgqqgGzQoIQhBr6+e/qqN6pl9gfgtxdlC24JjjJIA GurTxG1MXwvOnRJau0GMh8hZYlVucy9E28nR3LAuZ05OpG+Uzkj9ae+Wi8vyU1ec8Y9mRw pr1cWri61VslPOr1fNqb5kRZGMTje6Yac/IhVazqUTFA1sqPGNLmaCNEgTUF8Ht1f3Ea19 kTvZHzVG7GHusqN7AcIqhxtq5q863dFFUqK2X4Q0HCWoAO33gaQKijEpl6XOJAZaIXlT2X nP/HUPBbfjqPDGHQ4cEKIAp00FOx/oxK/GTdlShhskpAgstbXhhLwHi5trqSNQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679695322; a=rsa-sha256; cv=none; b=nIgD0QFy9erQRzo15DfOt1yEdgsfoNmoFy7ATVIgVZmwC0DX665VHuF9HYJYv+n/46eDHd zEVxcvh1zdjhfktU8rMVQXLfp4/BXw20v8bW75IifFVyzpf3X5N09fBL7iZ1BL7FSzrQ7o 4lzVsgssQmwy7TsbgpBHAj2pl664NKGoYIFFU352lNNpq+QeXcBOHplEjIFDudo25hqanz Q2rqnUkGt5It4qqYaPBrNxsj/15wLrhzto4+gDVyeRvNp1xcjHVyXG1BecmvChJ/zUTbMT X7b5UxkUzOX84z6HWzPHy9iCrJuuMSU5UTiakUsBrJqVqbaZtkvenG18Z7JKWQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfpTB-0003zh-Ac; Fri, 24 Mar 2023 18:01:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfpT7-0003wa-Ro for guix-patches@gnu.org; Fri, 24 Mar 2023 18:01:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pfpT7-0000eY-Hg for guix-patches@gnu.org; Fri, 24 Mar 2023 18:01:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pfnqP-0004NV-OT for guix-patches@gnu.org; Fri, 24 Mar 2023 16:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62231] Chez Scheme for Racket build on aarch64 (patch attached) Resent-From: Tim Johann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 Mar 2023 20:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62231 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 62231@debbugs.gnu.org, Philip McGrath Received: via spool by 62231-submit@debbugs.gnu.org id=B62231.167968896316750 (code B ref 62231); Fri, 24 Mar 2023 20:17:01 +0000 Received: (at 62231) by debbugs.gnu.org; 24 Mar 2023 20:16:03 +0000 Received: from localhost ([127.0.0.1]:41436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfnpS-0004M3-O8 for submit@debbugs.gnu.org; Fri, 24 Mar 2023 16:16:03 -0400 Received: from ms-10.1blu.de ([178.254.4.101]:60858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfnpQ-0004LU-LA for 62231@debbugs.gnu.org; Fri, 24 Mar 2023 16:16:01 -0400 Received: from [176.199.211.189] (helo=dolos) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfnpO-0007BR-VT; Fri, 24 Mar 2023 21:15:59 +0100 From: Tim Johann Date: Fri, 24 Mar 2023 21:03:19 +0100 References: <87h6ukntrg.fsf@phrogstar.de> <4267909.iIbC2pHGDl@bastet> User-agent: mu4e 1.8.13; emacs 29.0.60 In-reply-to: <4267909.iIbC2pHGDl@bastet> Message-ID: <87r0tdq51d.fsf@phrogstar.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Con-Id: 303810 X-Con-U: 0-timjohann X-Originating-IP: 176.199.211.189 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 8FF3A1792A X-Spam-Score: -0.54 X-Migadu-Spam-Score: -0.54 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: rfE9jqNJGa+A --=-=-= Content-Type: text/plain Content-Disposition: inline Hi Philip, Happy to be of help. Thanks for the pointers, here's the amended patch. I hope it is to your liking. cheers Tim --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=chez-racket-aarch64-rev1.patch commit e3c514db745d48e5ef7f7abb7b45037341298b17 Author: Tim Johann Date: Fri Mar 24 21:09:52 2023 +0100 gnu: chez-scheme-for-racket-bootstrap-bootfiles: change for aarch64. * gnu/packages/chez.scm (chez-scheme-for-racket-bootstrap-bootfiles): Temporary change for build on aarch64, making racket available on aarch64. Architecture autodetect in rktboot only addresses x86 archs, so far. This work-around sets the architecture, looked up in translation table, explicitly. The long term solution should be to fix rktboot to include other natively supported architectures in the autodetect mechanism. cf. https://github.com/racket/racket/issues/3948 [arguments] use --machine even when architecture is supported by Racket's fork of ChezScheme. diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm index c6420a980e..ab6eaba6bd 100644 --- a/gnu/packages/chez.scm +++ b/gnu/packages/chez.scm @@ -692,10 +692,12 @@ (define-public chez-scheme-for-racket-bootstrap-bootfiles (search-input-file (or native-inputs inputs) "/opt/racket-vm/bin/racket") "../rktboot/main.rkt" - #$@(if (racket-cs-native-supported-system?) - #~() - (let ((m (nix-system->pbarch-machine-type))) - #~("--machine" #$m))))))))))))) + ;; Temporary handling of builds on non-x86 architectures, + ;; see https://github.com/racket/racket/issues/3948 + ;; Autodetect in rktboot only addresses x86 archs, so far. + #$@(let ((m (or (racket-cs-native-supported-system?) + (nix-system->pbarch-machine-type)))) + #~("--machine" #$m)))))))))))) (supported-systems (package-supported-systems chez-scheme-for-racket)) (home-page "https://github.com/racket/ChezScheme") --=-=-=--