Macaulay2 / homebrew-tap

The Macaulay2 tap for Homebrew
6 stars 7 forks source link

Issues with installing 1.22_2 on arm64 (MacOS 14) #197

Closed jose-a-sa closed 7 months ago

jose-a-sa commented 10 months ago

Hi,

I realised there was a recent fix to 1.22_1, but it still is not able to compile in for the new version. Unfortunately there is no bottle yet.

I included the error during the CMake run. The error show up at [288/401] and CMake stops at [299/401].

[288/401] /opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.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/MacOSX14.sdk -mmacosx-version-min=14 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/include -I/tmp/macaulay2-20231103-41927-y7kiqs/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 -MD -MT Macaulay2/e/CMakeFiles/M2-engine.dir/eigen.cpp.o -MF Macaulay2/e/CMakeFiles/M2-engine.dir/eigen.cpp.o.d -o Macaulay2/e/CMakeFiles/M2-engine.dir/eigen.cpp.o -c /tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/e/eigen.cpp
FAILED: Macaulay2/e/CMakeFiles/M2-engine.dir/eigen.cpp.o
/opt/homebrew/bin/ccache /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DNDEBUG -DOM_NDEBUG -DSING_NDEBUG -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/e -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/d -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/c -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/d -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/e/mathic -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/e/memtailor -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/e/mathicgb -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.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/MacOSX14.sdk -mmacosx-version-min=14 -Wuninitialized -g --sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/BUILD/build-brew/usr-host/include -I/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/include -I/tmp/macaulay2-20231103-41927-y7kiqs/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 -MD -MT Macaulay2/e/CMakeFiles/M2-engine.dir/eigen.cpp.o -MF Macaulay2/e/CMakeFiles/M2-engine.dir/eigen.cpp.o.d -o Macaulay2/e/CMakeFiles/M2-engine.dir/eigen.cpp.o -c /tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/e/eigen.cpp
In file included from /tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/e/eigen.cpp:15:
In file included from /tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/e/mpreal.h:59:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/complex:706:63: fatal error: no matching function for call to '__constexpr_fabs'
    _Tp __logbw = std::__constexpr_logb(std::__constexpr_fmax(std::__constexpr_fabs(__c), std::__constexpr_fabs(__d)));
                                                              ^~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/opt/eigen/include/eigen3/unsupported/Eigen/../../Eigen/src/Core/functors/BinaryFunctors.h:388:128: note: in instantiation of function template specialization 'std::operator/<eigen_mpfr::mpreal>' requested here
  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const result_type operator() (const LhsScalar& a, const RhsScalar& b) const { return a / b; }
                                                                                                                               ^
/opt/homebrew/opt/eigen/include/eigen3/unsupported/Eigen/../../Eigen/src/Core/CoreEvaluators.h:775:12: note: in instantiation of member function 'Eigen::internal::scalar_quotient_op<std::complex<eigen_mpfr::mpreal>>::operator()' requested here
    return m_d.func()(m_d.lhsImpl.coeff(index), m_d.rhsImpl.coeff(index));
           ^
/opt/homebrew/opt/eigen/include/eigen3/unsupported/Eigen/../../Eigen/src/Core/AssignEvaluator.h:660:56: note: in instantiation of member function 'Eigen::internal::binary_evaluator<Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<std::complex<eigen_mpfr::mpreal>>, const Eigen::Block<const Eigen::Block<Eigen::Block<Eigen::Matrix<std::complex<eigen_mpfr::mpreal>, -1, -1>, -1, 1, true>, -1, 1>, -1, 1>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<std::complex<eigen_mpfr::mpreal>>, const Eigen::Matrix<std::complex<eigen_mpfr::mpreal>, -1, 1, 0>>>>::coeff' requested here
    m_functor.assignCoeff(m_dst.coeffRef(index), m_src.coeff(index));
                                                       ^
