[m-users.] aarch64 runtime reports "caught segmentation violation"

Sean Charles (emacstheviking) objitsu at gmail.com
Tue May 17 22:44:56 AEST 2022


Possibly *nix specific then, I ran the code fine on my M1 Mac mini with no issues;


➜  tmp cat hello.m
:- module hello.

:- interface.
:- import_module io.
:- pred main(io, io).
:- mode main(di, uo) is det.

:- implementation.

main(IO0, IO1) :-
  io.write_string("Hello World!\n", IO0, IO1).

➜  tmp ./hello
Hello World!

➜  tmp uname -a
Darwin Seans-Mac-mini.local 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:47:26 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T8101 arm64

So, could be something in the specific set of libraries used on your platform I guess.
Sorry can’t be more help.


> On 17 May 2022, at 13:21, Van Ly <van.ly at sdf.org> wrote:
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20220517/4f7b1563/attachment.html>


More information about the users mailing list