osrf / homebrew-simulation

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

3 Build Errors: error: use of undeclared identifier 'ABSL_DCHECK'; error: no member named 'absl' in the global namespace; error: cannot initialize return object of type 'int' with an lvalue of type 'const char[25]' #2286

Closed Sefibrah closed 1 year ago

Sefibrah commented 1 year ago

Full build error recording

https://gist.github.com/Sefibrah/2fcb4bb76f0383a5df2216caf4c50c0d

Quick taste of build error:

brew install gazebo11
==> Fetching osrf/simulation/gazebo11
==> Downloading https://gist.githubusercontent.com/scpeters/9199370/raw/afe59558
Already downloaded: /Users/ibrahimsefer/Library/Caches/Homebrew/downloads/12171d5787bf5709495604c1591fd598a9cffc3a055eb509bea588d33019cabc--brew_python_fix.patch
==> Downloading https://osrf-distributions.s3.amazonaws.com/gazebo/releases/gaze
Already downloaded: /Users/ibrahimsefer/Library/Caches/Homebrew/downloads/ff808eb949e88e2b0ac7e9f0e33fca2dbceab72b2424a091101e5a5df13c40db--gazebo-11.13.0.tar.bz2
==> Installing gazebo11 from osrf/simulation
==> Patching
==> Applying brew_python_fix.patch
patching file 'deps/opende/CMakeLists.txt'
==> cmake .. -DQWT_WIN_INCLUDE_DIR=/usr/local/opt/qwt-qt5/lib/qwt.framework/Head
==> make install
Last 15 lines from /Users/ibrahimsefer/Library/Logs/Homebrew/gazebo11/02.make:
    ^
/usr/local/include/ignition/msgs5/ignition/msgs/header.pb.h:202:12: error: cannot initialize return object of type 'int' with an lvalue of type 'const char[25]'
    return "ignition.msgs.Header.Map";
           ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ignition/msgs5/ignition/msgs/header.pb.h:398:12: error: no member named 'absl' in the global namespace
  static ::absl::string_view FullMessageName() {
         ~~^
/usr/local/include/ignition/msgs5/ignition/msgs/header.pb.h:363:5: error: use of undeclared identifier 'ABSL_DCHECK'
    ABSL_DCHECK(GetOwningArena() == other->GetOwningArena());
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [gazebo/msgs/CMakeFiles/gazebo_msgs.dir/msgs.cc.o] Error 1
make[1]: *** [gazebo/msgs/CMakeFiles/gazebo_msgs.dir/all] Error 2
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/osrf/homebrew-simulation/issues

These open issues may also help:
Failed to build gazebo11 on Apple Silicon https://github.com/osrf/homebrew-simulation/issues/2220

Please help, it was working in Monterey, but now it simply refuses to work, specifically gazebo11, gazebo9, and gazebo7. I made sure to factory reset my entire laptop just in case, but that didn't do the trick unfortunately 😭

scpeters commented 1 year ago

this is part of #2274; I'm working on resolving it, sorry for the trouble it has caused so far

scpeters commented 1 year ago

gazebo11 was just rebuilt in #2295, so this should be fixed now