Macaulay2 / homebrew-tap

The Macaulay2 tap for Homebrew
6 stars 7 forks source link

Error in homebrew installing M2 version 1.22 #189

Closed mgacummings closed 1 year ago

mgacummings commented 1 year ago

In trying to upgrade to version 1.22 using brew install Macaulay2/tap/M2, I get error: unknown argument: '-MD' followed by ninja: build stopped: subcommand failed..

I am using an Apple Mac on an M1 chip running macOS Ventura 13.4.1 (up-to-date).

I'm not too experienced with homebrew, but here's where in the output it looks like the error begins to occur:

==> cmake -GNinja -SM2 -BM2/BUILD/build-brew -DBUILD_NATIVE=OFF -DCMAKE_PREFIX_P
==> cmake --build M2/BUILD/build-brew --target M2-core M2-emacs M2-highlightjs

After this appears, there are some more logs before the process terminates with the -MD and ninja error messages:

Last 15 lines from /Users/mike/Library/Logs/Homebrew/macaulay2/06.cmake:
/opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX13.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/MacOSX13.sdk -mmacosx-version-min=13 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/include -I/tmp/macaulay2-20230627-74719-ik6jks/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-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/matrix-kbasis.cpp
error: unknown argument: '-MD'
[214/405] /opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX13.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/MacOSX13.sdk -mmacosx-version-min=13 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/include -I/tmp/macaulay2-20230627-74719-ik6jks/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/interface/aring.cpp.o -MF Macaulay2/e/CMakeFiles/M2-engine.dir/interface/aring.cpp.o.d -o Macaulay2/e/CMakeFiles/M2-engine.dir/interface/aring.cpp.o -c /tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/interface/aring.cpp
FAILED: Macaulay2/e/CMakeFiles/M2-engine.dir/interface/aring.cpp.o
/opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX13.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/MacOSX13.sdk -mmacosx-version-min=13 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/include -I/tmp/macaulay2-20230627-74719-ik6jks/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/interface/aring.cpp.o -MF Macaulay2/e/CMakeFiles/M2-engine.dir/interface/aring.cpp.o.d -o Macaulay2/e/CMakeFiles/M2-engine.dir/interface/aring.cpp.o -c /tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/interface/aring.cpp
error: unknown argument: '-MD'
[215/405] /opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX13.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/MacOSX13.sdk -mmacosx-version-min=13 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/include -I/tmp/macaulay2-20230627-74719-ik6jks/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/res-a2-gb.cpp.o -MF Macaulay2/e/CMakeFiles/M2-engine.dir/res-a2-gb.cpp.o.d -o Macaulay2/e/CMakeFiles/M2-engine.dir/res-a2-gb.cpp.o -c /tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/res-a2-gb.cpp
FAILED: Macaulay2/e/CMakeFiles/M2-engine.dir/res-a2-gb.cpp.o
/opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX13.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/MacOSX13.sdk -mmacosx-version-min=13 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/include -I/tmp/macaulay2-20230627-74719-ik6jks/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/res-a2-gb.cpp.o -MF Macaulay2/e/CMakeFiles/M2-engine.dir/res-a2-gb.cpp.o.d -o Macaulay2/e/CMakeFiles/M2-engine.dir/res-a2-gb.cpp.o -c /tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/res-a2-gb.cpp
error: unknown argument: '-MD'
[216/405] /opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX13.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/MacOSX13.sdk -mmacosx-version-min=13 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/include -I/tmp/macaulay2-20230627-74719-ik6jks/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/interface/cra.cpp.o -MF Macaulay2/e/CMakeFiles/M2-engine.dir/interface/cra.cpp.o.d -o Macaulay2/e/CMakeFiles/M2-engine.dir/interface/cra.cpp.o -c /tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/interface/cra.cpp
FAILED: Macaulay2/e/CMakeFiles/M2-engine.dir/interface/cra.cpp.o
/opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX13.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/MacOSX13.sdk -mmacosx-version-min=13 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/include -I/tmp/macaulay2-20230627-74719-ik6jks/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/interface/cra.cpp.o -MF Macaulay2/e/CMakeFiles/M2-engine.dir/interface/cra.cpp.o.d -o Macaulay2/e/CMakeFiles/M2-engine.dir/interface/cra.cpp.o -c /tmp/macaulay2-20230627-74719-ik6jks/M2-release-1.22/M2/Macaulay2/e/interface/cra.cpp
error: unknown argument: '-MD'
ninja: build stopped: subcommand failed.
mahrud commented 1 year ago

