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

A simple compilation issue on Apple m1 #524

Open
pkfl opened this issue Feb 25, 2021 · 1 comment
Open

A simple compilation issue on Apple m1 #524

pkfl opened this issue Feb 25, 2021 · 1 comment

Comments

@pkfl
Copy link

pkfl commented Feb 25, 2021

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Library/Developer/CommandLineTools/usr/bin/c++
Build flags:
Id flags:

The output was:
1
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Performing C++ SOURCE FILE Test _compiler_supports_sse failed with the following output:
Change Dir: /tmp/fcl/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_8321f/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_8321f.dir/build.make CMakeFiles/cmTC_8321f.dir/build
Building CXX object CMakeFiles/cmTC_8321f.dir/src.cxx.o
/Library/Developer/CommandLineTools/usr/bin/c++ -D_compiler_supports_sse -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -mfpmath=sse -msse -msse2 -msse3 -mssse3 -o CMakeFiles/cmTC_8321f.dir/src.cxx.o -c /tmp/fcl/build/CMakeFiles/CMakeTmp/src.cxx
clang: warning: argument unused during compilation: '-msse' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-msse2' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-mssse3' [-Wunused-command-line-argument]
error: unknown FP unit 'sse'
make[1]: *** [CMakeFiles/cmTC_8321f.dir/src.cxx.o] Error 1
make: *** [cmTC_8321f/fast] Error 2

Source file was:
int main() { return 0; }

@scpeters
Copy link
Contributor

scpeters commented Mar 4, 2021

which version of the software are you trying to compile? the homebrew-core formula uses two patches that have been merged to master but have not yet been released (#470, #506). I believe the master branch should compile for you

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

No branches or pull requests

2 participants