all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Josselin Poiret via Guix-patches via <guix-patches@gnu.org>
To: Foo Chuan Wei <chuanwei.foo@hotmail.com>, 38606@debbugs.gnu.org
Cc: dev@jpoiret.xyz
Subject: [bug#38606] [WIP SMLnj 0/1] Add SMLnj.
Date: Tue, 09 Nov 2021 10:03:41 +0000	[thread overview]
Message-ID: <87v911fxxe.fsf@jpoiret.xyz> (raw)
In-Reply-To: <PU1PR01MB2155FB74909CF0F067FFF7EA8D919@PU1PR01MB2155.apcprd01.prod.exchangelabs.com>

Foo Chuan Wei <chuanwei.foo@hotmail.com> 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




  reply	other threads:[~2021-11-09 10:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-14  4:04 [bug#38606] [WIP SMLnj 0/1] Add SMLnj Brett Gilio
2019-12-14  4:06 ` [bug#38606] [WIP SMLnj 1/1] gnu: Add smlnj Brett Gilio
2020-01-16  0:36 ` [bug#38606] [WIP v2 0/1] Add SMLNJ Brett Gilio
2020-01-16  0:36 ` [bug#38606] [WIP v2 1/1] gnu: Add smlnj Brett Gilio
2020-01-16 14:59   ` Brett Gilio
2021-10-29 23:33     ` [bug#38606] [WIP SMLnj 0/1] Add SMLnj Tim Lee
2021-11-10 11:07     ` [bug#38606] [WIP v2 1/1] gnu: Add smlnj Foo Chuan Wei
2021-11-07 15:00 ` [bug#38606] [WIP SMLnj 0/1] Add SMLnj Foo Chuan Wei
2021-11-08 21:40   ` Foo Chuan Wei
2021-11-09 10:03     ` Josselin Poiret via Guix-patches via [this message]
2021-11-10  9:21       ` Foo Chuan Wei
2021-12-12 16:37 ` bug#38606: " Chuan Wei Foo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v911fxxe.fsf@jpoiret.xyz \
    --to=guix-patches@gnu.org \
    --cc=38606@debbugs.gnu.org \
    --cc=chuanwei.foo@hotmail.com \
    --cc=dev@jpoiret.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.