Re: [eigen] AltiVec build errors |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
argh, I pasted the wrong compiler output.
Here is the compiler errors relevant here:
[ 0%] Building CXX object
libavogadro/src/CMakeFiles/avogadro-lib.dir/camera.o
/usr/include/c++/4.0.0/bits/stl_vector.h:148: error: template class
without a name
/usr/include/c++/4.0.0/bits/stl_vector.h:154: error: expected
unqualified-id before ?<?
token
/usr/include/c++/4.0.0/bits/stl_vector.h:162: error: ?vector_type? was
not declared in
this scope
/usr/include/c++/4.0.0/bits/stl_vector.h:162: error: template argument
2 is invalid
/usr/include/c++/4.0.0/bits/stl_vector.h:163: error: ?vector_type? was
not declared in
this scope
/usr/include/c++/4.0.0/bits/stl_vector.h:163: error: template argument
2 is invalid
/usr/include/c++/4.0.0/bits/stl_vector.h:188: error: expected
unqualified-id before
?const?
/usr/include/c++/4.0.0/bits/stl_vector.h:188: error: expected `)'
before ?const?
/usr/include/c++/4.0.0/bits/stl_vector.h:199: error: expected `)' before ?__n?
/usr/include/c++/4.0.0/bits/stl_vector.h:216: error: expected `)' before ?__n?
/usr/include/c++/4.0.0/bits/stl_vector.h:233: error: expected
unqualified-id before
?const?
/usr/include/c++/4.0.0/bits/stl_vector.h:233: error: expected `)'
before ?const?
Quoting jacob@xxxxxxxxxxxxxxx:
Hi,
In Avogadro, somebody has hit compile errors on a G5 system.
The problem seems to be with the "vector" keyword used in
arch/AltiVec/PacketMath.h : it conflicts with std::vector.
The reason why we hit that issue in Avogadro and not before seems to be
the particular combination of header includes and "using namespace"
that avogadro is doing.
Anyway, Konstantinos, do you see something that could be done about
that? Like:
* do there exist __ versions of "vector"? Like __vector or __vector__ ?
* do there exist "mm" versions like the ones used in arch/SSE/PacketMath.h ?
Either way would allow us to avoid this conflict.
Cheers,
Benoit
[ 8%] Building CXX object
libavogadro/src/CMakeFiles/avogadro-lib.dir/camera.o
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp: In
member function ?void Avogadro::Camera::initializeViewPoint()?:
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp:164:
error: ?class Eigen::Block<Eigen::Matrix<double, 3, 3, 3, 3, 48u>,
1, 3, 1, 32>? has no member named ?unitOrthogonal?
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp:168:
error: ?class Eigen::Transform3d? has no member named ?linear?
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp: In
member function ?void Avogadro::Camera::applyPerspective() const?:
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp:196:
error: ?class Eigen::Transform3d? has no member named ?data?
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp: In
member function ?void Avogadro::Camera::applyModelview() const?:
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp:201:
error: ?class Eigen::Transform3d? has no member named ?data?
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp: In
member function ?Eigen::Vector3d Avogadro::Camera::unProject(const
Eigen::Vector3d&) const?:
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp:209:
error: ?class Eigen::Transform3d? has no member named ?data?
/Users/ricard/svn/avogadro/trunk/libavogadro/src/camera.cpp:209:
error: ?class Eigen::Transform3d? has no member named ?data?
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.