Closed bstone closed 1 year ago
Apparently @antonleykin has been running into the same issue, as well as @trevorkarn on a non-M1 MacBook here: https://github.com/Macaulay2/M2/issues/2809
My guess is that it's a bug introduced in your version of Xcode or macOS and doesn't have anything to do with the architecture. Perhaps it would be useful if the three of you compared your macOS and Xcode versions.
I think you can run xcodebuild -version
to get the Xcode version, and the macOS version is in the output of brew config
.
Knowing this would be helpful, because presumably many people will have the same issue at the next workshop.
cc: @mikestillman
I don't have xcode installed. I use xcode-select --install
to get the command line tools. As for my OS version it's macOS: 12.6.5-arm64
. I could install xcode and see if that fixes things; I'll try this and report back.
For reference I have xcode-select version 2395.
I think that's what I meant; whatever is installed with xcode-select
. I don't actually have a mac, but hopefully @mikestillman or someone else with an M1 mac will be able to help.
@moorewf might also be able to help.
bash-3.2$ xcode-select --version
xcode-select version 2397.
(I have access to my mac only when in my office on campus.)
@mahrud I'm ready to attack this one. I'll try it out.
I don't quite understand how brew is doing the build, but one difference between the e directory and d directory builds (d works, but then e fails) seems to be the addition of -Xclang -MD
instead of -MD
by itself. I don't see (yet) where the
-Xclang
is added to the compile line. @mahrud Do you have any idea where that might occur?
@mahrud But the -Xclang
addition is probably done by cmake?
Either by cmake, or by some dependency (e.g. how fflas-ffpack used to add some extra argument). Note that cmake on linux isn't adding -Xclang
at any point.
For instance, on linux we have:
... -fopenmp -MD -MT.../aring.cpp.o -MF .../aring.cpp.o.d -o .../aring.cpp.o -c .../aring.cpp
But in the first comment above the equivalent command is:
... -Xpreprocessor -fopenmp .../libomp.dylib -Xclang -MD -MT .../aring.cpp.o -MF .../aring.cpp.o.d -o .../aring.cpp.o -c .../aring.cpp
If in ninja.build, I remove all the occurences of -Xclang
except those which have -fopenmp directly after them, the build (to M2-core) runs to completion.
Perhaps something is taking the 2 -fopenmp's on a command line, and removing the second one? I have seen this before, where some tools don't realize that the -Xclang -fopenmp are really to be combined. These are all in build.ninja however...
This is all because of the brain-damaged way that apple clang handles openmp... But still, it was working until fairly recently. I'm not sure who is removing the second -fopenmp... (if in fact that that is what is happening)
I think if we make sure there is only one -fopenmp on the compile line (I have no idea how to do that though), it would work, since it would not remove the -fopenmp after the -Xclang.
I'm not sure if there is any real difference between -Xpreprocessor and -Xclang. There probably is, but they both seem to be used with -fopenmp (and on the mac, you must explicitly include the libomp dylib too)
Actually, nothing in the d directory depends on openmp. Only the e directory because of this line:
https://github.com/Macaulay2/M2/blob/862517ce675dfa6bd86533b8da06f40ffff7118f/M2/Macaulay2/e/CMakeLists.txt#L363
So why is -fopenmp
included when building interpreter files at all?
Can you send me your CMakeCache.txt file from a build directory that is failing because of this error?
Here is one entry from build.ninja:
build Macaulay2/d/CMakeFiles/M2-interpreter.dir/M2types.c.o: C_COMPILER__M2-interpreter_unscanned_RelWithDebInfo /Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/d/M2types.c || cmake_object_order_depends_target_M2-interpreter
DEFINES = -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG
DEP_FILE = Macaulay2/d/CMakeFiles/M2-interpreter.dir/M2types.c.o.d
FLAGS = -O2 -g -DNDEBUG -std=gnu11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 -Wuninitialized -g --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-appleclang/usr-host/include -I/Users/mike/src/M2-complexes-for-1-21/M2/include -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-appleclang/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-uninitialized -Wno-unused -Wno-array-bounds -Wno-parentheses-equality -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib
INCLUDES = -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/d -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/c -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-appleclang/Macaulay2/d -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e/mathic -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e/memtailor -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e/mathicgb -I/opt/homebrew/opt/readline/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/libxml2 -I/opt/homebrew/include/eigen3 -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/system -isystem /opt/homebrew/include -isystem /opt/homebrew/opt/tbb/include -isystem /opt/homebrew/opt/libffi/include -isystem /opt/homebrew/Cellar/fflas-ffpack/2.5.0/include -isystem /opt/homebrew/opt/libomp/include -isystem /opt/homebrew/Cellar/givaro/4.2.0/include -isystem /opt/homebrew/opt/gmp/include
OBJECT_DIR = Macaulay2/d/CMakeFiles/M2-interpreter.dir
OBJECT_FILE_DIR = Macaulay2/d/CMakeFiles/M2-interpreter.dir
Notice that this file includes fflas, and givaro. I don't think these should be needed (only e directory files should need these). If they are being used, we should perhaps somehow change that.
Actually, maybe that will take some effort to tease that apart...
This is helpful, but it's from the interpreter. Could you get one from something in the engine? Like aring.cpp.o and engine.o.
I believe the interpreter only needs fflas and givaro for version.dd
, and fflas requires openmp, so that's why it's getting included there. That must mean something about the way this line links to openmp for the e directory is wrong. Looking at the CMakeCache file you sent me, the culprit must be one of these:
//CXX compiler flags for OpenMP parallelization
OpenMP_CXX_FLAGS:STRING=-Xclang -fopenmp
--
//C compiler flags for OpenMP parallelization
OpenMP_C_FLAGS:STRING=-Xclang -fopenmp
--
//Details about finding OpenMP_C
FIND_PACKAGE_MESSAGE_DETAILS_OpenMP_C:INTERNAL=[-Xclang -fopenmp][/opt/homebrew/lib/libomp.dylib][v5.0()]
//Details about finding OpenMP_CXX
FIND_PACKAGE_MESSAGE_DETAILS_OpenMP_CXX:INTERNAL=[-Xclang -fopenmp][/opt/homebrew/lib/libomp.dylib][v5.0()]
--
//Result of TRY_COMPILE
OpenMP_COMPILE_RESULT_CXX_Xclang fopenmp:INTERNAL=TRUE
//Result of TRY_COMPILE
OpenMP_COMPILE_RESULT_C_Xclang fopenmp:INTERNAL=TRUE
Maybe some code is treating the space in -Xclang -fopenmp
as two separate strings and printing only the first one? Looking at the build.ninja lines for something in the engine would be helpful.
@mahrud Here is the build.ninja entry for engine.cpp.o
build Macaulay2/e/CMakeFiles/M2-engine.dir/engine.cpp.o: CXX_COMPILER__M2-engine_unscanned_RelWithDebInfo /Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e/engine.cpp || cmake_object_order_depends_target_M2-engine
DEFINES = -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG
DEP_FILE = Macaulay2/e/CMakeFiles/M2-engine.dir/engine.cpp.o.d
FLAGS = -O2 -g -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 -Wuninitialized -g --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-appleclang/usr-host/include -I/Users/mike/src/M2-complexes-for-1-21/M2/include -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-appleclang/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-register -Wno-mismatched-tags -Wno-unused-variable -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib -Xclang
INCLUDES = -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/d -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/c -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-appleclang/Macaulay2/d -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e/mathic -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e/memtailor -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e/mathicgb -I/opt/homebrew/opt/readline/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/libxml2 -isystem /opt/homebrew/include/eigen3 -isystem /opt/homebrew/include -isystem /opt/homebrew/Cellar/fflas-ffpack/2.5.0/include -isystem /opt/homebrew/opt/libomp/include -isystem /opt/homebrew/Cellar/givaro/4.2.0/include -isystem /opt/homebrew/opt/gmp/include -isystem /opt/homebrew/opt/tbb/include
OBJECT_DIR = Macaulay2/e/CMakeFiles/M2-engine.dir
OBJECT_FILE_DIR = Macaulay2/e/CMakeFiles/M2-engine.dir
Using the Makefile generator for cmake gives the following (and essentially the same error). Here is the flags.make
file in the build dir at /Macaulay2/e/CMakeFiles/M2-engine.dir/flags.make
.
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.26
# compile C with /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
# compile CXX with /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
C_DEFINES = -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG
C_INCLUDES = -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/d -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/c -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-make-appleclang/Macaulay2/d -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e/mathic -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e/memtailor -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e/mathicgb -I/opt/homebrew/opt/readline/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/libxml2 -isystem /opt/homebrew/include/eigen3 -isystem /opt/homebrew/include -isystem /opt/homebrew/Cellar/fflas-ffpack/2.5.0/include -isystem /opt/homebrew/opt/libomp/include -isystem /opt/homebrew/Cellar/givaro/4.2.0/include -isystem /opt/homebrew/opt/gmp/include -isystem /opt/homebrew/opt/tbb/include
C_FLAGSarm64 = -O2 -g -DNDEBUG -std=gnu11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 -Wuninitialized -g --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-make-appleclang/usr-host/include -I/Users/mike/src/M2-complexes-for-1-21/M2/include -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-make-appleclang/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-unused-local-typedefs -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib
C_FLAGS = -O2 -g -DNDEBUG -std=gnu11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 -Wuninitialized -g --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-make-appleclang/usr-host/include -I/Users/mike/src/M2-complexes-for-1-21/M2/include -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-make-appleclang/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-unused-local-typedefs -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib
CXX_DEFINES = -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG
CXX_INCLUDES = -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/d -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/c -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-make-appleclang/Macaulay2/d -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e/mathic -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e/memtailor -I/Users/mike/src/M2-complexes-for-1-21/M2/Macaulay2/e/mathicgb -I/opt/homebrew/opt/readline/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/libxml2 -isystem /opt/homebrew/include/eigen3 -isystem /opt/homebrew/include -isystem /opt/homebrew/Cellar/fflas-ffpack/2.5.0/include -isystem /opt/homebrew/opt/libomp/include -isystem /opt/homebrew/Cellar/givaro/4.2.0/include -isystem /opt/homebrew/opt/gmp/include -isystem /opt/homebrew/opt/tbb/include
CXX_FLAGSarm64 = -O2 -g -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 -Wuninitialized -g --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-make-appleclang/usr-host/include -I/Users/mike/src/M2-complexes-for-1-21/M2/include -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-make-appleclang/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-register -Wno-mismatched-tags -Wno-unused-variable -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib -Xclang
CXX_FLAGS = -O2 -g -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 -Wuninitialized -g --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-make-appleclang/usr-host/include -I/Users/mike/src/M2-complexes-for-1-21/M2/include -I/Users/mike/src/M2-complexes-for-1-21/M2/BUILD/mike/builds.tmp/cmake-make-appleclang/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-register -Wno-mismatched-tags -Wno-unused-variable -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib -Xclang
@mahrud I am using cmake version 3.26.4, xcode version 2395, but moorewf is using 3.24.1, and building M2 works fine for him. It also worked for me until recently when I upgraded brew (and therefore cmake). Perhaps it is a bug that was introduced recently in cmake?
I made an issue for CMake: https://gitlab.kitware.com/cmake/cmake/-/issues/24966
For now, I'm patching it so e
doesn't link with OpenMP (though d
is still linked with it).
What is tripping up CMake is that fflas-ffpack is including the lines
Libs: -Xpreprocessor -fopenmp -I@@HOMEBREW_PREFIX@@/opt/libomp/include @@HOMEBREW_PREFIX@@/opt/libomp/lib/libomp.dylib
Cflags: -I${prefix}/include -Xpreprocessor -fopenmp -I@@HOMEBREW_PREFIX@@/opt/libomp/include @@HOMEBREW_PREFIX@@/opt/libomp/lib/libomp.dylib
while openmp is including the options:
-Xclang -fopenmp
If either both used -Xclang or -Xpreprocessor this wouldn't have happened.
Sorry I'm late to the party:
xcode-select --version
xcode-select version 2397.
Update, I upgraded from Monterey to Ventura and the install worked just fine. Not sure if you did something on your end or not, but thanks for working on this.
brew upgrade
failed for me, with this same error:
==> Upgrading macaulay2/tap/macaulay2
1.22-rc1 -> 1.22
==> Patching
==> git clone https://github.com/Macaulay2/M2-emacs.git M2/Macaulay2/editors/emacs --branch main
==> git clone https://github.com/Macaulay2/memtailor.git M2/submodules/memtailor
==> git clone https://github.com/Macaulay2/mathic.git M2/submodules/mathic
==> git clone https://github.com/Macaulay2/mathicgb.git M2/submodules/mathicgb
==> cmake -GNinja -SM2 -BM2/BUILD/build-brew -DBUILD_NATIVE=OFF -DCMAKE_PREFIX_PATH=/opt/homebrew/opt/bison;/opt
==> cmake --build M2/BUILD/build-brew --target M2-core M2-emacs M2-highlightjs
Last 15 lines from /Users/mike/Library/Logs/Homebrew/macaulay2/06.cmake:
[199/401] /opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang -DBOOST_REGEX_NO_LIB -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/libxml2 -I/opt/homebrew/opt/eigen/include/eigen3 -I/opt/homebrew/opt/mpsolve/include -I/opt/homebrew/opt/frobby/include -I/opt/homebrew/opt/factory/include -I/opt/homebrew/opt/flint/include -I/opt/homebrew/opt/ntl/include -I/opt/homebrew/opt/mpfi/include -I/opt/homebrew/opt/mpfr/include -I/opt/homebrew/opt/bdw-gc/include -I/opt/homebrew/opt/gdbm/include -I/opt/homebrew/opt/libatomic_ops/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/system -isystem /opt/homebrew/opt/gmp/include -isystem /opt/homebrew/Cellar/boost/1.82.0_1/include -isystem /opt/homebrew/opt/tbb/include -isystem /opt/homebrew/Cellar/givaro/4.2.0/include -isystem /opt/homebrew/Cellar/fflas-ffpack/2.5.0/include -O3 -DNDEBUG -std=gnu11 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -mmacosx-version-min=12 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-uninitialized -Wno-unused -Wno-array-bounds -Wno-parentheses-equality -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib -MD -MT Macaulay2/d/CMakeFiles/M2-interpreter.dir/actors5-tmp.c.o -MF Macaulay2/d/CMakeFiles/M2-interpreter.dir/actors5-tmp.c.o.d -o Macaulay2/d/CMakeFiles/M2-interpreter.dir/actors5-tmp.c.o -c /tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d/actors5-tmp.c
[200/401] /opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/libxml2 -I/opt/homebrew/opt/mpsolve/include -I/opt/homebrew/opt/frobby/include -I/opt/homebrew/opt/factory/include -I/opt/homebrew/opt/flint/include -I/opt/homebrew/opt/ntl/include -I/opt/homebrew/opt/mpfi/include -I/opt/homebrew/opt/mpfr/include -I/opt/homebrew/opt/bdw-gc/include -I/opt/homebrew/opt/gdbm/include -I/opt/homebrew/opt/libatomic_ops/include -isystem /opt/homebrew/opt/eigen/include/eigen3 -isystem /opt/homebrew/opt/gmp/include -isystem /opt/homebrew/Cellar/givaro/4.2.0/include -isystem /opt/homebrew/Cellar/fflas-ffpack/2.5.0/include -isystem /opt/homebrew/opt/tbb/include -O3 -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -mmacosx-version-min=12 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-register -Wno-mismatched-tags -Wno-unused-variable -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib -Xclang -MD -MT Macaulay2/e/CMakeFiles/M2-engine.dir/matrix-kbasis.cpp.o -MF Macaulay2/e/CMakeFiles/M2-engine.dir/matrix-kbasis.cpp.o.d -o Macaulay2/e/CMakeFiles/M2-engine.dir/matrix-kbasis.cpp.o -c /tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/matrix-kbasis.cpp
FAILED: Macaulay2/e/CMakeFiles/M2-engine.dir/matrix-kbasis.cpp.o
/opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/libxml2 -I/opt/homebrew/opt/mpsolve/include -I/opt/homebrew/opt/frobby/include -I/opt/homebrew/opt/factory/include -I/opt/homebrew/opt/flint/include -I/opt/homebrew/opt/ntl/include -I/opt/homebrew/opt/mpfi/include -I/opt/homebrew/opt/mpfr/include -I/opt/homebrew/opt/bdw-gc/include -I/opt/homebrew/opt/gdbm/include -I/opt/homebrew/opt/libatomic_ops/include -isystem /opt/homebrew/opt/eigen/include/eigen3 -isystem /opt/homebrew/opt/gmp/include -isystem /opt/homebrew/Cellar/givaro/4.2.0/include -isystem /opt/homebrew/Cellar/fflas-ffpack/2.5.0/include -isystem /opt/homebrew/opt/tbb/include -O3 -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -mmacosx-version-min=12 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-register -Wno-mismatched-tags -Wno-unused-variable -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib -Xclang -MD -MT Macaulay2/e/CMakeFiles/M2-engine.dir/matrix-kbasis.cpp.o -MF Macaulay2/e/CMakeFiles/M2-engine.dir/matrix-kbasis.cpp.o.d -o Macaulay2/e/CMakeFiles/M2-engine.dir/matrix-kbasis.cpp.o -c /tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/matrix-kbasis.cpp
error: unknown argument: '-MD'
[201/401] /opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/libxml2 -I/opt/homebrew/opt/mpsolve/include -I/opt/homebrew/opt/frobby/include -I/opt/homebrew/opt/factory/include -I/opt/homebrew/opt/flint/include -I/opt/homebrew/opt/ntl/include -I/opt/homebrew/opt/mpfi/include -I/opt/homebrew/opt/mpfr/include -I/opt/homebrew/opt/bdw-gc/include -I/opt/homebrew/opt/gdbm/include -I/opt/homebrew/opt/libatomic_ops/include -isystem /opt/homebrew/opt/eigen/include/eigen3 -isystem /opt/homebrew/opt/gmp/include -isystem /opt/homebrew/Cellar/givaro/4.2.0/include -isystem /opt/homebrew/Cellar/fflas-ffpack/2.5.0/include -isystem /opt/homebrew/opt/tbb/include -O3 -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -mmacosx-version-min=12 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-register -Wno-mismatched-tags -Wno-unused-variable -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib -Xclang -MD -MT Macaulay2/e/CMakeFiles/M2-engine.dir/matrix-sort.cpp.o -MF Macaulay2/e/CMakeFiles/M2-engine.dir/matrix-sort.cpp.o.d -o Macaulay2/e/CMakeFiles/M2-engine.dir/matrix-sort.cpp.o -c /tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/matrix-sort.cpp
FAILED: Macaulay2/e/CMakeFiles/M2-engine.dir/matrix-sort.cpp.o
/opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/libxml2 -I/opt/homebrew/opt/mpsolve/include -I/opt/homebrew/opt/frobby/include -I/opt/homebrew/opt/factory/include -I/opt/homebrew/opt/flint/include -I/opt/homebrew/opt/ntl/include -I/opt/homebrew/opt/mpfi/include -I/opt/homebrew/opt/mpfr/include -I/opt/homebrew/opt/bdw-gc/include -I/opt/homebrew/opt/gdbm/include -I/opt/homebrew/opt/libatomic_ops/include -isystem /opt/homebrew/opt/eigen/include/eigen3 -isystem /opt/homebrew/opt/gmp/include -isystem /opt/homebrew/Cellar/givaro/4.2.0/include -isystem /opt/homebrew/Cellar/fflas-ffpack/2.5.0/include -isystem /opt/homebrew/opt/tbb/include -O3 -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -mmacosx-version-min=12 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-unused-local-typedefs -Wno-deprecated-register -Wno-mismatched-tags -Wno-unused-variable -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib -Xclang -MD -MT Macaulay2/e/CMakeFiles/M2-engine.dir/matrix-sort.cpp.o -MF Macaulay2/e/CMakeFiles/M2-engine.dir/matrix-sort.cpp.o.d -o Macaulay2/e/CMakeFiles/M2-engine.dir/matrix-sort.cpp.o -c /tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/matrix-sort.cpp
error: unknown argument: '-MD'
[202/401] /opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DBOOST_REGEX_NO_LIB -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/libxml2 -I/opt/homebrew/opt/eigen/include/eigen3 -I/opt/homebrew/opt/mpsolve/include -I/opt/homebrew/opt/frobby/include -I/opt/homebrew/opt/factory/include -I/opt/homebrew/opt/flint/include -I/opt/homebrew/opt/ntl/include -I/opt/homebrew/opt/mpfi/include -I/opt/homebrew/opt/mpfr/include -I/opt/homebrew/opt/bdw-gc/include -I/opt/homebrew/opt/gdbm/include -I/opt/homebrew/opt/libatomic_ops/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/system -isystem /opt/homebrew/opt/gmp/include -isystem /opt/homebrew/Cellar/boost/1.82.0_1/include -isystem /opt/homebrew/opt/tbb/include -isystem /opt/homebrew/Cellar/givaro/4.2.0/include -isystem /opt/homebrew/Cellar/fflas-ffpack/2.5.0/include -O3 -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -mmacosx-version-min=12 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-uninitialized -Wno-unused -Wno-array-bounds -Wno-mismatched-tags -Wno-parentheses-equality -Wno-macro-redefined -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib -MD -MT Macaulay2/d/CMakeFiles/M2-interpreter.dir/interp-tmp.cc.o -MF Macaulay2/d/CMakeFiles/M2-interpreter.dir/interp-tmp.cc.o.d -o Macaulay2/d/CMakeFiles/M2-interpreter.dir/interp-tmp.cc.o -c /tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d/interp-tmp.cc
[203/401] /opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DBOOST_REGEX_NO_LIB -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/libxml2 -I/opt/homebrew/opt/eigen/include/eigen3 -I/opt/homebrew/opt/mpsolve/include -I/opt/homebrew/opt/frobby/include -I/opt/homebrew/opt/factory/include -I/opt/homebrew/opt/flint/include -I/opt/homebrew/opt/ntl/include -I/opt/homebrew/opt/mpfi/include -I/opt/homebrew/opt/mpfr/include -I/opt/homebrew/opt/bdw-gc/include -I/opt/homebrew/opt/gdbm/include -I/opt/homebrew/opt/libatomic_ops/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/system -isystem /opt/homebrew/opt/gmp/include -isystem /opt/homebrew/Cellar/boost/1.82.0_1/include -isystem /opt/homebrew/opt/tbb/include -isystem /opt/homebrew/Cellar/givaro/4.2.0/include -isystem /opt/homebrew/Cellar/fflas-ffpack/2.5.0/include -O3 -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -mmacosx-version-min=12 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-uninitialized -Wno-unused -Wno-array-bounds -Wno-mismatched-tags -Wno-parentheses-equality -Wno-macro-redefined -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib -MD -MT Macaulay2/d/CMakeFiles/M2-interpreter.dir/interface-tmp.cc.o -MF Macaulay2/d/CMakeFiles/M2-interpreter.dir/interface-tmp.cc.o.d -o Macaulay2/d/CMakeFiles/M2-interpreter.dir/interface-tmp.cc.o -c /tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d/interface-tmp.cc
[204/401] /opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DBOOST_REGEX_NO_LIB -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -DGIT_DESCRIPTION=\"version-1.22\" -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/libxml2 -I/opt/homebrew/opt/eigen/include/eigen3 -I/opt/homebrew/opt/mpsolve/include -I/opt/homebrew/opt/frobby/include -I/opt/homebrew/opt/factory/include -I/opt/homebrew/opt/flint/include -I/opt/homebrew/opt/ntl/include -I/opt/homebrew/opt/mpfi/include -I/opt/homebrew/opt/mpfr/include -I/opt/homebrew/opt/bdw-gc/include -I/opt/homebrew/opt/gdbm/include -I/opt/homebrew/opt/libatomic_ops/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/system -isystem /opt/homebrew/opt/gmp/include -isystem /opt/homebrew/Cellar/boost/1.82.0_1/include -isystem /opt/homebrew/opt/tbb/include -isystem /opt/homebrew/Cellar/givaro/4.2.0/include -isystem /opt/homebrew/Cellar/fflas-ffpack/2.5.0/include -O3 -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -mmacosx-version-min=12 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-uninitialized -Wno-unused -Wno-array-bounds -Wno-mismatched-tags -Wno-parentheses-equality -Wno-macro-redefined -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib -MD -MT Macaulay2/d/CMakeFiles/M2-interpreter.dir/version-tmp.cc.o -MF Macaulay2/d/CMakeFiles/M2-interpreter.dir/version-tmp.cc.o.d -o Macaulay2/d/CMakeFiles/M2-interpreter.dir/version-tmp.cc.o -c /tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d/version-tmp.cc
[205/401] /opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DBOOST_REGEX_NO_LIB -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/libxml2 -I/opt/homebrew/opt/eigen/include/eigen3 -I/opt/homebrew/opt/mpsolve/include -I/opt/homebrew/opt/frobby/include -I/opt/homebrew/opt/factory/include -I/opt/homebrew/opt/flint/include -I/opt/homebrew/opt/ntl/include -I/opt/homebrew/opt/mpfi/include -I/opt/homebrew/opt/mpfr/include -I/opt/homebrew/opt/bdw-gc/include -I/opt/homebrew/opt/gdbm/include -I/opt/homebrew/opt/libatomic_ops/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/system -isystem /opt/homebrew/opt/gmp/include -isystem /opt/homebrew/Cellar/boost/1.82.0_1/include -isystem /opt/homebrew/opt/tbb/include -isystem /opt/homebrew/Cellar/givaro/4.2.0/include -isystem /opt/homebrew/Cellar/fflas-ffpack/2.5.0/include -O3 -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -mmacosx-version-min=12 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-uninitialized -Wno-unused -Wno-array-bounds -Wno-mismatched-tags -Wno-parentheses-equality -Wno-macro-redefined -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib -MD -MT Macaulay2/d/CMakeFiles/M2-interpreter.dir/boost-regex.cpp.o -MF Macaulay2/d/CMakeFiles/M2-interpreter.dir/boost-regex.cpp.o.d -o Macaulay2/d/CMakeFiles/M2-interpreter.dir/boost-regex.cpp.o -c /tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/d/boost-regex.cpp
[206/401] /opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DBOOST_REGEX_NO_LIB -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/libxml2 -I/opt/homebrew/opt/eigen/include/eigen3 -I/opt/homebrew/opt/mpsolve/include -I/opt/homebrew/opt/frobby/include -I/opt/homebrew/opt/factory/include -I/opt/homebrew/opt/flint/include -I/opt/homebrew/opt/ntl/include -I/opt/homebrew/opt/mpfi/include -I/opt/homebrew/opt/mpfr/include -I/opt/homebrew/opt/bdw-gc/include -I/opt/homebrew/opt/gdbm/include -I/opt/homebrew/opt/libatomic_ops/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/Macaulay2/system -isystem /opt/homebrew/opt/gmp/include -isystem /opt/homebrew/Cellar/boost/1.82.0_1/include -isystem /opt/homebrew/opt/tbb/include -isystem /opt/homebrew/Cellar/givaro/4.2.0/include -isystem /opt/homebrew/Cellar/fflas-ffpack/2.5.0/include -O3 -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -mmacosx-version-min=12 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/include -I/tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/include -Wall -Wextra -Wfatal-errors -Wcast-qual -Wno-unused-parameter -Wno-attributes -Wno-unused-command-line-argument -Wno-cast-qual -Wno-sign-compare -Wno-uninitialized -Wno-unused -Wno-array-bounds -Wno-mismatched-tags -Wno-parentheses-equality -Wno-macro-redefined -Xpreprocessor -fopenmp /opt/homebrew/opt/libomp/lib/libomp.dylib -MD -MT Macaulay2/d/CMakeFiles/M2-interpreter.dir/boostmath-tmp.cc.o -MF Macaulay2/d/CMakeFiles/M2-interpreter.dir/boostmath-tmp.cc.o.d -o Macaulay2/d/CMakeFiles/M2-interpreter.dir/boostmath-tmp.cc.o -c /tmp/macaulay2-20230620-84510-16xq6v1/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d/boostmath-tmp.cc
ninja: build stopped: subcommand failed.
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/macaulay2/homebrew-tap/issues
I thought this patch should have alleviated it until a new version of cmake is out.
You could try building bottle with --debug
which lets you enter a shell when the compiles fails. At that stage, you could check if the patch successfully applied to Macaulay2/e/CMakeLists.txt
or not.
The macOS builds seem to be working fine now, so I'll close this issue. Feel free to comment or reopen if you experience the same issue when building M2 via brew.
The patch added above can be removed once the next version of CMake is released with this patch included.
@mikestillman if you still can't install M2 via brew, try the following:
cd $(brew --repo macaulay2/tap)
git fetch origin
git checkout main
git reset --hard origin/main
And then build again.
When installing on my M1 Macbook Pro via brew I get the error
unknown argument: '-MD'
. I have pasted terminal output below as well as my brew config. Not sure if I am missing a dependancy or not.Brew Config
Terminal Output