bpd1069 / naclports

Automatically exported from code.google.com/p/naclports
0 stars 0 forks source link

zlib-1.2.3 fails to build with pnacl toolchain #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Compilation: ./make_all.sh
export NACL_ARCH=pnacl
make ${TARGETS}
2.zlin-1.2.3 failed to build 

What is the expected output? What do you see instead?
zlib builds with no error. 
Error below:
Wrote script /home/user/depot_tools/src/out/repository/zlib-1.2.3/minigzip
./minigzip: line 8: /home/user/naclsdk/pepper_canary/tools/sel_ldr_x86_64: 
cannot execute binary file
./minigzip: line 8: /home/user/naclsdk/pepper_canary/tools/sel_ldr_x86_64: 
cannot execute binary file
  *** minigzip test FAILED ***
make: *** [out/sentinels/pnacl/ports/zlib] Error 1

What version of the product are you using? On what operating system?
pepper_canary ( version 34, revision 242693)
Ubuntu 12.04 (32-bit OS)
naclports synced at revision 12573

Please provide any additional information below.
Wrote script /home/user/depot_tools/src/out/repository/zlib-1.2.3/minigzip
DEBUG MODE ENABLED (bypass acl)
DEBUG MODE ENABLED (bypass acl)
hello world
  *** minigzip test OK ***
/home/user/naclsdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-finalize 
minigzip.pexe -o minigzip.pexe_final.pexe

real    0m0.098s
user    0m0.072s
sys 0m0.016s
/home/user/naclsdk/pepper_canary/toolchain/linux_pnacl/bin/pnacl-translate 
minigzip.pexe_final.pexe -arch x86-64 -o minigzip.x86-64.nexe

real    0m5.740s
user    0m5.660s
sys 0m0.064s
Wrote script /home/user/depot_tools/src/out/repository/zlib-1.2.3/minigzip
./minigzip: line 8: /home/user/naclsdk/pepper_canary/tools/sel_ldr_x86_64: 
cannot execute binary file
./minigzip: line 8: /home/user/naclsdk/pepper_canary/tools/sel_ldr_x86_64: 
cannot execute binary file
  *** minigzip test FAILED ***
make: *** [out/sentinels/pnacl/ports/zlib] Error 1

Original issue reported on code.google.com by mele3...@gmail.com on 30 Dec 2013 at 6:38

GoogleCodeExporter commented 9 years ago
It looks like you might be trying to build on the x86_32 linux install.

We should probably detect this a skip the sel_ldr runs in this case.

Original comment by sbc@chromium.org on 30 Dec 2013 at 6:56

GoogleCodeExporter commented 9 years ago

Original comment by sbc@google.com on 30 Dec 2013 at 6:56

GoogleCodeExporter commented 9 years ago

Original comment by sbc@google.com on 14 Jan 2014 at 7:33