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

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 opened this issue Jun 12, 2023 · 2 comments
Labels

Comments

@Sefibrah
Copy link

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 😭

@Sefibrah Sefibrah added the bug label Jun 12, 2023
@scpeters
Copy link
Member

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

@scpeters
Copy link
Member

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

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