osrf / homebrew-simulation

Homebrew tap for osrf simulation software
Apache License 2.0
56 stars 74 forks source link

ogre1.9 - macOS 15.0 from source installation issues #2793

Open prawinsankar-ta opened 1 week ago

prawinsankar-ta commented 1 week ago

brew configuration:

$ brew config
HOMEBREW_VERSION: 4.3.23
ORIGIN: https://github.com/Homebrew/brew
HEAD: 42c11a4dedf352229271593de831161071603c66
Last commit: 3 days ago
Core tap JSON: 20 Sep 06:13 UTC
Core cask tap JSON: 20 Sep 06:13 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.gOXWWMAMy8/org.xquartz:0
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 3.3.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.4_1/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 16.0.0 build 1600
Git: 2.46.1 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.0-arm64
CLT: 16.0.0.0.1.1724870825
Xcode: N/A
Rosetta 2: false

I'm trying to run the general command as per documentation and receiving the following error,

brew tap osrf/simulation
brew install gz-harmonic

Command line errors:

   error   104< | c#s t d ieor>r otrr i<ecds tidnicol>u dtirnige d< sitndcilou.dhi>n gb u<ts tddiidon.'ht>  fbiuntd  dliidbnc'+t+ 'fsi n<ds tldiiboc.+h+>' sh e<asdtedri.o .\h
>       | h    ^e
ader. \
      |     ^
:64:39: error: field has incomplete type 'exception_ptr'
   64 |   _LIBCPP_HIDE_FROM_ABI exception_ptr(nullptr_t) _NOEXCEPT : __ptr_() {}
      |                                       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__exception/exception_ptr.h:54:33: note: definition of 'std::exception_ptr' is not complete until the closing '}'
   54 | class _LIBCPP_EXPORTED_FROM_ABI exception_ptr {
      |                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__exception/exception_ptr.h:64:3: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces
   64 |   _LIBCPP_HIDE_FROM_ABI exception_ptr(nullptr_t) _NOEXCEPT : __ptr_() {}
      |   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__config:874:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI'
  874 |           __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_ODR_SIGNATURE))))
      |                          ^
In file included from /tmp/ogre1.9-20240920-10745-ttkh05/sinbad-ogre-108ab0bcc696/OgreMain/src/OgreAnimation.cpp:28:
In file included from /tmp/ogre1.9-20240920-10745-ttkh05/sinbad-ogre-108ab0bcc696/OgreMain/include/OgreStableHeaders.h:41:
In file included from /tmp/ogre1.9-20240920-10745-ttkh05/sinbad-ogre-108ab0bcc696/OgreMain/include/OgreArchive.h:31:
In file included from /tmp/ogre1.9-20240920-10745-ttkh05/sinbad-ogre-108ab0bcc696/OgreMain/include/OgrePrerequisites.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/string:594:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__memory_resource/polymorphic_allocator.h:20:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/tuple:1455:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/exception:82:
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__exception/exception_ptr.h:64:49: error: expected ';' at end of declaration list
   64 |   _LIBCPP_HIDE_FROM_ABI exception_ptr(nullptr_t) _NOEXCEPT : __ptr_() {}
      |                                                 ^
In file included from /tmp/ogre1.9-20240920-10745-ttkh05/sinbad-ogre-108ab0bcc696/OgreMain/src/OgreAnimable.cpp:28:
In file included from /tmp/ogre1.9-20240920-10745-ttkh05/sinbad-ogre-108ab0bcc696/OgreMain/include/OgreStableHeaders.h:41:
In file included from /tmp/ogre1.9-20240920-10745-ttkh05/sinbad-ogre-108ab0bcc696/OgreMain/include/OgreArchive.h:31:
In file included from /tmp/ogre1.9-20240920-10745-ttkh05/sinbad-ogre-108ab0bcc696/OgreMain/include/OgrePrerequisites.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/string:600:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__string/char_traits.h:26:
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/cstdio:104:5: error: <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
  104 | #   error <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header. \
      |     ^
