bug-mit-scheme
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to start Edwin "system-call-error": Bad address (also shown w


From: Taylor R Campbell
Subject: Re: Unable to start Edwin "system-call-error": Bad address (also shown when debugging)
Date: Thu, 31 Dec 2020 15:58:43 +0000

> Date: Thu, 31 Dec 2020 09:58:09 +0000
> From: Cuong Dang <cuongd@protonmail.com>
> 
> I'm running macOS Big Sur 11.1 on a MacBook Air M1 and encountering
> this error while trying to start Edwin in Terminal. I installed
> `mit-scheme' with Homebrew on the x86-64 architecture with Rosetta
> 2.
> [...]
> The primitive channel-read, while executing the read system call,
> received the error: Bad address.

Not sure what that issue might be, but it should be possible to run
MIT Scheme natively without Rosetta (and it's possible that the issue
is a bug in Rosetta syscall emulation).  You'll need to cross-build --
should be easy, no external cross-compiler toolchain needed:

1. On an x86 system with mit-scheme-x86-64 in $PATH (requires 10.1.11
   or newer):

   % cd mit-scheme-X.Y.Z/src
   % ./configure \
       --enable-native-code=aarch64le \
       --enable-cross-compiling
   % make cross-host

   (May be able run this on the M1 laptop under Rosetta, but it's also
   likely you'll run into the same issue as before.)

2. Copy it over to your M1 laptop and run:

   % cd mit-scheme-X.Y.Z/src
   % (cd microcode && ./configure)
   % make cross-target
   % make check

You can run it out of the build tree with `./run-build', or install it
with `make install' (will respect any --prefix passed to configure in
case you want it installed in, e.g., /opt/local/mit-scheme/20201231).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]