为Chrome的Portable Native Client(PNaCl)构建错误移植Eigen3库

时间:2017-02-08 18:28:41

标签: c++ opencv google-nativeclient eigen3

所以我有一个运行Ubuntu 16.04的AWS实例(免费一级)。在那里我安装了nacl_sdk(它正在工作并且允许我成功访问他们的示例站点)和naclports,我曾经用它来移植opencv我最初因为zlib的错误而遇到了麻烦,但是在我添加了i386后它才能正常工作架构并在系统上进行了sudo apt-get更新并安装了必要的i386程序。

注意我也安装了depot_tools。

现在我正在尝试为pnacl安装eigen3库,但是我收到一个错误,我不知道如何理解它,也不确定它是如何构建来修复它的。

我移植opencv的命令是

$ NACL_ARCH=pnacl make opencv

我尝试了这两个命令来构建具有相同结果的eigen3(如下所示)

$ NACL_ARCH=pnacl make eigen3
$ bin/webports install eigen3

这是终端输出的结尾(整个消息很长):

######################################################################
Building eigen3
######################################################################
chdir /home/ubuntu/Work/ExternCode/naclports/src/out/build/eigen3/build_pnacl
make -j1 basicstuff cholesky determinant geo_transformations inverse
Scanning dependencies of target basicstuff
Building CXX object test/CMakeFiles/basicstuff.dir/basicstuff.cpp.o
Linking CXX executable basicstuff
Built target basicstuff
Scanning dependencies of target cholesky
[100%] Building CXX object test/CMakeFiles/cholesky.dir/cholesky.cpp.o
clang: error: unable to execute command: Killed
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.7.0 (https://chromium.googlesource.com/a/native_client/pnacl-clang.git cf0dc7f6e6123dfa9b8834b56743315300b34e6c) (https://chromium.googlesource.com/a/native_client/pnacl-llvm.git baa63524b6b493ec2a6aa2c5193d9f25c0c33191)
Target: le32-unknown-nacl
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg: 

test/CMakeFiles/cholesky.dir/build.make:62: recipe for target 'test/CMakeFiles/cholesky.dir/cholesky.cpp.o' failed
make[3]: *** [test/CMakeFiles/cholesky.dir/cholesky.cpp.o] Error 254
CMakeFiles/Makefile2:14386: recipe for target 'test/CMakeFiles/cholesky.dir/all' failed
make[2]: *** [test/CMakeFiles/cholesky.dir/all] Error 2
CMakeFiles/Makefile2:14393: recipe for target 'test/CMakeFiles/cholesky.dir/rule' failed
make[1]: *** [test/CMakeFiles/cholesky.dir/rule] Error 2
Makefile:5128: recipe for target 'cholesky' failed
make: *** [cholesky] Error 2
webports: Build failed: 'eigen3' [pnacl/release]

1 个答案:

答案 0 :(得分:0)

  

clang: error: unable to execute command: Killed

看起来您的AWS实例已经杀死了clang,因此可能内存不足。免费套餐提供了1 MiB的RAM,这可能不足以满足您的目的。