Re: [eigen] Compiling errors in Nuttx environment |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
On 14.08.2015 at 16:18, Nuno Marques wrote:
Hi there,
Update: This was a macros problem, so adding #undef to one of headers on the project that calls Eigen Core solved the first problem. But I'm still getting http://pastebin.com/bnxwa5uk.
Could you check if
#define EIGEN_MAX_STATIC_ALIGN_BYTES 16
before including Eigen works around that problem? There are some pending
refactorings on the vectorization logic, which should solve this issue
in the near future.
Regarding the isfinite problem: Can you check if protecting all calls
and definitions of isfinite by braces solves the issue, as well?
I.e., replace
return numext::isfinite(numext::real(x)) &&
numext::isfinite(numext::imag(x));
by
return (numext::isfinite)(numext::real(x)) &&
(numext::isfinite)(numext::imag(x));
etc...
Cheers,
Christoph
Btw: It's ok to include small code snippets/error messages into mails.
If they are slightly longer, you can alternatively attach them. Only if
they are unreasonably long, uploading them elsewhere and linking to them
should be preferred.
---Nuno MarquesTenente Aluno de Transmissões (Eng)
+351 912 090 991Azambuja | Portugal
As the creation appears, the path is driven in the conscious feeling of madness and happiness, which returns, in multiple ways, to what we achieve in greatness...
Follow me in: This message and any files herewith attached may contain confidential or privileged information and is intended solely for the use of the entity to which it is addressed. If you receive this message in error, please notify the sender immediately and delete this message and any files attached without copying them in any way.
From: n.marques21@xxxxxxxxxxx
To: eigen@xxxxxxxxxxxxxxxxxxx
Subject: [eigen] Compiling errors in Nuttx environment
Date: Fri, 14 Aug 2015 14:11:48 +0100
Hello all and thank you for accepting me in the mailing-list.
I have some issues that I would like to be resolved. I'm using the latest 3.2.90 version of Eigen in a Autopilot project called PX4, which uses a Nuttx RTOS in an ARM-based uC. Compiling one of the available builds, which uses an Eigen testing code, I get the following error: http://pastebin.com/7cb2rLsW.
Somehow it seems that there is some kind of incompatibility between the macros on NEWLIB and Eigen. I also suspect that numext:: may causing a conflict, because if I remove this before, for example, isfinite(), is able to get through. But then, another problem appears: http://pastebin.com/bnxwa5uk. For this one, I can't seem to find the solution.
The compilation toolchain and flag config is as the following: http://pastebin.com/nUJK2aQB.
Thanks in advance!
Best regards,
---Nuno MarquesTenente Aluno de Transmissões (Eng)
+351 912 090 991Azambuja | Portugal
As the creation appears, the path is driven in the conscious feeling of madness and happiness, which returns, in multiple ways, to what we achieve in greatness...
Follow me in: This message and any files herewith attached may contain confidential or privileged information and is intended solely for the use of the entity to which it is addressed. If you receive this message in error, please notify the sender immediately and delete this message and any files attached without copying them in any way.
--
----------------------------------------------
Dipl.-Inf., Dipl.-Math. Christoph Hertzberg
Cartesium 0.049
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen
Tel: +49 (421) 218-64252
----------------------------------------------