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

[BUG] NDK 22 - libz.a for armeabi-v7a missing symbols #1448

Closed
ca333 opened this issue Feb 17, 2021 · 1 comment
Closed

[BUG] NDK 22 - libz.a for armeabi-v7a missing symbols #1448

ca333 opened this issue Feb 17, 2021 · 1 comment
Labels

Comments

@ca333
Copy link

ca333 commented Feb 17, 2021

With NDK 22.0.7026061 on macOS 11.2.1 with Apple Silicon (M1) when linking shared lib the ld linker throws error:

  ld: error: undefined symbol: arm_cpu_enable_crc32                                                                
  >>> referenced by deflate.c:0 (external/zlib/deflate.c:0)                                                        
  >>>               deflate.o:(deflateInit2_) in archive /Users/vlad1m1r/Library/Android/sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/arm-linux-androideabi/libz.a
                                                                                                                   
  ld: error: undefined symbol: x86_cpu_enable_simd                                                                 
  >>> referenced by deflate.c:0 (external/zlib/deflate.c:0)                                                        
  >>>               deflate.o:(deflateInit2_) in archive /Users/vlad1m1r/Library/Android/sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/arm-linux-androideabi/libz.a

Temporary fix: downgrade NDK to 21

@ca333 ca333 added the bug label Feb 17, 2021
@DanAlbert
Copy link
Member

#1391

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

No branches or pull requests

2 participants