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

gz-physics fails to compile against dartsim 6.14.1 #660

Closed
scpeters opened this issue Jun 28, 2024 · 1 comment
Closed

gz-physics fails to compile against dartsim 6.14.1 #660

scpeters opened this issue Jun 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@scpeters
Copy link
Member

Environment

  • OS Version: macOS 12.6.6-x86_64
  • Source or binary build? source of gz-physics7 branch (f54d4de)

Build Status https://build.osrfoundation.org/job/gz_physics-ci-gz-physics7-homebrew-amd64/62/

Description

  • Expected behavior: it should compile
  • Actual behavior: it fails to compile

Steps to reproduce

  1. Install latest version (6.14.1) of dartsim on macOS from homebrew
  2. Build gz-physics7
  3. Observer compiler error

Output

/tmp/gz-physics7-20240628-32522-zc6n0e/gz-physics-7.3.0/dartsim/src/Base.hh:44:5: error: invalid token at start of a preprocessor expression
#if DART_VERSION_AT_LEAST(6, 13, 0)
    ^
/usr/local/include/dart/config.hpp:38:3: note: expanded from macro 'DART_VERSION_AT_LEAST'
  DART_VERSION_GE(x, y, z)
  ^
/usr/local/include/dart/config.hpp:19:4: note: expanded from macro 'DART_VERSION_GE'
  (DART_MAJOR_VERSION > x                                                      \
   ^
/usr/local/include/dart/config.hpp:5:28: note: expanded from macro 'DART_MAJOR_VERSION'
#define DART_MAJOR_VERSION @DART_MAJOR_VERSION @
                           ^

There is a potential fix in dartsim/dart#1820

@scpeters
Copy link
Member Author

scpeters commented Jul 1, 2024

gz-physics7 compiles again now that dartsim 6.14.2 is released

@scpeters scpeters closed this as completed Jul 1, 2024
@github-project-automation github-project-automation bot moved this from Inbox to Done in Core development Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

1 participant