View Revisions: Issue #31606 |
[ All Revisions ] [ Back to Issue ] |
Summary |
0031606: Configuration, CMake - build fails with Android NDK + CLang compiler + MinGW Makefiles |
|
Revision |
2020-06-11 08:38 by kgv |
|
Description |
Building with Android NDK 21c on Windows leads to the following error:
clang++: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
c:\android-ndk-r21c\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld:
unrecognized option '--export-all-symbols'
c:\android-ndk-r21c\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld:
use the --help option for usage information
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Apparently, this happens due to "if(MINGW)" checks in CMake scripts intended only for GCC compiler and Windows target platform introduces by 0027197. |
|
Revision |
2020-06-10 19:50 by kgv |
|
Description |
Building with Android NDK 21c on Windows leads to the following error:
clang++: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
c:\android-ndk-r21c\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld:
unrecognized option '--export-all-symbols'
c:\android-ndk-r21c\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld:
use the --help option for usage information
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Apparently, this happens due to "if(MINGW)" checks in CMake scripts intended only for GCC compiler and Windows target platform. |