The compilation of CSL Reduce fails on macOS 10.15 x86_64 with the following message:
In file included from trunk/csl/cslbase/restart.cpp:2220:
trunk/csl/cslbase/testcode.cpp:41:37: error: use of undeclared identifier 'fringe'
cout << "Fringe = " << Addr(fringe) << " at end of GC\n";
^
trunk/csl/cslbase/testcode.cpp:42:36: error: use of undeclared identifier 'limit'
cout << "Limit = " << Addr(limit) << " at end of GC\n";
^
2 errors generated.
gmake[2]: *** [Makefile:2970: csl-restart.o] Errore 1
gmake[2]: uscita dalla directory «trunk/cslbuild/x86_64-mac_10.15_catalina-darwin19.6.0/csl»
make[1]: *** [all] Error 2
Best regards, Marco
Apologies - the stuff in testcode.cpp is not relevant except when testing
new experiements so that was accidental leakage of test code to where it
could hurt day to day builds. I hope I have now fixed it. Arthur
On Mon, 15 Nov 2021, Marco Ferraris wrote:
Related
Bugs:
#138Hi Norman,
compiling CSL Reduce 6172 works well both on macintel64 and aarch64-mac_11_bigsur-darwin20.6.0.
Compiling PSL Reduce 6172 works well on on macintel64 but fails on M1 Mac with the following message:
~/sw/reduce-algebra/trunk/psl/bootstrap.sh aarch64-mac_11_bigsur-darwin20.6.0
~/sw/reduce-algebra/trunk/pslbuild/aarch64-mac_11_bigsur-darwin20.6.0
++++++ Build initial bootstrap system ++++++
~/sw/reduce-algebra/trunk/psl/bootstrap.sh: line 110: ./bpsl: No such file or directory
~/sw/reduce-algebra/trunk/psl/bootstrap.sh: line 128: ./bpsl: No such file or directory
Bootstrap reduce built
Is it possible to have a working M1 bpsl?
Best regards
Marco
Related
Bugs:
#138CSL is basically all coded in C++ so moving that to the Mac M1 only had to
worry about waiting for all the libraries that it needs to rely on to get
adjusted for macports. For PSL a compiler back-end targetting aarch64 is
needed, and Rainer has one of those coming on well but not yet released.
By running on the m1 via rosetta2 so you get a shell that thinks it is an
x86_64 there is a good chance that the existing version will work nicely,
and the performance may be better than you would have feared.
Arthur
On Mon, 15 Nov 2021, Marco Ferraris wrote:
Related
Bugs:
#138A bpsl for Apple M1 needs a rewrite of PSL's memory layout, because of the W^X security feature on "Apple Silicon". W^X isn't a bad thing (OpenBSD has it since a couple of years which is the reason PSL doesn't run on OpenBSD), but I wish Apple wouldn't put spokes in our wheels again and again by changing the rules on the fly.
Executive summary: don't hold your breath waiting for a native PSL on M1!
Rainer
The fastest way in order to install "sheep, classi and stensor" on my M1 MacBook Air is to have a native M1 version of PSL. I’ll wait until you release it.
Best regards
Marco
Bug in compilation was corrected