We just recently updated to Xcode6, and we a lot of errors in arm_neon.h we are using glkit framework to build our app.
我们刚刚更新到Xcode6,在arm_氖中有很多错误。我们正在使用glkit框架来构建我们的应用程序。
Here the error in arm_neon.h:
这里是arm_新生儿的错误。
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:69:24: Neon vector size must be 64 or 128 bits /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:978:47: C-style cast from vector 'float16x4_t' to vector 'int64x1_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:1001:10: C-style cast from scalar 'uint64_t' (aka 'unsigned long long') to vector 'float16x4_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:1020:10: C-style cast from vector 'attribute((vector_size(8 * sizeof(signed char)))) signed char' to vector 'float16x4_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:1032:51: C-style cast from vector 'float16x4_t' to vector 'int8x8_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:1297:10: First two arguments to __builtin_shufflevector must be vectors /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:1389:10: First two arguments to __builtin_shufflevector must be vectors /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3120:10: C-style cast from vector 'float16x4_t' to vector 'int8x8_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3142:10: C-style cast from vector 'float16x4_t' to vector 'int16x4_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3164:10: C-style cast from vector 'float16x4_t' to vector 'int32x2_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3186:10: C-style cast from vector 'float16x4_t' to vector 'int64x1_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3208:10: C-style cast from vector 'float16x4_t' to vector 'uint8x8_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3230:10: C-style cast from vector 'float16x4_t' to vector 'uint16x4_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3252:10: C-style cast from vector 'float16x4_t' to vector 'uint32x2_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3274:10: C-style cast from vector 'float16x4_t' to vector 'uint64x1_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3282:10: C-style cast from vector 'int8x8_t' to vector 'float16x4_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3284:10: C-style cast from vector 'int16x4_t' to vector 'float16x4_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3286:10: C-style cast from vector 'int32x2_t' to vector 'float16x4_t' of different size /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3288:10: C-style cast from vector 'int64x1_t' to vector 'float16x4_t' of different size
/应用程序/ xcode /内容/开发/工具链/ XcodeDefault.xctoolchain / usr / lib /叮当声/ 6.0 / include / arm_neon。h:69:24:霓虹矢量大小必须是64或128位/应用/Xcode.app/内容/开发者/工具链/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/ arm_氖。h:978:47: C-style cast from vector 'float16x4_t' to vector 'int64x1_t' of different size /Applications/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:1001:10: c风格,从标量'uint64_t'(又名'unsigned long long')到矢量'float16x4_t'的不同尺寸/应用/Xcode.app/内容/开发者/工具链/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:1020:10: C-style cast from vector 'attribute((vector_size(8 * sizeof(签名char)))),符号char' to vector 'float16x4_t' of different size /Applications/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:1032:51: C-style cast from vector 'float16x4_t' to vector 'int8x8_t' of different size /Applications/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:1297:10:第一个两个参数是__builtin_shufflevector必须是向量/应用程序/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:1389:10:第一个两个参数是__builtin_shufflevector必须是向量/应用程序/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:3120:10: C-style cast from vector 'float16x4_t' to vector 'int8x8_t' of different size /Applications/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:3142:10: C-style cast from vector 'float16x4_t' to vector 'int16x4_t' of different size /Applications/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:3164:10: C-style cast from vector 'float16x4_t' to vector 'int32x2_t' of different size /Applications/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:3186:10: C-style cast from vector 'float16x4_t' to vector 'int64x1_t' of different size /Applications/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:3208:10: C-style cast from vector 'float16x4_t' to vector 'uint8x8_t' of different size /Applications/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:3230:10: C-style cast from vector 'float16x4_t' to vector 'uint16x4_t' of different size /Applications/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:3252:10: C-style cast from vector 'float16x4_t' to vector 'uint32x2_t' of different size /Applications/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:3274:10: C-style cast from vector 'float16x4_t' to vector 'uint64x1_t' of different size /Applications/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:3282:10: C-style cast from vector 'int8x8_t' to vector 'float16x4_t' of different size /Applications/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:3284:10: C-style cast from vector 'int16x4_t' to vector 'float16x4_t' of different size /Applications/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:3286:10: C-style cast from vector 'int32x2_t' to vector 'float16x4_t' of different size /Applications/Xcode.app/Contents/Developer/ toolchain/ XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon。h:3288:10: C-style cast from vector 'int64x1_t' to vector 'float16x4_t' of different size。
It ONLY occurs when we tried to build it in device, it builds well on simulators.
它只发生在我们试图在设备中构建它时,它在模拟器上很好地构建。
Thanks.
谢谢。
1 个解决方案
#1
0
i did a temporary fix for this, directly editing arm_neon.h changing the __fp16
to a short data type.
我做了一个临时修复,直接编辑arm_氖。将__fp16更改为一个短数据类型。
edit:
编辑:
ultimately we found out that our project was defining __fp16
to something else causing the problem.
最终,我们发现我们的项目将__fp16定义为其他导致问题的原因。
#1
0
i did a temporary fix for this, directly editing arm_neon.h changing the __fp16
to a short data type.
我做了一个临时修复,直接编辑arm_氖。将__fp16更改为一个短数据类型。
edit:
编辑:
ultimately we found out that our project was defining __fp16
to something else causing the problem.
最终,我们发现我们的项目将__fp16定义为其他导致问题的原因。