Hi, (Sorry if this is a double post, had issues with first post and not sure if it went through)I have been working on compiling stand-alone NaCl applications with the newlib and gcc toolchain. Based on previous posts, I have been able to successfully compile and run a simple hello_world program using the new_lib toolchain and the following commands:~/Research/nacl/nacl_sdk/pepper_22/toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -shared -fPIC hello_world.c -o hello_world_newlib.nexe~/Research/nacl/nacl_sdk/pepper_22/tools/sel_ldr_x86_64 -Q -B ~/Research/nacl/nacl_sdk/pepper_22/tools/irt_x86_64.nexe hello_world_newlib.nexe
PLATFORM QUALIFICATION DISABLED BY -Q - Native Client's sandbox will be unreliable![23502,4212565824:10:00:07.489401] Native Client module will be loaded at base address 0x00007f8a00000000Hello World!Based on this previous post (https://groups.google.com/forum/#!topic/native-client-discuss/WK0f53cTG0s/discussion) and the script referenced in the post (https://github.com/krasin/nacl_interp/blob/master/nacl_interp_loader_sdk.sh), I have been trying to compile and run the same hello_world program for the glibc toolchain. However, I keep getting errors based on the following commands:~/Research/nacl/nacl_sdk/pepper_22/toolchain/linux_x86_glibc/bin/x86_64-nacl-gcc -shared -fPIC hello_world.c -o hello_world_glibc.nexe~/Research/nacl/nacl_sdk/pepper_22/tools/sel_ldr_x86_64 -a -S -Q -B ~/Research/nacl/nacl_sdk/pepper_22/tools/irt_x86_64.nexe -- ~/Research/nacl/nacl_sdk/pepper_22/toolchain/linux_x86_glibc/x86_64-nacl/lib64/runnable-ld.so --library-path ~/Research/nacl/nacl_sdk/pepper_22/toolchain/linux_x86_glibc/x86_64-nacl/lib64 ./hello_world_glibc.nexeDEBUG MODE ENABLED (bypass acl)PLATFORM QUALIFICATION DISABLED BY -Q - Native Client's sandbox will be unreliable![23498,3174541120:09:56:23.945739] BYPASSING ALL ACL CHECKS[23498,3174541120:09:56:23.953188] Native Client module will be loaded at base address 0x00007fd600000000[23498,3174463232:09:56:24.033812] NaClHostDescOpen: open returned -1, errno 2I have managed to get around most of my errors by googling around, but I have no idea what to do with this problem.
Weirdly, when I used compiling a simple executable combined with the library technique, I still get the error, but Hello World! is also printed. Anyone can explain this?
~/Research/nacl/nacl_sdk/pepper_22/tools/sel_ldr_x86_64 -Q -B ~/Research/nacl/nacl_sdk/pepper_22/tools/irt_x86_64.nexe hello_world.nexe~/Research/nacl/nacl_sdk/pepper_22/tools/sel_ldr_x86_64 -a -S -Q -B ~/Research/nacl/nacl_sdk/pepper_22/tools/irt_x86_64.nexe -- ~/Research/nacl/nacl_sdk/pepper_22/toolchain/linux_x86_glibc/x86_64-nacl/lib64/runnable-ld.so --library-path ~/Research/nacl/nacl_sdk/pepper_22/toolchain/linux_x86_glibc/x86_64-nacl/lib64 ./hello_world.nexe DEBUG MODE ENABLED (bypass acl)
PLATFORM QUALIFICATION DISABLED BY -Q - Native Client's sandbox will be unreliable!
[21551,3107280704:15:27:05.342913] BYPASSING ALL ACL CHECKS[21551,3107280704:15:27:05.346464] Native Client module will be loaded at base address 0x00007faa00000000[21551,3107202816:15:27:05.424661] NaClHostDescOpen: open returned -1, errno 2
Hello World!-Dilan
--To view this discussion on the web visit https://groups.google.com/d/msg/native-client-discuss/-/sM8ucJvR02gJ.
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To post to this group, send email to native-cli...@googlegroups.com.
To unsubscribe from this group, send email to native-client-di...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/native-client-discuss?hl=en.