From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gGz3GwaBkWDkcAEAgWs5BA (envelope-from ) for ; Tue, 04 May 2021 19:14:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8NGFFwaBkWDvKAAAbx9fmQ (envelope-from ) for ; Tue, 04 May 2021 17:14:46 +0000 Received: from lists.gnu.org (lists.gnu.org [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 147F8179F5 for ; Tue, 4 May 2021 19:14:46 +0200 (CEST) Received: from localhost ([::1]:43290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldydB-0007Wo-5F for larch@yhetil.org; Tue, 04 May 2021 13:14:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldybW-0006fW-Jd for guix-patches@gnu.org; Tue, 04 May 2021 13:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42819) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldybW-0006Gz-Bo for guix-patches@gnu.org; Tue, 04 May 2021 13:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldybW-0003bj-60 for guix-patches@gnu.org; Tue, 04 May 2021 13:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#46124] [PATCH] Idris 2 Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 04 May 2021 17:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46124 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: raingloom Cc: Maxime Devos , 46124@debbugs.gnu.org Received: via spool by 46124-submit@debbugs.gnu.org id=B46124.162014835013858 (code B ref 46124); Tue, 04 May 2021 17:13:02 +0000 Received: (at 46124) by debbugs.gnu.org; 4 May 2021 17:12:30 +0000 Received: from localhost ([127.0.0.1]:54364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldyb0-0003bS-8E for submit@debbugs.gnu.org; Tue, 04 May 2021 13:12:30 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:54754 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldyaw-0003bL-T4 for 46124@debbugs.gnu.org; Tue, 04 May 2021 13:12:29 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1620148339; bh=z4tAIrwX1y2UAWOSinUVmGptDet1iJxgtBtTWEGfbyM=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=GP9k01kn7lMU8yApUNRQaiTRDXTW5n1KodSJFUoArGJP7zL/aTMoxTI0B32rkLYyC TQS4RJnA9TkkRw8HaoasxSfWlxNq0ROYukjrO04N373Qpja7ccDNO9XTb7GhcyXvkL qyJHz8CHXd+sjzmtgGpTubZOj4HOjda3wzXUNwGk= In-Reply-To: <20210503041044.13358182@riseup.net> References: <20210127064337.6a226301@riseup.net> <87r1j267c6.fsf@yoctocell.xyz> <20210426172240.683c4c2b@riseup.net> <5003aa160dc82b35b06e60d425a09309199e1670.camel@telenet.be> <20210429204317.7e3a707c@riseup.net> <87im44nprp.fsf@yoctocell.xyz> <20210503041044.13358182@riseup.net> Date: Tue, 04 May 2021 19:12:18 +0200 Message-ID: <87mttae83x.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620148486; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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:dkim-signature; bh=TJB2om7in1M3C5DKho5P4al3GeUK5cJJWDFq7zvBtWA=; b=dJvkxqVrjTeGhGjDu/rd6vqszQC8f3YJwimNRUBqrwvL6rByfvmK/9hzxI8vrxUj1ZzIQo 4Ml1xoGKIVTcfO9Gch3A+Pe22f8k3HIQ1ETOU3KWrwc2ShuX1riBIMvWpu5NoevJvDsi3P gNEqHdfH9bUYhQMBSIYStP/bv4POROI2ZV32pUwAtgJlLWUI3IziMOop5hG5kZr9EmryHj 6jvEfg4qIHPieFeFC09Lun7VRU9804jMAMSQdO3mC4tB6ApPzoEJRPwOUeLLO2FG6pof6N 2i/Nq9jk6fT28RLr0HKI49SW4ZHYyPVVxRwr5wT2G6pUhWR6O1qI2hkvaLyrbw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620148486; a=rsa-sha256; cv=none; b=hCdQOFdGj28oXRJOmM+IElUkRI2HRnOZLsUWt4Wxsz7YUM+GefHxxviY4oXlfJR+LTxeAF CMInyhUw29JG4IlsosaHoVe5Bd/V2/CoxKWF0vD5lwmWcD5lKU9L/I+smXYGVnwa2423nP TUefrGpn5csQmOrUKvWo7aIUCGqT32OguloUNffSVNC+FhN9v0RpG17k6NaNqKWRdfKBmA nsIoY+u8zhM4r8geEq0+dOLQJ0vctolNWF1EjfRztOYS+0wAx+aTR4gsKAh5WuCTiM5M8s 9MSgAplAeDpVSGB0sI+z+CK2x53lkbKDBPBzXXMLfQLBwK9f6VeZOXRIV11apA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=GP9k01kn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=GP9k01kn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 147F8179F5 X-Spam-Score: -1.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: sWTopay/JMVj On Mon, May 03 2021, raingloom wrote: > On Fri, 30 Apr 2021 10:24:42 +0200 > Xinglu Chen wrote: > >> On Thu, Apr 29 2021, raingloom wrote: >>=20 >> > Here is the updated patch. No idea if this actually works cross >> > compiled, but I don't have much time to test it. My suspicion is >> > that it's likely broken and requires changes to Idris 2's code >> > generators, because they almost definitely call Chez, GCC, etc, >> > with the wrong arguments.=20=20 >>=20 >> I noticed that there is an =E2=80=98idris2_app=E2=80=99 directory in the= =E2=80=98bin=E2=80=99 >> directory >>=20 >> $ ls /gnu/store/va62hzp46c3dp2vlcnqc7fg109axj8rq-idris2-0.3.0/bin >> idris2* idris2_app/ >>=20 >> What is this used for? > > If you take a look at $(guix build idris2)/bin/idris2, it's actually > just a wrapper. It contains the supporting dynamically linked shared > objects and the executable itself. > > I don't know the details of what each file does or why it's like this, > the codegen seems to use a similar structure for all backends. The > scheme files are probably all for the Chez backend, the shared objects > are either C libraries (for socket support and stuff), or compiled Chez > code. I just noticed the Racket script, that I have no idea about. > > Idris 2's build system makes some... uhm... interesting choices, so > it's entirely possible that not all of those are necessary, or could be > moved somewhere more sensible. Looking at the Nix package, they remove the wrapper and instead move bin/idris2_app/idris2.so to bin/idris2 and wraps that executable[1]. Perhaps we could do the same thing? I am not familiar with Idris, though. [1]: https://github.com/nixos/nixpkgs/blob//pkgs/development/compilers/idri= s2/default.nix#L41