From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IHu5FLhHimHVUwAAgWs5BA (envelope-from ) for ; Tue, 09 Nov 2021 11:04:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aLVyELhHimEYPwAA1q6Kng (envelope-from ) for ; Tue, 09 Nov 2021 10:04:40 +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 D23053ADBE for ; Tue, 9 Nov 2021 11:04:39 +0100 (CET) Received: from localhost ([::1]:44530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkNza-00073P-4N for larch@yhetil.org; Tue, 09 Nov 2021 05:04:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkNz9-00073H-Rc for guix-patches@gnu.org; Tue, 09 Nov 2021 05:04:11 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49335) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkNz0-0001hd-ID for guix-patches@gnu.org; Tue, 09 Nov 2021 05:04:09 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkNz0-0000IX-4i for guix-patches@gnu.org; Tue, 09 Nov 2021 05:04:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38606] [WIP SMLnj 0/1] Add SMLnj. Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Nov 2021 10:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38606 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Foo Chuan Wei , 38606@debbugs.gnu.org Cc: dev@jpoiret.xyz Received: via spool by 38606-submit@debbugs.gnu.org id=B38606.16364522271125 (code B ref 38606); Tue, 09 Nov 2021 10:04:02 +0000 Received: (at 38606) by debbugs.gnu.org; 9 Nov 2021 10:03:47 +0000 Received: from localhost ([127.0.0.1]:60881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkNyl-0000I5-F9 for submit@debbugs.gnu.org; Tue, 09 Nov 2021 05:03:47 -0500 Received: from jpoiret.xyz ([206.189.101.64]:44404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkNyj-0000Hw-46 for 38606@debbugs.gnu.org; Tue, 09 Nov 2021 05:03:46 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 717A1184F5D; Tue, 9 Nov 2021 10:03:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1636452223; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DKTNYlNnFXodoZwo/7jZrYaaIF4nOmJsTVWd1rJ7AWo=; b=Q4LyO0VC8B9w2nGrwXN9Muk4wS9Dqkg3GUXzql7MvQwnRpvqPTnseuggDyYLtJ3SPOhwvd SbeeLTssW5ItJORMn3M1ru3ecd4PnH+yjYfLEmbqBcoAcLEkBqJ/wpmyrbpzu3Cxj9Z/h0 yhqrxRzy52YbKuRbRTjpJIJ5aFwIi/xCASP3+yf4OGX7K18Ygy/ov2Y5xjDX52wBYs5Emr jEcCh08K0XtAjkjNNuBthV8zHip03IJWeWTMDCvGUWSMtQnYp5fl/fdUnohFduPpuiYvMl 8ziqwCKE2H0G9jXpdnTsOffnzGBy9MPFrUFc14bIIG1PG6Ocwa3D+Bo8XTHPHw== In-Reply-To: References: Date: Tue, 09 Nov 2021 10:03:41 +0000 Message-ID: <87v911fxxe.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: text/plain X-Spamd-Bar: / 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" Reply-to: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches From: Josselin Poiret via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636452280; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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: dkim-signature; bh=DKTNYlNnFXodoZwo/7jZrYaaIF4nOmJsTVWd1rJ7AWo=; b=K8JJNfEJCDf25EVNDSf6XZM5DI9+SF6874k2B58blQ67ftq+F5sCXXdr99jhSLpNWT7qvS G81KVsQojo3HZnFL5MHrA5OwzeY/vFHDa/vGS3xrMDpVztLWAje+lngX92ugESGoC7SWv9 lf6ApyVg0Y99nr+EWTAXfM7T06plPPr9lZUrxLKFjvfQ0A2s91PHg588yngNMit9CjNQGi 7KOcfMxnhdkSpGY2a+NUN/MLVITlYtNZZgfIb33QYWd+Wc0BtbZRO/AjpQOTa7siVXOY9T gKnA/TazNmFW97WMsY2r79SE7+NKh+74RCcCL1Ot5uRUm2ZoMV5icjlua67pYg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636452280; a=rsa-sha256; cv=none; b=RqpmUbnswky1rF2m8uDfkMciRsbGceuVQmx+tbCdyFjlvz3e9Gl+C0HguBXttroYRMjDqf 3h047uQ9EoMdTyXo4UQLpVRddM5qQQ/WwUHHe4wcUIoO8Bi36XnWxx1VPSOcvipH4nmJCP zkB4ZJd+7OazeolRjin0Yn4HgaPmKTBoLpBQFsSh55U8G8XmcH2ZxWtIMQfrfSHq3Obln+ ZiH+kXdGBivpqwa9667ZG2gfA2h+bEebvK3nXc9vdtTSK+9OKatjv5pFxwyjfD55p+ejqo fg+oz3nTXjGdvTJhQWyXYrT0lH54GAgYAC/Nh0wiYfnOaCOobtnU93+BUkNkxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=Q4LyO0VC; dmarc=pass (policy=none) header.from=gnu.org; 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: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=Q4LyO0VC; dmarc=pass (policy=none) header.from=gnu.org; 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: D23053ADBE X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: fiao8USR1Ysx Foo Chuan Wei writes: > The error above occurs because the build process uses nix-install.sml, > and nix-install.sml uses `OS.Process.system` (in the `unpack` function). > `OS.Process.system` relies on /bin/sh, but /bin/sh is not present in the > Guix build environment. "No such file or directory" presumably refers to > the absence of /bin/sh. > > Unfortunately, the fix might require some binary patching. /bin/sh is > hardcoded in sml.boot.amd64-unix/SMLNJ-BASIS/.cm/amd64-unix/basis-common.cm > (a binary file from boot.amd64-unix.tgz). Linking [1] for our IRC discussion about this. You proposed patching /bin/sh to /tmp/sh, and symlinking /tmp/sh yourself, did that work? If not, I can still write a SMLNJ binfile patcher if you feel the need for it (literals should be pretty easy to patch, see sml/gc/build-literals.c for their format). Best, Josslin Poiret [1] https://logs.guix.gnu.org/guix/2021-11-08.log#135443