In file included from /tmp/ogre1.9-20240920-10745-ttkh05/sinbad-ogre-108ab0bcc696/OgreMain/src/OgreAnimation.cpp:28:
In file included from /tmp/ogre1.9-20240920-10745-ttkh05/sinbad-ogre-108ab0bcc696/OgreMain/include/OgreStableHeaders.h:41:
In file included from /tmp/ogre1.9-20240920-10745-ttkh05/sinbad-ogre-108ab0bcc696/OgreMain/include/OgreArchive.h:31:
In file included from /tmp/ogre1.9-20240920-10745-ttkh05/sinbad-ogre-108ab0bcc696/OgreMain/include/OgrePrerequisites.h:32:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/string:600:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/__string/char_traits.h:26:
/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/cstdio:104:5: error: <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
  104 | #   error <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header. \
      |     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreArchiveManager.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
20 errors generated.
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimable.cpp.o] Error 1
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAtomicScalar.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimationTrack.cpp.o] Error 1
20 errors generated.
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreArchive.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimationState.cpp.o] Error 1
20 errors generated.
20 errors generated.
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAlignedAllocator.cpp.o] Error 1
make[2]: *** [OgreMain/CMakeFiles/OgreMain.dir/src/OgreAnimation.cpp.o] Error 1
make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
make: *** [all] Error 2

==> Formula
Tap: osrf/simulation
Path: /opt/homebrew/Library/Taps/osrf/homebrew-simulation/Formula/ogre1.9.rb
==> Configuration
HOMEBREW_VERSION: 4.3.23
ORIGIN: https://github.com/Homebrew/brew
HEAD: 42c11a4dedf352229271593de831161071603c66
Last commit: 3 days ago
Core tap JSON: 20 Sep 06:13 UTC
Core cask tap JSON: 20 Sep 06:13 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.gOXWWMAMy8/org.xquartz:0
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 3.3.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.4_1/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 16.0.0 build 1600
Git: 2.46.1 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.0-arm64
CLT: 16.0.0.0.1.1724870825
Xcode: N/A
Rosetta 2: false
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /opt/homebrew/opt/icu4c:/opt/homebrew
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /opt/homebrew/opt/icu4c/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/lz4/lib/pkgconfig:/opt/homebrew/opt/zstd/lib/pkgconfig:/opt/homebrew/opt/libpng/lib/pkgconfig:/opt/homebrew/opt/freetype/lib/pkgconfig:/opt/homebrew/opt/libxau/lib/pkgconfig:/opt/homebrew/opt/libxdmcp/lib/pkgconfig:/opt/homebrew/opt/libxcb/lib/pkgconfig:/opt/homebrew/opt/libx11/lib/pkgconfig:/opt/homebrew/opt/libzzip/lib/pkgconfig:/opt/homebrew/opt/hwloc/lib/pkgconfig:/opt/homebrew/opt/tbb/lib/pkgconfig:/opt/homebrew/opt/xorgproto/share/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/15
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk
ACLOCAL_PATH: /opt/homebrew/share/aclocal
PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/cmake/bin:/opt/homebrew/opt/icu4c/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/lz4/bin:/opt/homebrew/opt/zstd/bin:/opt/homebrew/opt/doxygen/bin:/opt/homebrew/opt/libpng/bin:/opt/homebrew/opt/freetype/bin:/opt/homebrew/opt/libzzip/bin:/opt/homebrew/opt/hwloc/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: osrf/simulation/ogre1.9 1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9 did not build

I have tried,

but both the above approaches hasn't helped much. I have upgraded to macOS 15.0 recently. Any suggestions or help would be appreciated.

Thanks in advance!

scpeters commented 1 week ago

issues with ogre1.9 have also been reported in https://github.com/osrf/homebrew-simulation/issues/2478. Can you try installing ogre2.3 to see if it has issues?

prawinsankar-ta commented 1 week ago

Hey @scpeters, thanks for reverting. Should I try installing only Ogre2.3 and building homebrew-simulation?

prawinsankar-ta commented 1 week ago

I tried removing and installing ogre2.3 on terminal in standalone. It got installed.

brew install ogre2.3
scpeters commented 1 week ago

you can try removing the depends_on "ogre1.9" line from gz-rendering8, so see if that helps with building gz-harmonic