/opt/homebrew/opt/eigen/include/eigen3/unsupported/Eigen/../../Eigen/src/Core/AssignEvaluator.h:518:14: note: in instantiation of member function 'Eigen::internal::generic_dense_assignment_kernel<Eigen::internal::evaluator<Eigen::Block<Eigen::Block<Eigen::Block<Eigen::Matrix<std::complex<eigen_mpfr::mpreal>, -1, -1>, -1, 1, true>, -1, 1>, -1, 1>>, Eigen::internal::evaluator<Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<std::complex<eigen_mpfr::mpreal>>, const Eigen::Block<const Eigen::Block<Eigen::Block<Eigen::Matrix<std::complex<eigen_mpfr::mpreal>, -1, -1>, -1, 1, true>, -1, 1>, -1, 1>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<std::complex<eigen_mpfr::mpreal>>, const Eigen::Matrix<std::complex<eigen_mpfr::mpreal>, -1, 1, 0>>>>, Eigen::internal::assign_op<std::complex<eigen_mpfr::mpreal>, std::complex<eigen_mpfr::mpreal>>>::assignCoeff' requested here
      kernel.assignCoeff(i);
             ^
/opt/homebrew/opt/eigen/include/eigen3/unsupported/Eigen/../../Eigen/src/Core/AssignEvaluator.h:785:34: note: in instantiation of member function 'Eigen::internal::dense_assignment_loop<Eigen::internal::generic_dense_assignment_kernel<Eigen::internal::evaluator<Eigen::Block<Eigen::Block<Eigen::Block<Eigen::Matrix<std::complex<eigen_mpfr::mpreal>, -1, -1>, -1, 1, true>, -1, 1>, -1, 1>>, Eigen::internal::evaluator<Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<std::complex<eigen_mpfr::mpreal>>, const Eigen::Block<const Eigen::Block<Eigen::Block<Eigen::Matrix<std::complex<eigen_mpfr::mpreal>, -1, -1>, -1, 1, true>, -1, 1>, -1, 1>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<std::complex<eigen_mpfr::mpreal>>, const Eigen::Matrix<std::complex<eigen_mpfr::mpreal>, -1, 1, 0>>>>, Eigen::internal::assign_op<std::complex<eigen_mpfr::mpreal>, std::complex<eigen_mpfr::mpreal>>>>::run' requested here
  dense_assignment_loop<Kernel>::run(kernel);
                                 ^
