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 0Cc7GE3sm2BJMQAAgWs5BA (envelope-from ) for ; Wed, 12 May 2021 16:55:09 +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 CAfTE03sm2DLKgAAbx9fmQ (envelope-from ) for ; Wed, 12 May 2021 14:55:09 +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 5C7E1F1EF for ; Wed, 12 May 2021 16:55:08 +0200 (CEST) Received: from localhost ([::1]:34938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgqGQ-000178-NH for larch@yhetil.org; Wed, 12 May 2021 10:55:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgqFO-0000Jg-3G for guix-patches@gnu.org; Wed, 12 May 2021 10:54:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56729) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgqFN-0001yc-RD for guix-patches@gnu.org; Wed, 12 May 2021 10:54:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgqFN-0002K6-PP for guix-patches@gnu.org; Wed, 12 May 2021 10:54:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#46124] [PATCH] Idris 2 Resent-From: raingloom Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 12 May 2021 14:54:01 +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: Xinglu Chen Cc: Maxime Devos , 46124@debbugs.gnu.org Received: via spool by 46124-submit@debbugs.gnu.org id=B46124.16208311948870 (code B ref 46124); Wed, 12 May 2021 14:54:01 +0000 Received: (at 46124) by debbugs.gnu.org; 12 May 2021 14:53:14 +0000 Received: from localhost ([127.0.0.1]:40042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgqEb-0002J0-Nj for submit@debbugs.gnu.org; Wed, 12 May 2021 10:53:13 -0400 Received: from mx1.riseup.net ([198.252.153.129]:37056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgqEZ-0002Il-9M for 46124@debbugs.gnu.org; Wed, 12 May 2021 10:53:13 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4FgHpT4m5VzF24f; Wed, 12 May 2021 07:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1620831185; bh=KwjS3xLJujLLGLf/4PiCf504b242XAGZubNshuhA/Ck=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pMiKYbgMS6zpWcvMUZyl3cbXDYC5F80NavP418bcKLEmx6eFbwKwqdpFeaprdmItQ eUZMtpm5gYkNlULrY2evJ/CkfdArF8h1PxMjzBV1AChCYAhCoWZesUmQ4ZKp96vbDg LoiwasTl60KYe44lPOkL/K6MLMblnAH97fJ/h1fI= X-Riseup-User-ID: F833FE360E2DD37859E1CAF8B482937B694DAEE1B8894AF35D7DBFEA25DCF19B Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4FgHpS4Vcsz5vcH; Wed, 12 May 2021 07:53:04 -0700 (PDT) Date: Tue, 11 May 2021 23:47:34 +0200 From: raingloom Message-ID: <20210511234734.5cf190af@riseup.net> In-Reply-To: <87mttae83x.fsf@yoctocell.xyz> 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> <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=1620831308; 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=M8n5p0Wo8WqxONwexmHzJOkX7Fidr6beVZB0IUDhQKw=; b=Qz+sBnrQ4TRT+d2G3jetYaRdZST7/pztu7LlHFRz4fEnAFhjdZ3clm3R+g1dJzVdfr4U/+ rDHTIzEC0p5o/q617KlTFtFqKDl7rTYalbUL2/apCajcmdPNgl6A0xzOUbRy+0DSCgKIcO N6zWnkCAehf4UDLR8d1fUOFDxYVQZRO14PnuYerCsB4BBT+x1NVShhEzofxwfibdz1AWFj qg15kLsDHsvdj/S+m07/DIcvIx07ZeY0CjAz1C1YtBos6WYthPx8fmKC6BVqdXDJGwSt0P qsDcjHSBlJLm+S2fFjg4KZ6b85G9kBHBFx7QKNLG9mV8SQ7uq79JPMPiUWnWag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620831308; a=rsa-sha256; cv=none; b=mz31roMLanuqvcli94YM6Gq0ROZG4lPqSLMdvbcIBme/MggmKVdIgychtslyrM5Xmy+u9o FEpz9bj4hVU8KWpCLeGP4FIwrUrjfCBYnVINfZwcmpxJTlW7DZ9F50uVea+49sAwLOs02k 4THdeQztv3C9tVkOP2WboDXmHHxyfKA3CwvBMeb6BR5WNaYMZ/X0GOq+ILJO9X9ybubH61 GwaW4rkVjJQnpoIvfpelf5qfMBZ+AfSGtKrmJtqKxX19ZesE2wScpzBqp4F7BhG73k18bS jxTS5AnsjHUXtAiXq3QO14I2va7DY+hZUbuDxQVCyWGKm4wiOUmOR8Q/eJVKGw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=pMiKYbgM; 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.35 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=pMiKYbgM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (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: 5C7E1F1EF X-Spam-Score: -1.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: n7VHD0htpx2p On Tue, 04 May 2021 19:12:18 +0200 Xinglu Chen wrote: > On Mon, May 03 2021, raingloom wrote: >=20 > > On Fri, 30 Apr 2021 10:24:42 +0200 > > Xinglu Chen wrote: > > =20 > >> 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 > >> I noticed that there is an =E2=80=98idris2_app=E2=80=99 directory in t= he =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? =20 > > > > 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. =20 >=20 > 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. >=20 > [1]: > https://github.com/nixos/nixpkgs/blob//pkgs/development/compilers/idris2/= default.nix#L41 That link doesn't work. I have some more pressing projects to work on, but I'll look into it.