zinonet / naclports

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

building PNaCl ports fails on 32-bit linux #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For example building zlib results in:

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

This is because the 64-bit sel_ldr can't run on 32-bit linux.

Original issue reported on code.google.com by sbc@chromium.org on 14 Jan 2014 at 7:32

GoogleCodeExporter commented 9 years ago
Issue 102 has been merged into this issue.

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

GoogleCodeExporter commented 9 years ago
Hii,

I am also facing the similar issue.
Any solution for this i want to build opencv for 32 bit linux???

Thanks,
Saurav

Original comment by kumarsau...@gmail.com on 14 Feb 2014 at 9:28

GoogleCodeExporter commented 9 years ago
You should be able to just set NACL_ARCH=i686 and then type "make opencv".

I think the problem only occurs if you run "make_all.sh" which tries to build 
all
architectures, or if you leave NACL_ARCH unset (sinse it defaults to x86_64).

One fix we could make is to make the default arch be i686 when building on 
32-bit
linux.. but you should be able to build today without that.

Original comment by sbc@google.com on 14 Feb 2014 at 6:39

GoogleCodeExporter commented 9 years ago
This issue should be addressed in by this change: 
https://codereview.chromium.org/634693003

Original comment by sbc@google.com on 14 Oct 2014 at 12:21

GoogleCodeExporter commented 9 years ago

Original comment by sbc@google.com on 14 Oct 2014 at 12:21