Macaulay2 / homebrew-tap

The Macaulay2 tap for Homebrew
7 stars 6 forks source link

Homebrew macOS installation failing while patching `fflas-ffpack` #66

Closed marcelgoh closed 3 years ago

marcelgoh commented 3 years ago

Hi! I'm on macOS 10.14.6 and trying to install Macaulay2 via homebrew. I ran brew install Macaulay2/tap/M2 and it downloaded a lot of dependencies, but it's getting stuck on fflas-ffpack:

==> Downloading https://github.com/Macaulay2/M2/archive/release-1.17.2.tar.gz
Already downloaded: /Users/marcel/Library/Caches/Homebrew/downloads/55fd784a33a3d222cd1d0c2690fdc41a5bb3943209f4f962309c5ffe131a003a--M2-release-1.17.2.tar.gz
==> Installing dependencies for macaulay2/tap/macaulay2: fflas-ffpack, frobby, libatomic_ops, memtailor, mathic, mathicgb, mpsolve, cohomcalg, csdp, glpk, fourtitwo, libffi, llvm, cddlib@0.94, gfan, lrs, nauty, normaliz, tbb and topcom
==> Installing macaulay2/tap/macaulay2 dependency: fflas-ffpack
==> Patching
Error: Failure while executing; `patch -g 0 -f -p1` exited with 1. Here's the output:
patching file macros/omp-check.m4
Hunk Macaulay2/M2#1 FAILED at 36.
1 out of 1 hunk FAILED -- saving rejects to file macros/omp-check.m4.rej

The same thing happens if I try to just brew install fflas-ffpack by itself. I'm not sure what I should do to fix this issue, any help would be greatly appreciated!

mahrud commented 3 years ago

Thanks! Should be fixed in 877fc15c4f8775218b07241305af033f50924079.

mahrud commented 3 years ago

By the way, if you can upgrade to 10.15, brew will install M2 from a bottle rather than compiling from source, which may take a couple of hours.

marcelgoh commented 3 years ago

Hi! Thanks for the lightning-quick help! Everything managed to compile (after leaving it overnight!).