Status: Accepted
Owner:
jz...@google.comLabels: Type-Defect Priority-Medium
New issue 353 by
jz...@google.com: build failure with android ndk standalone toolchain
https://bugs.chromium.org/p/webp/issues/detail?id=353v0.6.0-148-g461ae555
We make the assumption of cpu-features.h availability in all android configurations. The standalone toolchain does not include the header presumably because it's given an architecture to target.
We should auto-detect this in cmake/configure and update the #ifdef or possibly remove the check as NEON has been required since M and in AOSP we strip this line to simplify the build; the flag as it's used currently assumes the NEON dsp files will be flagged correctly, which they aren't in the legacy armeabi targets.
$ ./android-ndk-r15b/build/tools/make_standalone_toolchain.py \
--arch arm --api 24 --stl gnustl --install-dir /tmp/android-arm-24
$ ../configure --build $(../config.guess) \
--host arm-linux-androideabi \
CC='/tmp/android-arm-24/bin/clang' \
CFLAGS='-O3 -fPIE' LDFLAGS='-Wl,-pie' --disable-shared
$ make
...
CC libwebpdsp_la-cpu.lo
../src/dsp/cpu.c:22:10: fatal error: 'cpu-features.h' file not found
#include <cpu-features.h>
^~~~~~~~~~~~~~~~
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings