0

I am trying to develop PNaCl program on debian7.8. The version of glibc in debian is 2.13 but PNaCl toolchain need glibc 2.15.

For example, when I try to build the program

/nacl_sdk/pepper_35/toolchain/linux_pnacl/bin/pnacl-clang++ -o hello_tutorial.bc hello_tutorial.cc -O2 -I/nacl_sdk/pepper_35/include -L/nacl_sdk/pepper_35/lib/pnacl/Release -lppapi_cpp -lppapi

and the error message is shown

/nacl_sdk/pepper_35/toolchain/linux_pnacl/host_x86_32/bin/clang: /lib/i386-linux-gnu/i686/cmov/libc.so.6: version `GLIBC_2.15' not found (required by /nacl_sdk/pepper_35/toolchain/linux_pnacl/host_x86_32/bin/../lib/libLLVM-3.4svn.so)

My question is, how to download Native client sdk which compiled by glibc 2.13?

hwliu
  • 205
  • 2
  • 6

1 Answers1

1

Chrome is built with a Debian sysroot, but a lot of the tooling (PNaCl included) is built on OSes that have more a recent libc. I'll talk to the team to see if we can also use the sysroot to build the tooling, but in the meantime it's possible to update your libc.

Community
  • 1
  • 1
JF Bastien
  • 6,673
  • 2
  • 26
  • 34
  • Thanks @JF Bastien. I have tried your solution but failed. I think that I would like to do another work and wait for the patch. – hwliu Mar 14 '15 at 19:29