Closed songjiachao closed 1 month ago
The following warnings were emitted during compilation:
(Error output in details below.)
The core issue seems to be the compiler doesn't support the -arch aarch64-linux-android28
option being passed to it.:
-- Check for working C compiler: .../aarch64-linux-android28-clang - broken
...
clang: error: unsupported option '-arch' for target 'aarch64-linux-android28'
clang: warning: argument unused during compilation: '-mmacosx-version-min=10.13' [-Wunused-command-line-argument]
make[1]: *** [CMakeFiles/cmTC_4093f.dir/testCCompiler.c.o] Error 1
...
I think this must be somewhere in CMake's logic. Why would the NDK major version ("28") be appended to the arch? Perhaps, CMake is assuming that the compiler is Apple-Clang? Based upon its usage of -mmacosx-version-min=10.13
, that seems to be the case: https://github.com/Kitware/CMake/blob/5d58adf282e1ecafd3bc1085e4ca22274a29bda0/Modules/Platform/Apple-Clang.cmake#L13
Here's a couple of things to try:
ANDROID_NDK_ROOT
or ANDROID_NDK
are exported in your build environment. (You might try setting ANDROID_SDK
or ANDROID_SDK_ROOT
as well to the .../Android/sdk
directory.)CC
and CXX
environment variables to the path to the compiler (aarch64-linux-android28-clang
) being used. (I'm not sure how we Please let us know any other relevant information or guidance on how we could reproduce the build failure. I hope we can improve our build scripts so that other users may avoid experiencing issues like this.
now i got this error
The following warnings were emitted during compilation: (error output in "details" below)
❯ clang -v
Apple clang version 16.0.0 (clang-1600.0.26.3)
Target: arm64-apple-darwin24.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
#.zshrc
# ANDROID
export ANDROID_HOME=~/Library/Android/sdk
export ANDROID_NDK=$ANDROID_HOME/ndk/28.0.12433566
export NDK_HOME=$ANDROID_HOME/ndk/28.0.12433566
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/cmake/3.30.4/bin:$ANDROID_HOME/platform-tools
Can you help me solve this problem? I have been trying for two days and still can't compile it.
I resolved by this . but I dont know why https://github.com/aws/aws-lc-rs/issues/532#issuecomment-2378274873
Problem:
error: failed to run custom build command for
aws-lc-sys v0.22.0
Relevant details
System information: for linux, below info can be collected by running
uname -srvmp
Darwin 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:39:07 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6000 arm64 arm