Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on installing MUMPS on ARM64 Sequoia Mac #85

Open
fbonaldi opened this issue Jan 5, 2025 · 4 comments
Open

Error on installing MUMPS on ARM64 Sequoia Mac #85

fbonaldi opened this issue Jan 5, 2025 · 4 comments

Comments

@fbonaldi
Copy link

fbonaldi commented Jan 5, 2025

So, after fixing the download links in the RB files of metis and MUMPS, I typed the following in the Terminal

brew tap brewsci/num
brew install brewsci-mumps --without-open-mpi

and got the following output. Any ideas?

==> make alllib RANLIB=echo CDEFS=-DAdd_ OPTF=-O -fallow-argument-mismatch LMETI
==> gfortran -fPIC -shared -Wl,-all_load libpord.a -L/opt/homebrew/opt/brewsci-m
Last 15 lines from ~/Library/Logs/Homebrew/brewsci-mumps/02.gfortran:
-L/opt/homebrew/opt/brewsci-metis/lib
-lmetis
-lgomp
-L/opt/homebrew/opt/openblas/lib
-lopenblas
-Wl,-noall_load
-Wl,-install_name
-Wl,/opt/homebrew/Cellar/brewsci-mumps/5.3.5/lib/libpord.dylib
-undefined
dynamic_lookup
-o
libpord.dylib

ld: unknown options: -noall_load 
collect2: error: ld returned 1 exit status

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/brewsci/homebrew-num/issues
@dpo
Copy link
Contributor

dpo commented Jan 5, 2025

This repo isn't maintained any more. Please use https://github.com/dpo/homebrew-mumps-jl, though things probably need to be updated there as well.

@fbonaldi
Copy link
Author

fbonaldi commented Jan 23, 2025

FYI, I found a workaround to install MUMPS 5.3.5. Aside from changing the download URL to

https://ftp.mcs.anl.gov/pub/petsc/externalpackages/MUMPS_5.3.5.tar.gz

I commented the line

noall_load = OS.mac? ? "-noall_load" : "--no-whole-archive"

and removed all instances of "-Wl,#{noall_load}" inside file brewsci-mumps.rb.

@dpo
Copy link
Contributor

dpo commented Jan 23, 2025

Thank you. If that also fixes the build on https://github.com/dpo/homebrew-mumps-jl, would you mind submitting a pull request there?

@fbonaldi
Copy link
Author

Unfortunately, on another Apple Silicon machine I get (weirdly) a different error, and I don't know how to fix it in this case. I did not expect such a behavior...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants