Closed ggreif closed 2 years ago
nix-2.4
, GC_DONT_GC: 1
is needed. (It just has to be present, the value seems to not matter.)I have locally just upgraded to nix-2.4
on this Mac. I get:
[nix-shell:~/motoko]$ nix-build -A moc -A mo-ide -A mo-doc -A js.moc -A js.moc_interpreter
Segmentation fault: 11
So we have a repro. Prefixing the command with env GC_DONT_GC=1
makes the problem go away.
It also goes away if I reduce the 5 attributes to any 4 :-)
Running nix-instantiate -A moc -A mo-ide -A mo-doc -A js.moc -A js.moc_interpreter
also works.
$ nix --version
nix (Nix) 2.4
$ nix --version
nix (Nix) 2.8.1
The repro recipe seems to work okay.
GC_DONT_GC
is eliminated.
Closing.
We had a hiccup with the macOS-sided release action on GitHub. It failed with
See https://github.com/dfinity/motoko/runs/4264083664.
So a quick-fix was installed: #2911.
We have to find out where the problem lies and how to fix it for good.
We could also run the building part of the release action (without the upload) on each
master
branch build to get an early warning next time.