在NaCl中使用Neon编译错误

时间:2014-01-28 18:34:33

标签: neon google-nativeclient

我添加了命令行设置“-mfpu = neon”,以便我可以使用NEON指令。

但是这会导致一个奇怪的编译错误:

1>C:\Misc\nacl_sdk\vs_addin\examples\video_app\hello_world_gles\src\YUVBlock16x8.cpp(158,1): internal compiler error : in set_minipool_offset, at config/arm/arm.c:12961
1>   }
1>   ^
1>  libbacktrace could not find executable to open

如果我注释掉函数中的代码,它会成功编译/链接。

但是,生成的NaCl模块不会加载到ChromeBook上。在控制台中我看到:

NativeClient:NaCl模块加载失败:验证失败。文件违反了Native Client安全规则。

…

… Run sel_ldr in debug mode to ignore validation failure.

… Run ncval <module-name> for validation error details.

… reap logs

我还没有包括霓虹灯标头或使用任何霓虹灯instrinsics /组装。

C:\Misc\nacl_sdk\vs_addin\examples\video_app\hello_world_gles\NaClARM\newlib\Release>..\..\..\..\..\..\..\pepper_29\tools\ncval video_app_arm.nexe

有效。

1 个答案:

答案 0 :(得分:0)

将优化标志从-O3更改为-O2修复了编译问题和验证问题。我的代码也稍快一些。