Skip to content

Disable mem-access warnings on aarch64. - #506

Merged
clalancette merged 2 commits into
ros2from
clalancette/disable-memaccess-warnings
Mar 3, 2022
Merged

clalancette merged 2 commits into
ros2from
clalancette/disable-memaccess-warnings

Conversation

@clalancette

Copy link
Copy Markdown
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 [email protected]

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 <[email protected]>
@clalancette

Copy link
Copy Markdown
Contributor Author

CI:

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

@clalancette

Copy link
Copy Markdown
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 <[email protected]>
@clalancette

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

CI:

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

@Blast545 Blast545 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@clalancette

Copy link
Copy Markdown
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 <[email protected]>
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 <[email protected]>

* 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 <[email protected]>
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.

2 participants