Could you run the following:

cd $(brew --repo macaulay2/tap)
git show --stat
git pull
mgacummings commented 1 year ago

I'm up to date:

Mikes-Mac:~ mike$ cd $(brew --repo macaulay2/tap)
Mikes-Mac:homebrew-tap mike$ git show --stat
commit 3ec7d97f6082496c87c520dd001d4d0328c4829a (HEAD -> main)
Author: Mahrud Sayrafi <mahrud@berkeley.edu>
Date:   Fri Jun 2 15:39:24 2023 -0400

    replace OpenMP patch

 Formula/macaulay2.rb | 26 ++++++++++++--------------
 1 file changed, 12 insertions(+), 14 deletions(-)
Mikes-Mac:homebrew-tap mike$ git pull
Already up to date.
mahrud commented 1 year ago

You are definitely not up to date:

[mahrud@noether ~]$ cd $(brew --repo macaulay2/tap)
[mahrud@noether homebrew-tap]$ git show --stat
commit 3ff29ced0d752e979412c66605cb5dee2367f36f (HEAD -> main, origin/main, origin/HEAD)
Author: Mahrud Sayrafi <mahrud@umn.edu>
Date:   Thu Jun 22 15:01:53 2023 +0000

    macaulay2: update 1.22_1 bottle.

 Formula/macaulay2.rb | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

But that explains the issue! I wonder why that is happening ...

mahrud commented 1 year ago

Could you run git status? Maybe you're on a different branch somehow and need to get back with git checkout main.

mgacummings commented 1 year ago

Huh that is odd. Here's what I get with git status:

Mikes-Mac:homebrew-tap mike$ git status
On branch main
Your branch is ahead of 'origin/main' by 1 commit.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean
Mikes-Mac:homebrew-tap mike$ git checkout main
Already on 'main'
Your branch is ahead of 'origin/main' by 1 commit.
  (use "git push" to publish your local commits)

I'm not sure why I'm ahead.

mahrud commented 1 year ago

It's probably not your fault. I think you pulled at an unlucky time when I was trying something. Try this:

git reset --hard origin/main

Also, it would be very helpful for other users with your setup if you could bottle M2 and upload it somewhere so I can add it on github:

brew install --build-bottle M2
brew bottle --no-rebuild M2

Thanks!

mgacummings commented 1 year ago

Thanks for your help! I've got version 1.22 installed now.

Here's the output from the bottling if you want it:

Mikes-Mac:homebrew-tap mike$ brew bottle --no-rebuild M2
==> Bottling macaulay2--1.22_1.arm64_ventura.bottle.tar.gz...
==> Detecting if macaulay2--1.22_1.arm64_ventura.bottle.tar.gz is relocatable...
./macaulay2--1.22_1.arm64_ventura.bottle.tar.gz
  bottle do
    sha256 cellar: :any, arm64_ventura: "964bc221d05f11e374976b4690700c5c614d6ab243a8a0813bdbbddab8c59877"
  end

and the bottled file can be downloaded from: https://math.mcmaster.ca/~cummim5/files/misc/macaulay2--1.22_1.arm64_ventura.bottle.tar.gz.

Thanks again!

mahrud commented 1 year ago

Thank you, just added the bottle.

mikestillman commented 1 year ago

@mahrud This fixed my inability to build M2 with homebrew as well! (My M2 was 1 push ahead of main, and wasn't updating).

Should I add a MacOS 12.6.6 Apple M1 monterey bottle? If so, could you remind me of the steps you would like me to follow?

mahrud commented 1 year ago

Great! You can build the bottle:

brew install --build-bottle M2
brew bottle --no-rebuild M2

Then upload the bottle here: https://github.com/Macaulay2/homebrew-tap/releases/tag/macaulay2-1.22_1 Once you do, let me know the checksum that brew prints (like the one above) and I'll add it to the formula.