Dear all,
thanks to Qian, I did what you suggested, but I do not know
whether it works as I encountered new problems.
1. in Contents/Resources/usr/local/bin/fricas, the following file is needed:
/usr/local/lib/fricas/target/x86_64-apple-darwin19.6.0
my version is only: x86_64-apple-darwin17
2. The downloaded Apple binary version still says in German: fricas“ can not be opened, as (null) is not allowed to open documents in terminal.
3. I commented the error causing check in configure out
1st attempt: downloaded 1.3.8 turnball,
error on configure:
~/downloads/fricas-1.3.8$ ./configure
checking build system type... arm-apple-darwin22.3.0
checking host system type... arm-apple-darwin22.3.0
checking target system type... arm-apple-darwin22.3.0
checking for in-tree build on case insensitive file system...
configure: error: in tree build on case insensitive file system
is not supported. Use out-of-source-tree build instead.
how do I use "out-of-source-tree build" instead?
Then I get the error message:
checking Lisp implementation... mmap:
Cannot allocate memory
ensure_space: failed to validate 1073741824 bytes at
0x1000000000
(hint: Try "ulimit -a"; maybe you should increase memory
limits.)
sed: config_cl.out: No such file or directory
configure: error: Unable to determine Lisp flavor
Next attempt was to update SBCL to actual version 2.3.2, same
error
~/sbcl$ sh make.sh
mmap: Cannot allocate memory
ensure_space: failed to validate 1073741824 bytes at
0x1000000000
(hint: Try "ulimit -a"; maybe you should increase memory
limits.)
No working host Common Lisp implementation.
See ./INSTALL, the "SOURCE DISTRIBUTION" section
and this memory error also occurs, when I
wanted to run my old FriCAS version, which I once compiled on my
old Macbook.
Principle thaughts: x86 is Intel, but Apple now has its own M2
chip, so allone for that reasons an x86 binary probably does not
work. So I have to use and fix the compile problem with case
insensitive file system (it is case sensitive!) and the SBCL
memory problem.
Any ideas an help is really appreciated. Thanks a lot.
Johannes
| Betreff: | Re: [fricas-devel] Problems with FriCAS on Apple M2 Pro Ventura 13.2.1 |
|---|---|
| Datum: | Tue, 21 Mar 2023 12:28:06 +0800 |
| Von: | Qian Yun <oldk...@gmail.com> |
| Antwort an: | fricas...@googlegroups.com |
| An: | fricas...@googlegroups.com |
-- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/48f1d348-3d0f-327a-ae23-c64430fb69ad%40gmail.com.
-- Mit freundlichen Grüßen Johannes Grabmeier Prof. Dr. Johannes Grabmeier, Köckstraße 1, D-94469 Deggendorf Tel. +49-(0)-991-2979584, Tel. +49-(0)-151-681-70756 Fax: +49-(0)-991-2979592
-- Mit freundlichen Grüßen Johannes Grabmeier Prof. Dr. Johannes Grabmeier, Köckstraße 1, D-94469 Deggendorf Tel. +49-(0)-991-2979584, Tel. +49-(0)-151-681-70756 Fax: +49-(0)-991-2979592
High,
that was a very useful remark, how could one have the idea that
default of gcc is x86_64 on an arm64 machine. It was also hard to
find out that my version is
armv8.5-a
(any standard way to find that out by some command or whatever for a later documentation of my trial and errors?)
I proceeded as Gregory has suggested, not know what concrete
things one has to do for
But you have also configure target options for that: ./configure --help |snip] System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST]
I checked the configure log file, and for me this seems ok, e.g.
ac_cv_target=arm-apple-darwin22.3.0
FRICAS='/Users/jgrabmeier/fricas-1.3.8/target/arm-apple-darwin22.3.0'
fricas_targetdir='/Users/jgrabmeier/fricas-1.3.8/target/arm-apple-darwin22.3.0'
host='arm-apple-darwin22.3.0'
But the gmake failed, as the directory is not created (again referring to x86):
~/fricas-1.3.8$ make
cd ./src &&
/Applications/Xcode.app/Contents/Developer/usr/bin/make
BUILD_DATE="`date`" all-src
gcc -march=armv8.5-a -g -dynamiclib -single_module bsdsignal.o
cfuns-c.o sockio-c.o -o
/Users/jgrabmeier/fricas-1.3.8/target/arm-apple-darwin22.3.0/lib/libspad.so
ld: warning: ignoring file bsdsignal.o, building for macOS-arm64
but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file cfuns-c.o, building for macOS-arm64
but attempting to link with file built for unknown-x86_64
ld: warning: ignoring file sockio-c.o, building for macOS-arm64
but attempting to link with file built for unknown-x86_64
ld: can't open output file for writing:
/Users/jgrabmeier/fricas-1.3.8/target/arm-apple-darwin22.3.0/lib/libspad.so,
errno=2 for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to
see invocation)
make[2]: ***
[/Users/jgrabmeier/fricas-1.3.8/target/arm-apple-darwin22.3.0/lib/libspad.so]
Error 1
make[1]: *** [all-lib] Error 2
make: *** [all-src] Error 2
Regards Johannes
High,
that was a very useful remark, how could one have the idea that default of gcc is x86_64 on an arm64 machine. It was also hard to find out that my version is
armv8.5-a
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/6324bbac-d565-d633-95c2-3b1c3f72721f%40grabmeier.net.
it seems that this looks ok:
~$ uname -a
Darwin MBPvonJohannes.fritz.box 22.3.0 Darwin Kernel Version
22.3.0: Mon Jan 30 20:39:46 PST 2023;
root:xnu-8792.81.3~2/RELEASE_ARM64_T6020 arm64
~$
~$ gcc -v
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin22.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/CAAWYfq2VJvvsvYhPdQyAmBVcYFfRsbfPFOfrrqpCYiWHseqU5g%40mail.gmail.com.
it seems that this looks ok:
~$ uname -a
Darwin MBPvonJohannes.fritz.box 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:46 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6020 arm64
~$
~$ gcc -v
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin22.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/db6ba101-6dd8-4171-de71-fe96192823e8%40gmail.com.
"armv9-a" That is not what M2 is. It is only ARMv8.5-A (actually ARMv8.6 just without SM4). Indeed, see https://reviews.llvm.org/D134351"(thanks Apple for stealing the name)" They did not steal anything, llvm has permissive license.
Intel compiler also nowadays uses it."any standard way to find that out by some command or whatever for a later documentation" march=native with clang
--
You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/6371feb0-aa5a-4f9f-a911-abbd7a75f681n%40googlegroups.com.
just to inform you: FriCAS 1.3.8 has successfully been compiled and now is running on my new Macbook Pro M2 arm64v8.5-a Ventura 13.2.1. Thanks for all the help. I will write down a recipe what to do to make it work and publish it here.
Johannes
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/CAAWYfq3jsmDrLXvBorUScGJkrkeEOx%3DKodQd%3DXnjmRis2to4sg%40mail.gmail.com.
"armv9-a" That is not what M2 is. It is only ARMv8.5-A (actually ARMv8.6 just without SM4). Indeed, see https://reviews.llvm.org/D134351