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

undefined reference to aligned_alloc when DARKNET_NNPACK=ON #15

Open
baynaa7 opened this issue Oct 19, 2018 · 0 comments
Open

undefined reference to aligned_alloc when DARKNET_NNPACK=ON #15

baynaa7 opened this issue Oct 19, 2018 · 0 comments

Comments

@baynaa7
Copy link

baynaa7 commented Oct 19, 2018

Hello, I am trying to run darknet-nnpack on android (aarch64-v8a). However, I receive compiler error:

darknet-nnpack/src/convolutional_layer.c:(.text.forward_convolutional_layer_nnpack+0xfc): undefined reference to `aligned_alloc'
clang38: error: linker command failed with exit code 1 (use -v to see invocation)

I am using aarch64-linux-android-clang and aarch64-linux-android-clang++
I added android-ndk directory that contains cstdlib and added header "include in convolution_layer.c, then it also shows error.

How did you compile the repo with DARKNET_NNPACK=ON ?
thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant