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

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

Open
prawinsankar-ta opened this issue Sep 20, 2024 · 9 comments
Open

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

prawinsankar-ta opened this issue Sep 20, 2024 · 9 comments
Labels

Comments

@prawinsankar-ta
Copy link

prawinsankar-ta commented Sep 20, 2024

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,

  • unlinking Ogre 1.9 module which is present and tried installing again.
  • uninstalling Ogre 1.9 and installing from source again

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!

@prawinsankar-ta prawinsankar-ta changed the title Homebrew-simulation - macos 15.0 installation issues Homebrew-simulation - macOS 15.0 installation issues Sep 20, 2024
@scpeters scpeters changed the title Homebrew-simulation - macOS 15.0 installation issues ogre1.9 - macOS 15.0 installation issues Sep 22, 2024
@scpeters
Copy link
Member

issues with ogre1.9 have also been reported in #2478. Can you try installing ogre2.3 to see if it has issues?

@prawinsankar-ta
Copy link
Author

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

@prawinsankar-ta
Copy link
Author

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

brew install ogre2.3

@scpeters
Copy link
Member

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

@prawinsankar-ta prawinsankar-ta changed the title ogre1.9 - macOS 15.0 installation issues ogre1.9 - macOS 15.0 from source installation issues Sep 24, 2024
@prawinsankar-ta
Copy link
Author

prawinsankar-ta commented Nov 10, 2024

I tried rebuilding as you had pointed out, but still running into errors. Is it needed to comment depends_on ogre1.9 else apart from gz-rendering8 ?

Attached below is the screenshot for your ref.

image

@scpeters
Copy link
Member

Please look at and considering the entire contents of the 02.make file,which only has the last 15 lines shown in that screenshot. The relevant error is earlier in that file

@prawinsankar-ta
Copy link
Author

I reviewed the 02.make file. It seems there are various build flags raised during the installation. Not sure if it's a ogre dependency issue as well.

02_make.txt

@scpeters
Copy link
Member

the log file is a bit garbled due to parallel build errors writing to the log file at the same time, but I was able to see the following:

           <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.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.

Perhaps try uninstalling the Xcode command-line tools and reinstalling?

@prawinsankar-ta
Copy link
Author

prawinsankar-ta commented Nov 28, 2024

Screenshot 2024-11-28 at 4 43 54 PM

@scpeters I tried reinstalling xcode-command-line-tools, but I'm still getting the same error while building hombrew.

Even I tried installing installing homebrew-simulation using,

brew install gz-harmonic --verbose

but dint help much either.

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

No branches or pull requests

2 participants