Skip to content

Eigen compilation error: error: partial specialization of ‘std::vector<T, Eigen::aligned_allocator<U> >’  #39

Description

@ToMadoRe

We observed following compiler error of V4R on one of our machines

In file included from /usr/local/include/eigen3/Eigen/StdVector:23:0,
from /usr/local/include/ceres/internal/numeric_diff.h:41,
from /usr/local/include/ceres/dynamic_numeric_diff_cost_function.h:70,
from /usr/local/include/ceres/ceres.h:44,
from /home/simon/Downloads/v4r_recognition_dev/modules/reconstruction/include/v4r/reconstruction/ProjLKPoseTrackerLM.h:46,
from /home/simon/Downloads/v4r_recognition_dev/modules/reconstruction/src/ProjLKPoseTrackerLM.cpp:33:
/usr/local/include/eigen3/Eigen/src/StlSupport/StdVector.h:69:9: error: partial specialization of ‘std::vector<T, Eigen::aligned_allocator<U> >’ after instantiation of ‘std::vector<Eigen::Matrix<float, 4, 4>, Eigen::aligned_allocator<Eigen::Matrix<float, 4, 4> > >’ [-fpermissive]
class vector<T,EIGEN_ALIGNED_ALLOCATOR<T> >

We haven't figured out the reason for this but there seems to be a relevant bug report filed on http://eigen.tuxfamily.org/bz/show_bug.cgi?id=829

To bypass this error, we switched to clang compiler, i.e. setting -DCMAKE_CXX_COMPILER=/usr/bin/clang++

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions