我如何安装32位版本的Google的NaCl SDK?


0

我正在pepper_46尝试使用Google的Native Client SDK,所以我已经下载了安装,安装和尝试构建“入门”项目的工具,我得到了以下响应。

rob@asmodeus:~/Downloads/nacl_sdk/pepper_46/getting_started$ make serve
make -C part1  all
make[1]: Entering directory '/home/rob/Downloads/nacl_sdk/pepper_46/getting_started/part1'
/home/rob/Downloads/nacl_sdk/pepper_46/toolchain/linux_pnacl/bin/pnacl-clang++ -o hello_tutorial.bc hello_tutorial.cc -O2 -I/home/rob/Downloads/nacl_sdk/pepper_46/include -L/home/rob/Downloads/nacl_sdk/pepper_46/lib/pnacl/Release -lppapi_cpp -lppapi
[Errno 8] Exec format error
Command was: /home/rob/Downloads/nacl_sdk/pepper_46/toolchain/linux_pnacl/bin/clang \
    --driver-mode=g++ \
    -emit-llvm \
    -c -O2 \
    -fno-vectorize \
    -fno-slp-vectorize \
    -fno-common \
    -nostdinc \
    -target \
    le32-unknown-nacl \
    -I/home/rob/Downloads/nacl_sdk/pepper_46/include \
    -isystem \
    /home/rob/Downloads/nacl_sdk/pepper_46/toolchain/linux_pnacl/le32-nacl/usr/include \
    -isystem \
    /home/rob/Downloads/nacl_sdk/pepper_46/toolchain/linux_pnacl/lib/clang/3.7.0/include \
    -isystem \
    /home/rob/Downloads/nacl_sdk/pepper_46/toolchain/linux_pnacl/le32-nacl/include/c++/v1 \
    -isystem \
    /home/rob/Downloads/nacl_sdk/pepper_46/toolchain/linux_pnacl/le32-nacl/include \
    -isystem \
    /home/rob/Downloads/nacl_sdk/pepper_46/toolchain/linux_pnacl/sdk/include \
    -xc++ \
    hello_tutorial.cc \
    -o /home/rob/Downloads/nacl_sdk/pepper_46/getting_started/part1/hello_tutorial.bc---hello_tutorial.cc---.po
Makefile:50: recipe for target 'hello_tutorial.bc' failed
make[1]: *** [hello_tutorial.bc] Error 1
make[1]: Leaving directory '/home/rob/Downloads/nacl_sdk/pepper_46/getting_started/part1'
Makefile:54: recipe for target 'part1_ALL_TARGET' failed
make: *** [part1_ALL_TARGET] Error 2
rob@asmodeus:~/Downloads/nacl_sdk/pepper_46/getting_started$

据我所知,相关部分是[Errno 8] Exec format errorCommand was: /home/rob/.../bin/clang。经过一番调查,我发现了这一点。

rob@asmodeus:~/Downloads/nacl_sdk/pepper_46/toolchain/linux_pnacl/bin$ file clang
clang: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=a828789c24cefbb485103da1bf609d35e447dda2, stripped
rob@asmodeus:~/Downloads/nacl_sdk/pepper_46/toolchain/linux_pnacl/bin$

令人担忧的部分是“x86-64”,因为我的系统是一个简单的x86系统!Google的安装SDK的页面声明它支持x86-32,但没有说明如何操作,我无法在任何地方找到32位二进制文​​件或安装它们的方法。如何获取32位这些文件集?


它刚刚发生在我身上,这可能属于stackoverflow或类似的地方,不确定。
Robbie Mckennie 2015年

Answers:


1

在做了一些更多的研究之后,我发现即使Google确实支持x86-32 for NaCl,他们也不支持SDK。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.