-
Notifications
You must be signed in to change notification settings - Fork 56
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
compile error on ARM Mac #12
Comments
Do you have the command-line tools installed (with |
Yes, they are installed.
Thanks.
… On Dec 2, 2020, at 4:27 PM, FX Coudert ***@***.***> wrote:
xcode-select --install
|
Quoting isuruf from OpenMathLib/OpenBLAS#3032 (comment)
and that suggestion later refined to |
Thanks. That worked. I am a physicist compiling fortran 90 code to do galaxy-galaxy collisions. I am not a UNIX expert at all. I just issued the export command in the terminal window before I ran the compile operation. Is there somewhere I should enter the export command so that is always active? Thanks for any help. By the way it is running extremely fast on the MacBook Air M1 system. |
macOS 11.1 is now available to all users, it solved this issue for me after reinstalling the command line tools (using |
Thanks. I just found that out also this evening.
Sent from John Boccio's iPad
… On Dec 17, 2020, at 9:51 PM, Stian Holmas ***@***.***> wrote:
macOS 11.1 is now available to all users, it solved this issue for me after reinstalling the command line tools (using xcode-select --install).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
macOS 11.1 and the command-line tools 12.3 fix this issue. I will try to make my next build more robust. |
This issue was referenced in a discussion of static linking:
e.g |
About lquadmath, when trying to install RcppArmadillo in R, I get this message:
I already modified the line in Makeconf to specify the "proper" location of the gcc, but lquadmath seems it's not working at all. Do you have a quick workaround? |
for Arm64, there is no libquadmath - theres no REAL*16 equivalent on the platform at present. This means that we need a configure change to omit the "-lquadmath" from the spec. You should be able to hack around it in the short-term by editing /path/to/compiler/lib/libgfortran.spec and removing the "-lquadmath" from the last line. |
(for Arm64 on Darwin)
|
Fortran 90 code - compile works with gfortran 10.2 on intel Mac.
However, when I try to do same compile using gfortran 11.0 on ARM Mac (installed using simple package over 10.2 version),
it fails with message:
ld:library not found for -lm
collect2: error: ld returned 1 exit value
compile command is:
/usr/local/gfortran/bin/gfortran treecode.f90 treegrav.f90 treeio.f90 treeload.f90 -o treecode
The text was updated successfully, but these errors were encountered: