gazebosim / gz-tools

Command line tools for the Gazebo libraries.
https://gazebosim.org
Apache License 2.0
14 stars 18 forks source link

ign-tools fails to configure on mac os big sur arm64 (m1) #51

Closed YVbakker closed 3 years ago

YVbakker commented 3 years ago

Environment

``` Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc Build flags: Id flags: The output was: 1 ld: library not found for -lSystem clang: error: linker command failed with exit code 1 (use -v to see invocation) Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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) ```

Description

Steps to reproduce

  1. Download source tarball from github && tar xf
  2. mkdir build && cd build
  3. cmake .. -DCMAKE_INSTALL_PREFIX=/usr

Output

See above and full trace: https://gist.github.com/YVbakker/32d686da43288c5817e644caaa1f5ea6

YVbakker commented 3 years ago

I think I found the root of the problem in findSSE.cmake. Adding an extra check whether we're on x86 or not fixes this error. Can someone else verify it builds successfully without?

j-rivero commented 3 years ago

Hopefully fixed by #55