/opt/homebrew/opt/eigen/include/eigen3/unsupported/Eigen/../../Eigen/src/Core/AssignEvaluator.h:954:5: note: (skipping 11 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    call_dense_assignment_loop(dst, src, func);
    ^
/opt/homebrew/opt/eigen/include/eigen3/unsupported/Eigen/../../Eigen/src/QR/ColPivHouseholderQR.h:477:3: note: in instantiation of member function 'Eigen::ColPivHouseholderQR<Eigen::Matrix<std::complex<eigen_mpfr::mpreal>, -1, -1>>::computeInPlace' requested here
  computeInPlace();
  ^
/opt/homebrew/opt/eigen/include/eigen3/unsupported/Eigen/../../Eigen/src/SVD/JacobiSVD.h:229:12: note: in instantiation of function template specialization 'Eigen::ColPivHouseholderQR<Eigen::Matrix<std::complex<eigen_mpfr::mpreal>, -1, -1>>::compute<Eigen::Matrix<std::complex<eigen_mpfr::mpreal>, -1, -1>>' requested here
      m_qr.compute(m_adjoint);
           ^
/opt/homebrew/opt/eigen/include/eigen3/unsupported/Eigen/../../Eigen/src/SVD/JacobiSVD.h:692:27: note: in instantiation of member function 'Eigen::internal::qr_preconditioner_impl<Eigen::Matrix<std::complex<eigen_mpfr::mpreal>, -1, -1>, 2, 0>::run' requested here
    m_qr_precond_morecols.run(*this, m_scaledMatrix);
                          ^
/opt/homebrew/opt/eigen/include/eigen3/unsupported/Eigen/../../Eigen/src/SVD/JacobiSVD.h:549:7: note: in instantiation of member function 'Eigen::JacobiSVD<Eigen::Matrix<std::complex<eigen_mpfr::mpreal>, -1, -1>>::compute' requested here
      compute(matrix, computationOptions);
      ^
/tmp/macaulay2-20231103-41927-y7kiqs/M2-release-1.22/M2/Macaulay2/e/eigen.cpp:353:34: note: in instantiation of member function 'Eigen::JacobiSVD<Eigen::Matrix<std::complex<eigen_mpfr::mpreal>, -1, -1>>::JacobiSVD' requested here
  Eigen::JacobiSVD<MatrixXmpCCC> svd(AXmp, Eigen::ComputeThinU | Eigen::ComputeThinV);
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/cmath:653:54: note: candidate function not viable: no known conversion from 'eigen_mpfr::mpreal' to 'float' for 1st argument
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR float __constexpr_fabs(float __x) _NOEXCEPT {
                                                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/cmath:657:55: note: candidate function not viable: no known conversion from 'eigen_mpfr::mpreal' to 'double' for 1st argument
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR double __constexpr_fabs(double __x) _NOEXCEPT {
                                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/cmath:661:60: note: candidate function not viable: no known conversion from 'eigen_mpfr::mpreal' to 'long double' for 1st argument
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR long double __constexpr_fabs(long double __x) _NOEXCEPT {
                                                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/cmath:666:48: note: candidate template ignored: requirement 'is_integral<eigen_mpfr::mpreal>::value' was not satisfied [with _Tp = eigen_mpfr::mpreal]
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR double __constexpr_fabs(_Tp __x) _NOEXCEPT {
                                               ^
1 error generated.
mahrud commented 10 months ago

This issue is not specific to the brew build. Perhaps you could comment in Macaulay2/M2#2860 to debug the issue.

mahrud commented 10 months ago

Try again. Just added patch fccc6453 by @jkyang92.

jose-a-sa commented 10 months ago

Thanks @mahrud, indeed the M2 binaries are able to compile now. I am still getting the error from the packages. I believe this has occurred before, but the base functionality of M2 was still working.

==> cmake -GNinja -SM2 -BM2/BUILD/build-brew -DBUILD_NATIVE=OFF -DCMAKE_PREFIX_PATH=/opt/h
==> cmake --build M2/BUILD/build-brew --target M2-core M2-emacs M2-highlightjs
==> cmake --build M2/BUILD/build-brew --target install-Macaulay2Doc
==> cmake --build M2/BUILD/build-brew --target install-packages
(...)
 -- making example results for "sectionalGenus"                              -- 0.685662 seconds elapsed
 -- making example results for "rationalMap(MultiprojectiveVariety,Tally)"   -- 0.843381 seconds elapsed
currentString:1:1:(3):[2]: error: installPackage: 1 error(s) occurred running examples for package MultiprojectiveVarieties
ninja: build stopped: subcommand failed.
mahrud commented 10 months ago

Could you try brew test gfan and the same for normaliz? Do those pass fine?

mahrud commented 10 months ago

If those pass, try brew install M2 --keep-tmp, then you can navigate to the build directory (somewhere under /tmp) and try running ninja install-packages to see which example is failing and why.

jose-a-sa commented 10 months ago

Could you try brew test gfan and the same for normaliz? Do those pass fine?

Yes, both pass fine.

If those pass, try brew install M2 --keep-tmp, then you can navigate to the build directory (somewhere under /tmp) and try running ninja install-packages to see which example is failing and why.

I decided to do a verbose clean install brew install M2 --verbose. Apparently, cpu time was exceed for a particular example in [258/258] of the target install-packages.

[258/258] cd /tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/packages && /tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/usr-dist/arm64-Darwin-macOS-14.1/bin/M2 -q --stop --silent --no-preload --no-threads -e errorDepth=3 -e debugLevel=0 -e "installPackage(\"MultiprojectiveVarieties\", Verbose => false, RerunExamples => false, CheckDocumentation => true, IgnoreExampleErrors => false, RemakeAllDocumentation => false, InstallPrefix => \"/tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/usr-dist/\", UserMode => false, SeparateExec => true, DebuggingMode => true)" -e "\"info-\"|\"MultiprojectiveVarieties\" << MultiprojectiveVarieties#\"test number\" << close" -e "exit 0" && gzip -nf9 /tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/usr-dist/common/share/info/MultiprojectiveVarieties.info
FAILED: Macaulay2/packages/CMakeFiles/install-MultiprojectiveVarieties usr-dist/arm64-Darwin-macOS-14.1/lib/Macaulay2/MultiprojectiveVarieties/.installed /tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/packages/CMakeFiles/install-MultiprojectiveVarieties /tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/usr-dist/arm64-Darwin-macOS-14.1/lib/Macaulay2/MultiprojectiveVarieties/.installed
cd /tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/Macaulay2/packages && /tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/usr-dist/arm64-Darwin-macOS-14.1/bin/M2 -q --stop --silent --no-preload --no-threads -e errorDepth=3 -e debugLevel=0 -e "installPackage(\"MultiprojectiveVarieties\", Verbose => false, RerunExamples => false, CheckDocumentation => true, IgnoreExampleErrors => false, RemakeAllDocumentation => false, InstallPrefix => \"/tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/usr-dist/\", UserMode => false, SeparateExec => true, DebuggingMode => true)" -e "\"info-\"|\"MultiprojectiveVarieties\" << MultiprojectiveVarieties#\"test number\" << close" -e "exit 0" && gzip -nf9 /tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/usr-dist/common/share/info/MultiprojectiveVarieties.info
 -- making example results for "ring(MultiprojectiveVariety)"                -- 1.25489 seconds elapsed
 -- making example results for "inverse2"                                    -- 2.92458 seconds elapsed
 -- making example results for "isIsomorphism(MultirationalMap)"             -- 2.30038 seconds elapsed
 -- making example results for "projections"                                 -- 1.32003 seconds elapsed
 -- making example results for "MultirationalMap || MultiprojectiveVariety"  -- 2.22646 seconds elapsed
 -- making example results for "MultirationalMap << MultiprojectiveVariety"  -- 2.04522 seconds elapsed
 -- making example results for "Fano(ZZ,EmbeddedProjectiveVariety)"          -- 1.76817 seconds elapsed
 -- making example results for "linearSpan"                                  -- 1.308 seconds elapsed
 -- making example results for "GG(ZZ,MultirationalMap)"                     -- 2.06253 seconds elapsed
 -- making example results for "multidegree(MultirationalMap)"               -- 2.16037 seconds elapsed
 -- making example results for "projectiveVariety(MultidimensionalMatrix)"   -- 1.46547 seconds elapsed
 -- making example results for "projectionMaps(MultirationalMap)"            -- 1.3389 seconds elapsed
 -- making example results for "check(MultirationalMap)"                     -- 1.24258 seconds elapsed
 -- making example results for "clean(MultirationalMap)"                     -- 1.2351 seconds elapsed
 -- making example results for "multidegree(MultiprojectiveVariety)"         -- 1.24866 seconds elapsed
 -- making example results for "describe(MultirationalMap)"                  -- 2.88855 seconds elapsed
 -- making example results for "segre(MultiprojectiveVariety)"               -- 1.6744 seconds elapsed
 -- making example results for "projectiveVariety(List,List,Ring)"           -- 1.29702 seconds elapsed
 -- making example results for "MultirationalMap MultiprojectiveVariety"     -- 2.82364 seconds elapsed
 -- making example results for "topComponents(MultiprojectiveVariety)"       -- 1.28917 seconds elapsed
 -- making example results for "MultiprojectiveVariety ** MultiprojectiveVariety" -- 1.55502 seconds elapsed
 -- making example results for "EmbeddedProjectiveVariety ===> EmbeddedProjectiveVariety" -- 11.5206 seconds elapsed
 -- making example results for "MultirationalMap | MultirationalMap"         -- 1.37398 seconds elapsed
 -- making example results for "ideal(MultiprojectiveVariety)"               -- 1.33317 seconds elapsed
 -- making example results for "projectiveVariety"                           -- 2.27567 seconds elapsed
 -- making example results for "MultirationalMap || MultirationalMap"        -- 2.29599 seconds elapsed
 -- making example results for "cycleClass"                                  -- 6.29979 seconds elapsed
 -- making example results for "MultiprojectiveVariety ^ ZZ"                 -- 1.60827 seconds elapsed
 -- making example results for "multirationalMap(MultirationalMap,MultiprojectiveVariety)" -- 1.43576 seconds elapsed
 -- making example results for "MultirationalMap * MultirationalMap"         -- 1.54144 seconds elapsed
 -- making example results for "isSubset(MultiprojectiveVariety,MultiprojectiveVariety)" -- 1.27312 seconds elapsed
 -- making example results for "euler(MultiprojectiveVariety)"               -- 1.5238 seconds elapsed
 -- making example results for "inverse(MultirationalMap)"                   -- 2.02704 seconds elapsed
 -- making example results for "MultiprojectiveVariety ** Ring"              -- 1.42515 seconds elapsed
 -- making example results for "multirationalMap(MultiprojectiveVariety)"    -- 1.34136 seconds elapsed
 -- making example results for "variety(EmbeddedProjectiveVariety)"          -- 1.30815 seconds elapsed
 -- making example results for "hilbertPolynomial(EmbeddedProjectiveVariety)" -- 1.29552 seconds elapsed
 -- making example results for "random(List,MultiprojectiveVariety)"         -- 1.66083 seconds elapsed
 -- making example results for "segre(MultirationalMap)"                     -- 2.12199 seconds elapsed
 -- making example results for "dim(MultiprojectiveVariety)"                 -- 1.31001 seconds elapsed
 -- making example results for "linearlyNormalEmbedding"                     -- 3.87818 seconds elapsed
 -- making example results for "point(MultiprojectiveVariety)"               -- 4.34995 seconds elapsed
 -- making example results for "fiberProduct"                                -- 2.62151 seconds elapsed
 -- making example results for "schubertCycle"                               -- 1.3701 seconds elapsed
 -- making example results for "MultiprojectiveVariety \\ MultiprojectiveVariety" -- 1.00029 seconds elapsed
 -- making example results for "ambient(MultiprojectiveVariety)"             -- 0.884446 seconds elapsed
 -- making example results for "∏"                                         -- 1.20508 seconds elapsed
 -- making example results for "codim(MultiprojectiveVariety)"               -- 0.959899 seconds elapsed
 -- making example results for "parametrize(MultiprojectiveVariety)"         -- 4.77585 seconds elapsed
 -- making example results for "RAT Tally"                                   -- 0.960257 seconds elapsed
 -- making example results for "shape(MultiprojectiveVariety)"               -- 0.87748 seconds elapsed
 -- making example results for "multirationalMap"                            -- 1.6373 seconds elapsed
 -- making example results for "MultiprojectiveVariety % MultiprojectiveVariety" -- 1.02577 seconds elapsed
 -- making example results for "MultirationalMap | MultiprojectiveVariety"   -- 1.97776 seconds elapsed
 -- making example results for "chowForm(EmbeddedProjectiveVariety)"         -- 0.793566 seconds elapsed
 -- making example results for "projectionMaps"                              -- 0.962764 seconds elapsed
 -- making example results for "baseLocus"                                   -- 1.3948 seconds elapsed
 -- making example results for "ambientVariety"                              -- 0.909746 seconds elapsed
 -- making example results for "multirationalMap(MultiprojectiveVariety,MultiprojectiveVariety)" -- 1.0656 seconds elapsed
 -- making example results for "isMorphism(MultirationalMap)"                -- 3.33924 seconds elapsed
 -- making example results for "random(MultiprojectiveVariety)"              -- 0.819135 seconds elapsed
 -- making example results for "dual(EmbeddedProjectiveVariety)"             -- 0.786769 seconds elapsed
 -- making example results for "WeightedRationalMap"                         -- 0.80262 seconds elapsed
 -- making example results for "factor(MultirationalMap)"                    -- 0.812965 seconds elapsed
 -- making example results for "entries(MultirationalMap)"                   -- 1.08675 seconds elapsed
 -- making example results for "describe(MultiprojectiveVariety)"            -- 0.933802 seconds elapsed
 -- making example results for "isWellDefined(MultirationalMap)"             -- 0.776786 seconds elapsed
 -- making example results for "degree(MultiprojectiveVariety)"              -- 0.731595 seconds elapsed
 -- making example results for "EmbeddedProjectiveVariety"                   -- 0.762277 seconds elapsed
 -- making example results for "support(MultiprojectiveVariety)"             -- 0.831479 seconds elapsed
 -- making example results for "MultirationalMap ** Ring"                    -- 1.14455 seconds elapsed
 -- making example results for "image(MultirationalMap)"                    sh: line 1: 12351 Cputime limit exceeded: 24  GC_MAXIMUM_HEAP_SIZE=400M "/private/tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/usr-dist/arm64-Darwin-macOS-14.1/bin/M2-binary" -q --no-randomize --no-readline --silent --stop --print-width 77 -e 'needsPackage("MultiprojectiveVarieties",Reload=>true,FileName=>"/private/tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/Macaulay2/packages/MultiprojectiveVarieties.m2")' < "/private/tmp/M2-2917-0/0_image_lp__Multirational__Map_rp.m2" >> "/private/tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/usr-dist/common/share/doc/Macaulay2/MultiprojectiveVarieties/example-output/_image_lp__Multirational__Map_rp.errors" 2>&1

 ulimit -c unlimited; ulimit -t 700; ulimit -s 8192; ulimit -n 512;  cd /private/tmp/M2-2917-0/72-rundir/; GC_MAXIMUM_HEAP_SIZE=400M "/private/tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/usr-dist/arm64-Darwin-macOS-14.1/bin/M2-binary" -q --no-randomize --no-readline --silent --stop --print-width 77 -e 'needsPackage("MultiprojectiveVarieties",Reload=>true,FileName=>"/private/tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/Macaulay2/packages/MultiprojectiveVarieties.m2")' <"/private/tmp/M2-2917-0/0_image_lp__Multirational__Map_rp.m2" >>"/private/tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/usr-dist/common/share/doc/Macaulay2/MultiprojectiveVarieties/example-output/_image_lp__Multirational__Map_rp.errors" 2>&1
/private/tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/usr-dist/common/share/doc/Macaulay2/MultiprojectiveVarieties/example-output/_image_lp__Multirational__Map_rp.errors:0:1:(3):[12]: (output file) error: Macaulay2 killed by signal 24
/private/tmp/M2-2917-0/0_image_lp__Multirational__Map_rp.m2:0:1: (input file)
M2: *** Error 24
 -- 2.32935 seconds elapsed
 -- making example results for "RAT MultiprojectiveVariety"                  -- 0.750421 seconds elapsed
 -- making example results for "degreeSequence"                              -- 0.871876 seconds elapsed
 -- making example results for "trim(MultirationalMap)"                      -- 0.929852 seconds elapsed
 -- making example results for "WeightedProjectiveVariety"                   -- 0.698384 seconds elapsed
 -- making example results for "tangentialChowForm(EmbeddedProjectiveVariety,ZZ)" -- 0.739101 seconds elapsed
 -- making example results for "MultiprojectiveVariety + MultiprojectiveVariety" -- 0.754637 seconds elapsed
 -- making example results for "isMember(MultirationalMap,RAT)"              -- 0.697941 seconds elapsed
 -- making example results for "tangentCone(EmbeddedProjectiveVariety,EmbeddedProjectiveVariety)" -- 0.865055 seconds elapsed
 -- making example results for "⋂"                                         -- 0.80314 seconds elapsed
 -- making example results for "⋃"                                         -- 1.23794 seconds elapsed
 -- making example results for "Hom(MultiprojectiveVariety,MultiprojectiveVariety)" -- 0.759419 seconds elapsed
 -- making example results for "MultiprojectiveVariety == MultiprojectiveVariety" -- 0.771373 seconds elapsed
 -- making example results for "EmbeddedProjectiveVariety ++ EmbeddedProjectiveVariety" -- 0.872956 seconds elapsed
 -- making example results for "tangentSpace"                                -- 0.799957 seconds elapsed
 -- making example results for "decompose(MultiprojectiveVariety)"           -- 0.748006 seconds elapsed
 -- making example results for "coneOfLines"                                 -- 0.821112 seconds elapsed
 -- making example results for "super(MultirationalMap)"                     -- 0.725023 seconds elapsed
 -- making example results for "show(MultirationalMap)"                      -- 0.905878 seconds elapsed
 -- making example results for "projectiveVariety(List,Ring)"                -- 0.66686 seconds elapsed
 -- making example results for "multidegree(ZZ,MultirationalMap)"            -- 1.01733 seconds elapsed
 -- making example results for "toRationalMap"                               -- 0.674657 seconds elapsed
 -- making example results for "MultiprojectiveVariety * MultiprojectiveVariety" -- 0.711016 seconds elapsed
 -- making example results for "coefficientRing(MultiprojectiveVariety)"     -- 0.686184 seconds elapsed
 -- making example results for "singularLocus(MultiprojectiveVariety)"       -- 0.793316 seconds elapsed
 -- making example results for "degree(MultirationalMap)"                    -- 1.17371 seconds elapsed
 -- making example results for "forceImage(MultirationalMap,MultiprojectiveVariety)" -- 0.716123 seconds elapsed
 -- making example results for "graph(MultirationalMap)"                     -- 0.806834 seconds elapsed
 -- making example results for "MultirationalMap ^** MultiprojectiveVariety" -- 2.38912 seconds elapsed
 -- making example results for "GG"                                          -- 0.645272 seconds elapsed
 -- making example results for "MultiprojectiveVariety \\\\ MultiprojectiveVariety" -- 0.674317 seconds elapsed
 -- making example results for "EmbeddedProjectiveVariety !"                 -- 1.57819 seconds elapsed
 -- making example results for "permute(MultiprojectiveVariety,List)"        -- 1.24993 seconds elapsed
 -- making example results for "shortcuts"                                   -- 1.00594 seconds elapsed
 -- making example results for "segreEmbedding"                              -- 0.863922 seconds elapsed
 -- making example results for "degrees(MultiprojectiveVariety)"             -- 0.774505 seconds elapsed
 -- making example results for "RAT List"                                    -- 0.704946 seconds elapsed
 -- making example results for "degree(MultirationalMap,Option)"             -- 3.1202 seconds elapsed
 -- making example results for "conormalVariety(EmbeddedProjectiveVariety)"  -- 0.869918 seconds elapsed
 -- making example results for "sectionalGenus"                              -- 0.622456 seconds elapsed
 -- making example results for "rationalMap(MultiprojectiveVariety,Tally)"   -- 0.779607 seconds elapsed
currentString:1:1:(3):[2]: error: installPackage: 1 error(s) occurred running examples for package MultiprojectiveVarieties
ninja: build stopped: subcommand failed.
mahrud commented 10 months ago

Thanks! I think it would be more appropriate to open an issue in the main Macaulay2 repository then, and include the error log:

/private/tmp/macaulay2-20231110-25253-8fzyfh/M2-release-1.22/M2/BUILD/build-brew/usr-dist/common/share/doc/Macaulay2/MultiprojectiveVarieties/example-output/_image_lp__Multirational__Map_rp.errors
mahrud commented 10 months ago

As a temporary fix until this is fixed in the upstream, you can install M2 with brew install M2 --HEAD, which builds the upstream version (i.e. more recent than 1.22) but does not generate package documentation, so you'll have to use online documentation.

mahrud commented 7 months ago

This is resolved now that a bottle for arm64 has been added. We'll deal with the same issue for 1.23 when it is released ...