I have also tried to install OpenBLAS in my own path, and change the LDFLAGS and CPPFLAGS to point to that local installation (as opposed to the Homebrew one), to no avail.
The problem may be OpenBLAS-specific, but there doesn't seem to be any useful workaround on the internet for this issue. Any leads will be highly appreciated. Thanks in advance.
Unfortunately, I don't have access to a MacBook. However you could try installing the static libraries, copying them to the elk/src directory and linking with
F90_LIB = libopenblas.a liblapack.a
Regards,
Kay.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, could you please share the final make.inc file that you used. I can not compile elk on the M4 chip and I tried many things but nothing worked.
here is the last error i got
ld: library 'System' not found
collect2: error: ld returned 1 exit status
make[1]: *** [elk] Error 1
make: *** [all] Error 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, could you please share the final make.inc file that you used. I can
not compile elk on the M4 chip and I tried many things but nothing worked.
here is the last error i got
ld: library 'System' not found
collect2: error: ld returned 1 exit status
make[1]: *** [elk] Error 1
make: *** [all] Error 2
I'm trying to compile Elk 9.5.1 on a MacBook Pro M1 Max running macOS 14.4. My make.inc is attached. The relevant uncommented part of make.inc is
OpenMPI, Libomp, breLAPACK, OpenBLAS and FFTW are all installed using homebrew.
When I run make, I get the following trailing error message:
My LDFLAGS and CPPFLAGS variable definitions in ~/.zshrc read like so:
I have also tried to install OpenBLAS in my own path, and change the LDFLAGS and CPPFLAGS to point to that local installation (as opposed to the Homebrew one), to no avail.
The problem may be OpenBLAS-specific, but there doesn't seem to be any useful workaround on the internet for this issue. Any leads will be highly appreciated. Thanks in advance.
Hi Vivek,
Unfortunately, I don't have access to a MacBook. However you could try installing the static libraries, copying them to the elk/src directory and linking with
Regards,
Kay.
Hi Kay, thanks for the tip. I think I was able to get it to work after installing static libraries not just for OpenBLAS and LAPACK but also FFTW3.
Thanks indeed for your help!
Hi, could you please share the final make.inc file that you used. I can not compile elk on the M4 chip and I tried many things but nothing worked.
here is the last error i got
ld: library 'System' not found
collect2: error: ld returned 1 exit status
make[1]: *** [elk] Error 1
make: *** [all] Error 2
My final make.inc file from a year ago is attached.
On Tue, Apr 15, 2025 at 6:57 AM Mohamed Elhanoty mohamedelhanoty@users.sourceforge.net wrote: