This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen

Bug 983

Summary: Memory align problem
Product: Eigen Reporter: MailMr_S
Component: Core - generalAssignee: Nobody <eigen.nobody>
Status: RESOLVED FIXED    
Severity: Compilation Problem CC: chtz, gael.guennebaud, jacob.benoit.1
Priority: Normal    
Version: unspecified   
Hardware: x86 - 32-bit   
OS: Windows   
Whiteboard:

Description MailMr_S 2015-03-24 13:21:03 UTC
I try to compile http://www.roboticslibrary.org/ with the current Eigen code 533ed5d85c9a (Avoid SVD: consider denormalized small numbers as zero when computing the rank of the matrix) but I get the following error:

d:\dev\eigen\include\eigen3\eigen\src/Geometry/Quaternion.h(165): error C2719: 'v': Formeller Parameter mit __declspec(align('8')) wird nicht ausgerichtet
          d:\dev\eigen\include\eigen3\eigen\src/Geometry/Quaternion.h(228): Siehe Verweis auf die Instanziierung der gerade kompilierten Klassen-template "Eigen::QuaternionBase<Eigen::Quaternion<double,0>>".
          D:\dev\rl-0.6.2\src\rl\mdl\Cylindrical.cpp(62): Siehe Verweis auf die Instanziierung der gerade kompilierten Klassen-template "Eigen::Quaternion<double,0>".

I could locate this problem to change set d8e950d48cb1 (Bug 973, improve AVX support by enabling vectorization of Vector4i-like types, and enforcing alignement of Vector4f/Vector2d-like types to preserve compatibility with SSE and future Eigen versions that will vectorize them with AVX enabled.) Before this change set it's working.
Comment 1 Christoph Hertzberg 2015-03-28 12:41:00 UTC
This should fix the issue:
https://bitbucket.org/eigen/eigen/commits/1bad3e145f
(Vector3 was passed by value, not by reference)
Comment 2 Nobody 2019-12-04 14:24:44 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/983.