Ravenbrook / mps

The Memory Pool System
http://www.ravenbrook.com/project/mps
Other
549 stars 72 forks source link

Configuring on M1 mac fails (macOS 14) #281

Open gerd-moellmann opened 4 months ago

gerd-moellmann commented 4 months ago

Configuring mps (./configure ...) on an M1 mac with macOS 14.3.1 fails for me. Making the change below and regenerating configure with autoconf lets me build, and all tests succeeded.

modified   configure.ac
@@ -91,6 +91,17 @@ case $host/$CLANG in
       TEST_TARGET=test-xcode-build
       PFMCFLAGS="$CFLAGS_LL"
     ;;
+  arm-apple-darwin*/*)
+      AC_MSG_RESULT([Mac OS X ARM64])
+      MPS_OS_NAME=xc
+      MPS_ARCH_NAME=a6
+      MPS_BUILD_NAME=ll
+      BUILD_TARGET=build-via-xcode
+      CLEAN_TARGET=clean-xcode-build
+      INSTALL_TARGET=install-xcode-build
+      TEST_TARGET=test-xcode-build
+      PFMCFLAGS="$CFLAGS_LL"
+    ;;
   i*86-*-darwin*/*)
       AC_MSG_RESULT([Mac OS X x86])
       MPS_OS_NAME=xc
waywardmonkeys commented 4 months ago

It is odd, but I get arm there as well. (Not arm64, not aarch64.)

Support for this platform was previously added in e5066a7c7a76103875d89c55c4770b3d989bf61e ... so I'm curious if this changed since then or what.

waywardmonkeys commented 4 months ago

I've done some analysis and will submit a PR momentarily for what I found.

waywardmonkeys commented 4 months ago

See PR #283.

gerd-moellmann commented 4 months ago

Bruce Mitchener @.***> writes:

See PR #283.

Thanks!