On Fri, Jan 29, 2016 at 7:27 AM, Ed Baafi <
e...@modk.it> wrote:
> Hi All,
>
> I'm porting a large library to native client that uses CMAKE for its build
> system. I am able to successfully build a static library with nacl but
> when I try to compile it with pnacl the different search paths are not set
> up properly. For nacl I was using the i686-nacl-* tools in
> pepper_44/toolchain/mac_pnacl/bin/. For Pnacl I'm attempting to use the
> pnacl-* tools in pepper_44/toolchain/mac_pnacl/bin/
>
> 1) My first problem is "pnacl-ld: Cannot find '-lpthread'" I mask that by
> pointing the linker to pepper_44/toolchain/mac_pnacl/le32-nacl/lib
This should work by default. How are you running the linker? If you
use the pnacl-clang driver it certainly works for me:
$NACL_SDK_ROOT/toolchain/linux_pnacl/bin/pnacl-clang -lpthread ~/test/hello.c
> 2) Then I get "use of undeclared identifier 'isspace'" but isspace should be
> defined in newlib
This is a known issue that can be fixed by passing -std=gnu++11. See
https://groups.google.com/forum/#!topic/native-client-discuss/m2vOMflHJrQ.
>
> This is all very confusing because there are various directories within
> mac_pnacl that have non portable looking names like i686_bc-nacl,
> arm_bc-nacl, and arm-nacl. For example my masked fix to #1 above seems to
> point to a native version of pthread and there doesn't seem to be a portable
> one. There also do not seem to be any isspace in any portable looking
> directory.
>
> Can someone shed some light on this? Perhaps send me the include
> directories from a good PNACL -v build so I can at least understand what
> should be included?
>
> Thanks,
> Ed
>
>
> --
> 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
https://groups.google.com/group/native-client-discuss.
> For more options, visit
https://groups.google.com/d/optout.