Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stl gnustl and libc++ #44

Closed
santo4ul opened this issue Jul 19, 2018 · 5 comments
Closed

stl gnustl and libc++ #44

santo4ul opened this issue Jul 19, 2018 · 5 comments
Labels
Feature Request New feature or request Question Further information is requested

Comments

@santo4ul
Copy link

santo4ul commented Jul 19, 2018

Hi,

I'm trying to compile ARM NN using Android toolchain (aarch64-linux-android-)

ACL recomends using "--stl gnustl" here

ARM NN recommends using "--stl=libc++" here

Currently I have two standalone toolchains. One to build ACL (with gnustl), the other to build ARM NN using libc++.

Is this the right way to do? Would there be any conflicts with the final library/exec?

Thanks,
San

@MatteoArm
Copy link
Contributor

Hi @santo4ul, that would probably result in errors when linking ACL in ArmNN.
I'd recommend keeping the same stl for all component builds, or the same NDK toolchain entirely.

@MatteoArm
Copy link
Contributor

I just noticed that you indeed have linker errors related to the stl version (#35).

@santo4ul
Copy link
Author

santo4ul commented Jul 19, 2018

Thanks MatteoArm.

The problem is, ACL recommends using gnustl with the following warning/attention. How do we go about it. We may endup with runtime errors, I'm not sure.

Attention
Due to some NDK issues make sure you use clang++ & gnustl

Thanks,
San

@MatteoArm
Copy link
Contributor

I just spoke with the Compute Library team and they confirmed that they already have plans to switch to libc++ over gnustl, updating also to NDK r17.

Building everything with r16b and libc++ is ok for the time being.

@santo4ul
Copy link
Author

Thank you @MatteoArm for the confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request Question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants