Trying to install gazebo on M1 ventura
I fixed SH256 problem related with gz-transport12 by replacing ssh256 key but installation fails because of sdformat13 build error.
brew install -vd gz-garden
I tried build and install sdformat13 from source and it is successfully installed. But when I try with brew it fails with error
[ 18%] Linking CXX shared library ../lib/libsdformat13.dylib
cd "/tmp/sdformat13-20230122-86620-17i65yt/sdformat-13.3.0~pre1/build/src" && /opt/homebrew/Cellar/cmake/3.25.2/bin/cmake -E cmake_link_script CMakeFiles/sdformat13.dir/link.txt --verbose=1
/opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -stdlib=libc++ -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -dynamiclib -Wl,-headerpad_max_install_names -Wl,-undefined -Wl,dynamic_lookup -compatibility_version 13.0.0 -current_version 13.3.0 -o "../lib/libsdformat13.13.3.0~pre1.dylib" -install_name @rpath/libsdformat13.13.dylib CMakeFiles/sdformat13.dir/Actor.cc.o CMakeFiles/sdformat13.dir/AirPressure.cc.o CMakeFiles/sdformat13.dir/Altimeter.cc.o CMakeFiles/sdformat13.dir/Atmosphere.cc.o CMakeFiles/sdformat13.dir/Box.cc.o CMakeFiles/sdformat13.dir/Camera.cc.o CMakeFiles/sdformat13.dir/Capsule.cc.o CMakeFiles/sdformat13.dir/Collision.cc.o CMakeFiles/sdformat13.dir/Console.cc.o CMakeFiles/sdformat13.dir/Converter.cc.o CMakeFiles/sdformat13.dir/Cylinder.cc.o CMakeFiles/sdformat13.dir/Element.cc.o CMakeFiles/sdformat13.dir/Ellipsoid.cc.o CMakeFiles/sdformat13.dir/Error.cc.o CMakeFiles/sdformat13.dir/Exception.cc.o CMakeFiles/sdformat13.dir/Filesystem.cc.o CMakeFiles/sdformat13.dir/ForceTorque.cc.o CMakeFiles/sdformat13.dir/Frame.cc.o CMakeFiles/sdformat13.dir/FrameSemantics.cc.o CMakeFiles/sdformat13.dir/Geometry.cc.o CMakeFiles/sdformat13.dir/Gui.cc.o CMakeFiles/sdformat13.dir/Heightmap.cc.o CMakeFiles/sdformat13.dir/Imu.cc.o CMakeFiles/sdformat13.dir/InterfaceElements.cc.o CMakeFiles/sdformat13.dir/InterfaceFrame.cc.o CMakeFiles/sdformat13.dir/InterfaceJoint.cc.o CMakeFiles/sdformat13.dir/InterfaceLink.cc.o CMakeFiles/sdformat13.dir/InterfaceModel.cc.o CMakeFiles/sdformat13.dir/InterfaceModelPoseGraph.cc.o CMakeFiles/sdformat13.dir/Joint.cc.o CMakeFiles/sdformat13.dir/JointAxis.cc.o CMakeFiles/sdformat13.dir/Lidar.cc.o CMakeFiles/sdformat13.dir/Light.cc.o CMakeFiles/sdformat13.dir/Link.cc.o CMakeFiles/sdformat13.dir/Magnetometer.cc.o CMakeFiles/sdformat13.dir/Material.cc.o CMakeFiles/sdformat13.dir/Mesh.cc.o CMakeFiles/sdformat13.dir/Model.cc.o CMakeFiles/sdformat13.dir/NavSat.cc.o CMakeFiles/sdformat13.dir/Noise.cc.o CMakeFiles/sdformat13.dir/OutputConfig.cc.o CMakeFiles/sdformat13.dir/Param.cc.o CMakeFiles/sdformat13.dir/ParamPassing.cc.o CMakeFiles/sdformat13.dir/ParserConfig.cc.o CMakeFiles/sdformat13.dir/ParticleEmitter.cc.o CMakeFiles/sdformat13.dir/Pbr.cc.o CMakeFiles/sdformat13.dir/Physics.cc.o CMakeFiles/sdformat13.dir/Plane.cc.o CMakeFiles/sdformat13.dir/Plugin.cc.o CMakeFiles/sdformat13.dir/Polyline.cc.o CMakeFiles/sdformat13.dir/PrintConfig.cc.o CMakeFiles/sdformat13.dir/Root.cc.o CMakeFiles/sdformat13.dir/SDF.cc.o CMakeFiles/sdformat13.dir/SDFExtension.cc.o CMakeFiles/sdformat13.dir/Scene.cc.o CMakeFiles/sdformat13.dir/SemanticPose.cc.o CMakeFiles/sdformat13.dir/Sensor.cc.o CMakeFiles/sdformat13.dir/Sky.cc.o CMakeFiles/sdformat13.dir/Sphere.cc.o CMakeFiles/sdformat13.dir/Surface.cc.o CMakeFiles/sdformat13.dir/Types.cc.o CMakeFiles/sdformat13.dir/Utils.cc.o CMakeFiles/sdformat13.dir/Visual.cc.o CMakeFiles/sdformat13.dir/World.cc.o CMakeFiles/sdformat13.dir/XmlUtils.cc.o CMakeFiles/sdformat13.dir/gz.cc.o CMakeFiles/sdformat13.dir/parser.cc.o CMakeFiles/sdformat13.dir/parser_urdf.cc.o CMakeFiles/sdformat13.dir/EmbeddedSdf.cc.o /opt/homebrew/lib/libgz-math7.7.1.0.dylib /opt/homebrew/lib/libgz-utils2.2.0.0.dylib /opt/homebrew/Cellar/tinyxml2/9.0.0/lib/libtinyxml2.dylib /opt/homebrew/Cellar/tinyxml2/9.0.0/lib/libtinyxml2.dylib /opt/homebrew/opt/urdfdom/lib/liburdfdom_sensor.dylib /opt/homebrew/opt/urdfdom/lib/liburdfdom_sensor.dylib /opt/homebrew/opt/urdfdom/lib/liburdfdom_model_state.dylib /opt/homebrew/opt/urdfdom/lib/liburdfdom_model.dylib /opt/homebrew/opt/urdfdom/lib/liburdfdom_world.dylib /opt/homebrew/Cellar/console_bridge/1.0.2/lib/libconsole_bridge.dylib
cd "/tmp/sdformat13-20230122-86620-17i65yt/sdformat-13.3.0~pre1/build/src" && /opt/homebrew/Cellar/cmake/3.25.2/bin/cmake -E cmake_symlink_library "../lib/libsdformat13.13.3.0~pre1.dylib" ../lib/libsdformat13.13.dylib ../lib/libsdformat13.dylib
[ 18%] Built target sdformat13
make: *** [all] Error 2
/opt/homebrew/Library/Homebrew/shims/shared/git --version
/opt/homebrew/Library/Homebrew/shims/shared/curl --version
/opt/homebrew/Library/Homebrew/ignorable.rb:29:in `block in raise'
BuildError: Failed executing: make install
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action: 1
==> Temporary files retained at:
/private/tmp/sdformat13-20230122-86620-17i65yt
==> Formula
Tap: osrf/simulation
Path: /opt/homebrew/Library/Taps/osrf/homebrew-simulation/Formula/sdformat13.rb
==> Configuration
HOMEBREW_VERSION: 3.6.20-14-g31ed690
ORIGIN: https://github.com/Homebrew/brew
HEAD: 31ed6906f927ec7c63b72c6f5c7d72ea6baa2fb4
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 5a2bc0f10ddbe1a32843652e9532fa367f2c3a46
Core tap last commit: 6 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.NYpv7TrmAu/org.xquartz:0
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.37.1 => /Library/Developer/CommandLineTools/usr/bin/git
/opt/homebrew/Library/Homebrew/shims/shared/curl --version
Curl: 7.85.0 => /usr/bin/curl
macOS: 13.1-arm64
CLT: 14.2.0.0.1.1668646533
Xcode: N/A
Rosetta 2: false
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j10
CMAKE_PREFIX_PATH: /opt/homebrew/opt/openssl@1.1:/opt/homebrew/opt/readline:/opt/homebrew/opt/sqlite:/opt/homebrew/opt/ruby:/opt/homebrew
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /opt/homebrew/opt/python@3.10/Frameworks
PKG_CONFIG_PATH: /opt/homebrew/opt/gz-cmake3/lib/pkgconfig:/opt/homebrew/opt/gz-utils2/lib/pkgconfig:/opt/homebrew/opt/openssl@1.1/lib/pkgconfig:/opt/homebrew/opt/readline/lib/pkgconfig:/opt/homebrew/opt/sqlite/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/python@3.10/lib/pkgconfig:/opt/homebrew/opt/libyaml/lib/pkgconfig:/opt/homebrew/opt/ruby/lib/pkgconfig:/opt/homebrew/opt/gz-math7/lib/pkgconfig:/opt/homebrew/opt/tinyxml2/lib/pkgconfig:/opt/homebrew/opt/console_bridge/lib/pkgconfig:/opt/homebrew/opt/tinyxml/lib/pkgconfig:/opt/homebrew/opt/urdfdom_headers/lib/pkgconfig:/opt/homebrew/opt/urdfdom/lib/pkgconfig:/opt/homebrew/opt/pybind11/share/pkgconfig:/opt/homebrew/opt/eigen/share/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/13
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
ACLOCAL_PATH: /opt/homebrew/share/aclocal
PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/cmake/bin:/opt/homebrew/opt/pkg-config/bin:/opt/homebrew/opt/pybind11/bin:/opt/homebrew/opt/doxygen/bin:/opt/homebrew/opt/gdbm/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/python@3.10/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/opt/gz-tools2/bin:/opt/homebrew/opt/urdfdom/bin:/opt/homebrew/opt/python@3.10/libexec/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: osrf/simulation/sdformat13 13.3.0~pre1 did not build
Logs:
/Users/serkantas/Library/Logs/Homebrew/sdformat13/00.options.out
/Users/serkantas/Library/Logs/Homebrew/sdformat13/01.cmake.cc
/Users/serkantas/Library/Logs/Homebrew/sdformat13/01.cmake
/Users/serkantas/Library/Logs/Homebrew/sdformat13/02.make.cc
/Users/serkantas/Library/Logs/Homebrew/sdformat13/build
/Users/serkantas/Library/Logs/Homebrew/sdformat13/02.make
Do not report this issue to Homebrew/brew or Homebrew/core!
/opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/3.6.20-14-g31ed690\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 13.1\)\ curl/7.85.0 --header Accept-Language:\ en --retry 3 --location https://api.github.com/search/issues\?q=sdformat13\+repo\%3Aosrf\%2Fhomebrew-simulation\+state\%3Aopen\+in\%3Atitle\&per_page=100 --header Accept:\ application/vnd.github\+json --write-out '
'\%\{http_code\} --header Authorization:\ token\ ****** --header X-GitHub-Api-Version:2022-11-28 --dump-header /private/tmp/github_api_headers20230122-86245-1vd0g4z