ciao-lang/ciao

Installation issue on big sur

Gauntlet173 opened this issue · 4 comments

I apologize if this should have an obvious solution, but I am attempting to install CIAO on a Mac M1 running big sur, and I am getting the following response when running ./ciao-boo.sh get devenv:

=> builder: building [boot]
   compiling ciaoengine.DARWINarm64 (engine for ciaoc.sta)
   compiling ciao_builder (command) [using ciaoc.sta]
/Users/jason/ciao/builder/sh_boot/autoboot.sh: line 153: 57565 Killed: 9               CIAOPATH="$default_ciaopath" CIAOALIASPATH="$default_ciaoaliaspath" CIAOROOT=`crossp "$ciaoroot"` CIAOHDIR=`crossp "$bld_hdir"` CIAOENGINE=`crossp "$engexec"` $engdbg "$engexec" "$@" -C -b "$cpxexec" $engopts
   reusing ciaoengine.DARWINarm64 (engine for ciao_builder)
/Users/jason/ciao/builder/sh_boot/autoboot.sh: line 153: 57571 Killed: 9               CIAOPATH="$default_ciaopath" CIAOALIASPATH="$default_ciaoaliaspath" CIAOROOT=`crossp "$ciaoroot"` CIAOHDIR=`crossp "$bld_hdir"` CIAOENGINE=`crossp "$engexec"` $engdbg "$engexec" "$@" -C -b "$cpxexec" $engopts

The same thing happens whether it is being run as the local user or as root. Any help would be appreciated.

jfmc commented

It seems that Ciao is trying to compile itself for the M1 architecture. We are waiting for a Mac Mini M1 this week and we'll to have a native port of Ciao relatively quickly (since Ciao is already running on other ARM CPUs like Raspberry Pi or Android under Termux).

Meanwhile, I think that it could still be possible to compile and run Ciao in emulated x86 mode using Rosetta 2. The usual way to do that (I think, because I do not have first hand access to any M1 yet) is running command prefixed with:

$ arch -x86_64 <your command>

An easier method would be running all the installation commands under a Terminal.app that is started in Rosetta mode (under Terminal press cmd(⌘)+I, then "Open using Rosetta" option).

I guess that in order to use Ciao under Emacs, it also needs to run in emulated mode.

That's very helpful, thank you. Where should I watch for the new port?

jfmc commented

We finally got access to a M1 machine and port it with minor changes (we had some troubles since codesigning patched executables -- like those that Ciao generates for standalone executables -- seems necessary now in Apple Silicon) . We are still doing some internal testing but I expect to push the changes today or tomorrow.

jfmc commented

Closing this issue. New version 1.20 compiles fine under Apple M1 (we are using it regularly).