Re: [eigen] AltiVec build errors |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] AltiVec build errors
- From: "Gael Guennebaud" <gael.guennebaud@xxxxxxxxx>
- Date: Wed, 27 Aug 2008 01:16:58 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=fCMjocYv4TPasnBoCfqZEi1306oaYRwXaRlZqYj+ICA=; b=k1fnFFDz24DE7PrbWurVOyyc0gAm6AjcxJz4SjVBYzunmxNsBYxf6jfueBxszghiQL GoZ1Xfcc1y8de4q3tkCM+JV7+5BI7WGS208aH77gFvEPcLvuINfHCsQfZQDIwg66TimY B4UbWNP9q3R3Azro5HKT4x+SaNtcrei2AWtBk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=h2hEbKqm62NIvKPZapuNeGsYgQuJGRd2eu0pw9o2I5H4sjHMLWGWWeOQKevD1yZ/1B EbYqqp3RiK+gQal7CQh2ONAusc2WoUlYuPzk9xMKR8oS94lvOMqxVDCOxo0JG0wnpfBz EvOWB42CAhz8hDERMJxR3/XuMNa+3DpDUp8Kc=
hi,
from gcc's doc:
"Compiling with -maltivec adds keywords __vector, __pixel, and __bool.
Macros vector, pixel, and bool are defined in <altivec.h> and can be
undefined"
so this is the way to go !
gael
On Tue, Aug 26, 2008 at 10:01 PM, <jacob@xxxxxxxxxxxxxxx> wrote:
> 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.
>
>
>
>