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

Disable mem-access warnings on aarch64. #506

Merged
merged 2 commits into from
Mar 3, 2022

Conversation

clalancette
Copy link
Contributor

There is currently a bug in Eigen in Ubuntu 22.04 meaning
that it throws a mem-access warning every time Eigen/PacketMath.h
is used. There is an upstream fix for it, and we are trying
to get that into Ubuntu 22.04, but that is not guaranteed.
For now, disable the warning only if we are on GCC or Clang
and the target architecture is aarch64.

Signed-off-by: Chris Lalancette clalancette@openrobotics.org

There is currently a bug in Eigen in Ubuntu 22.04 meaning
that it throws a mem-access warning every time Eigen/PacketMath.h
is used.  There is an upstream fix for it, and we are trying
to get that into Ubuntu 22.04, but that is not guaranteed.
For now, disable the warning only if we are on GCC or Clang
and the target architecture is aarch64.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette
Copy link
Contributor Author

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@clalancette
Copy link
Contributor Author

Actually, this may not be the right way to do things. Converting to a draft until I figure it out.

@clalancette clalancette marked this pull request as draft February 28, 2022 17:45
The comment in the code explains why we are doing this.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette
Copy link
Contributor Author

All right, the latest is a much more targeted fix that I like a lot better. Changing this back to review.

@clalancette clalancette marked this pull request as ready for review March 1, 2022 14:18
@clalancette
Copy link
Contributor Author

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

Copy link
Contributor

@Blast545 Blast545 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@clalancette
Copy link
Contributor Author

Thanks for the review! Going ahead and merging this one.

@clalancette clalancette merged commit 69f78ce into ros2 Mar 3, 2022
@delete-merged-branch delete-merged-branch bot deleted the clalancette/disable-memaccess-warnings branch March 3, 2022 20:48
jacobperron added a commit that referenced this pull request Apr 2, 2022
Same as #506, but in a different file
where Eigen headers are being included.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Apr 4, 2022
* Depend on orocos_kdl_vendor

* Change package.xml dependency to the vendor package
* Add missing include directories for orocos_kdl
  Upstream should probably be updated to use modern cmake targets.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Disable mem-access warnings on aarch64

Same as #506, but in a different file
where Eigen headers are being included.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants