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
Compilation fails with Clang 12.0.5 on Apple M1 #510
Comments
Here is the full This file contains any messages produced by compilers while It was created by configure, which was $ ./configure --enable-cpic=clang --enable-fpic=clang --with-cfortran=clang ---------Platform.---------hostname = Andreass-MacBook-Pro.local /usr/bin/uname -p = arm /bin/arch = unknown PATH: /Users/afloers/Software/anaconda3/bin -----------Core tests.-----------configure:2206: checking build system type ----------------Cache variables.----------------CONDA_BACKUP_ac_cv_func_malloc_0_nonnull=yes -----------------Output variables.-----------------CC='gcc -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include -L/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib' -----------confdefs.h.-----------/* confdefs.h */ configure: exit 77 |
this will have to wait until I can get hands on a M1 mac. in the mean time, you might try to use gcc and gfortran from macport instead of apples compilers. |
Hello,
When I run ./configure on my M1 MacBook I get the following error (from the config.log):
configure:2619: checking whether the C compiler works
configure:2641: gcc -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include -L/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/afloers/Software/anaconda3/include -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -isystem /Users/afloers/Software/anaconda3/include -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/afloers/Software/anaconda3/lib -L/Users/afloers/Software/anaconda3/lib conftest.c >&5
clang: error: the clang compiler does not support '-march=core2'
I guess the problem is with the
-march=core2
.The command that I used to run ./configure was
$ ./configure --enable-cpic=clang --enable-fpic=clang --with-cfortran=clang
The version of the compiler is
$ clang --version
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: arm64-apple-darwin20.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
What do I have to do to run
configure
on my machine?Best regards,
Andreas
The text was updated successfully, but these errors were encountered: