Compilation for ARM NEON broken with iOS SDK 5.0

Submitted by Marton Danoczy

Assigned to Marton Danoczy

Link to original bugzilla bug (#347)
Version: 3.0
Operating system: Mac OS

Description

Created attachment 207

Error messages when compiling with Clang 3.0

Hi,

Since the newest version of the iOS SDK, compilation for ARM NEON is broken, both with 3.0 and the default branch.

In iOS SDK 5.0, supported compilers are either LLVM-GCC or Clang (gcc is a symlink to

llvm-gcc).

Compiling the file bug.cpp (which does nothing but including Eigen) breaks:

bug.cpp:

#include <Eigen/Core>

$ llvm-gcc -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -pipe -Wall -O0 -I../eigen_orig -c bug.cpp

In file included from ../eigen_orig/Eigen/Core:269,

             from ei.cpp:1:  

../eigen_orig/Eigen/src/Core/arch/NEON/PacketMath.h:89: error: expected

unqualified-id before 'extension'

In file included from ../eigen_orig/Eigen/Core:352,

             from ei.cpp:1:  

../eigen_orig/Eigen/src/Core/GlobalFunctions.h:91: error: expected `}' at end

of input

../eigen_orig/Eigen/src/Core/GlobalFunctions.h:91: error: expected `}' at end

of input

same command, but with clang++ instead of llvm-gcc:

(totally different errors, see attached file)

Who can help? In the current state, the only workaround is -DEIGEN_DONT_VECTORIZE.

Thanks,

Marton

Attachment 207, "Error messages when compiling with Clang 3.0":

clang_errors