Re: [eigen] sun studio 11 compiler error |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] sun studio 11 compiler error
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Wed, 25 Aug 2010 13:37:38 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=eSdDoZdL/4gt3sysiGsH3rPj1wW5U2mk+4nrsWXPmJQ=; b=r4H9kDC6pUu8ciaSDjgCzMMUmuzLZtLh8UPMPb9XQg6gvus7p58f/E2qHyx7aweMh4 iIk3NifcSdL1VeboBdpUW71pl/lBxzGG5ozXwy43Zjv5GjeS/RUBXsHduG59iEeYkUVR yfnVaSx7QB9wNW0Mg8wb87bz/SO6MKINHbR9Q=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=siXzaP2dBi5tnEjEFeUh3PX6lm6qQ9fuN+C7pQEtnr+0RxIjBVuGlgJ7vG8L09q+hw NzFS97B/VD5AWZpPfsS49xV2gBoLM7b/GLvpJhI0CmHKbHR83SUW2genATXeKqjxg00L NB+qFIfb8B8XBPkLyrn0UUVQ7TlqPGLiVqsEg=
Ok so now sun CC can parse Eigen/Core. If I try to simply declare a
matrix, e.g.:
Matrix3f a;
then get errors like:
"../Eigen/src/Core/DenseStorageBase.h", line 46: Error: Multiple
declaration for Options.
"../Eigen/src/Core/Matrix.h", line 135: Where: While specializing
"Eigen::DenseStorageBase<Eigen::Matrix<float, 3, 3, 0, 3, 3>>".
"../Eigen/src/Core/Matrix.h", line 135: Where: Specialized in
Eigen::Matrix<float, 3, 3, 0, 3, 3>.
Ok, Options is declared in both DenseStorageBase and Matrix, but
that's not the problem, because if for instance I add:
typedef float Foo;
in the private section of DenseStorageBase, then I get the same error on Foo:
"../Eigen/src/Core/DenseStorageBase.h", line 45: Error: Multiple
declaration for Foo.
"../Eigen/src/Core/Matrix.h", line 135: Where: While specializing
"Eigen::DenseStorageBase<Eigen::Matrix<float, 3, 3, 0, 3, 3>>".
"../Eigen/src/Core/Matrix.h", line 135: Where: Specialized in
Eigen::Matrix<float, 3, 3, 0, 3, 3>.
"suncc.cpp", line 70: Where: Specialized in non-template code.
Actually it fails on all static declarations (types, enums, static functions).
Here I'm totally clueless :(
gael
On Wed, Aug 25, 2010 at 12:42 PM, Gael Guennebaud
<gael.guennebaud@xxxxxxxxx> wrote:
> Hi,
>
> just to say that I'm on it....
>
>
> gael
>
> On Tue, Aug 24, 2010 at 9:26 PM, Ben Goodrich <bgokgm@xxxxxxxxxxxxxx> wrote:
>> On Tue, Aug 24, 2010 at 1:46 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
>>> So, since this isn't just a recent regression, forget about bisecting
>>> --- I was only mentioning it in case that would be one.
>>>
>>> Benoit
>>
>> Most likely not a recent regression, although it would not take very
>> long to bisect if I had a good commit to start from. Also, I managed
>> to get "Oracle Solaris Studio Express" installed under Linux (this
>> can be done under any distro with the tarball option and does not
>> require root access) and got the same compiler errors, so we can rule
>> out the possibility that it was just a SPARC thing.
>>
>> Ben
>>
>>
>>
>