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

Eigen alignment error with -march compile flag #50

Open
spencerteetaert opened this issue Jul 31, 2024 · 0 comments
Open

Eigen alignment error with -march compile flag #50

spencerteetaert opened this issue Jul 31, 2024 · 0 comments

Comments

@spencerteetaert
Copy link

On some systems, Eigen will throw an error when using lgmath if the -march flag is set. Specifically, when running the TransformationWithCovariance test

[  FAILED  ] LGMath.TransformationWithCovarianceConstructors (4 ms)
[ RUN      ] LGMath.TransformationWithCovarianceGetMethods
TransformWithCovarianceTest: /usr/local/include/eigen3/Eigen/src/Core/DenseStorage.h:128: Eigen::internal::plain_array<T, Size, MatrixOrArrayOptions, 32>::plain_array() [with T = double; int Size = 16; int MatrixOrArrayOptions = 0]: Assertion `(internal::UIntPtr(eigen_unaligned_array_assert_workaround_gcc47(array)) & (31)) == 0 && "this assertion is explained here: " "http://eigen.tuxfamily.org/dox-devel/group__TopicUnalignedArrayAssert.html" " **** READ THIS WEB PAGE !!! ****"' failed.
Aborted (core dumped)

The eigen help page says that switching to C++17 should solve this issue (it does not with lgmath). Not sure what a permanent fix should be. Removing the -march=native compile flag seems to solve the issue for me.

A similar issue is discussed in this thread

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

No branches or pull requests

1 participant