Hi,--I have checked out the native_client src from git clone https://chromium.googlesource.com/native_client/src/native_clientThen, I run following commands to build the toolchain:$ cd native_client/tools$ make SDKLOC=/my/path/to/sdkEverything seems fine.When I try to compile the trusted sel_ldr,$ cd ..$ ./scons --mode=opt-linux sel_ldrthere comes an exception:Exception: Cannot find a toolchain for x86-32 in /my/path/to/native_client/toolchain/linux_x86/pnacl_newlib_raw:File "/home/xum/Documents/sgx-transparency/native_client/SConstruct", line 2980:RANDOM_LIBS = ['nacl_random_private'],File "/home/xum/Documents/sgx-transparency/third_party/scons-2.0.1/engine/SCons/Environment.py", line 1317:apply_tools(clone, tools, toolpath)File "/home/xum/Documents/sgx-transparency/third_party/scons-2.0.1/engine/SCons/Environment.py", line 105:env.Tool(tool)File "/home/xum/Documents/sgx-transparency/third_party/scons-2.0.1/engine/SCons/Environment.py", line 1694:tool(self)File "/home/xum/Documents/sgx-transparency/third_party/scons-2.0.1/engine/SCons/Tool/__init__.py", line 180:self.generate(env, *args, **kw)File "/home/xum/Documents/sgx-transparency/native_client/site_scons/site_tools/naclsdk.py", line 702:_SetEnvForNativeSdk(env, root)File "/home/xum/Documents/sgx-transparency/native_client/site_scons/site_tools/naclsdk.py", line 110:(env['TARGET_FULLARCH'], sdk_path))Anyone has any idea on how to resolve this issue?Thanks.Min
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to native-client-di...@googlegroups.com.
To post to this group, send email to native-cli...@googlegroups.com.
Visit this group at http://groups.google.com/group/native-client-discuss.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to native-client-discuss+unsub...@googlegroups.com.
Thank you, Derek! It's very helpful.
Now I have compiled the toolchain from native_client/src/tools:
make clean build-with-newlib -j16
I compiled sel_ldr and irt_core.nexe as well.
scons --mode=opt-linux sel_ldr
scons build_bin
scons build_lib
One thing that confuses me now is how I can compile a NaCl module using the NaCl toolchain. I remember the correct way to do this is like this:
./my/path/to/nacl-gcc -g -O2 -m32 -I/my/path/to/include -L/my/path/to/lib -o hello_world.nexe hello_world.c -lppapi
However, I cannot find the headers of ppapi. Neither are the library of ppapi. Do I miss something?
To unsubscribe from this group and stop receiving emails from it, send an email to native-client-di...@googlegroups.com.
To post to this group, send email to native-cli...@googlegroups.com.
Visit this group at http://groups.google.com/group/native-client-discuss.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to native-client-di...@googlegroups.com.