This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Compile issue on iphone with vectorized code

Tags: None
(comma "," separated)
de3ug
Registered Member
Posts
1
Karma
0
OS
I've run into a cryptic error message when trying to include Eigen in my iphone projects. It seems that everything compiles and runs as advertised when I have the EIGEN_DONT_VECTORIZE flag set, but I get the following error message otherwise.

{standard input}:unknown:Undefined local symbol LC0
{standard input}:unknown:Undefined local symbol LC1
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

I created a new project on my system to replicate and isolate the issue, but now I'm stuck. I'm using Xcode 3 and have the -mfpu=neon -mfloat-abi=softfp flags set.

The ARM-NEON optimizations are the main reason I want to use Eigen, so I need to fix this before I can more forward.

Anybody have any ideas or advice for how to fix this? Thanks.
User avatar
bjacob
Registered Member
Posts
658
Karma
3
Apparently the compiler is confused by the static global variables in NEON/Complex.h, wrapping them in inline functions returning them solves the problem. Patch coming.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora