-
Notifications
You must be signed in to change notification settings - Fork 258
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
NDK 19-beta1: libvpx error: argument unused during compilation: '-stdlib=libc++' #849
Comments
It also produces warnings when building other C projects (it fails with vpx because of Looks like this C++-specific flag shouldn't be used when not building C++ code. |
I've already solved this the right way upstream (changing Clang's default I think I probably do need to do something here. It's probably going to be a gross hack, but we shouldn't regress this behavior in r19 if it can be avoided. |
Actually this is super simple: https://android-review.googlesource.com/c/platform/ndk/+/836405 |
Fixed for beta 2. Thanks for the report! |
Crap, only half of this was actually cherry-picked. Beta 2 was still broken an now so is stable. Will be a part of r19b. |
I noticed that r19 is out (stable) but this is still open. So did this make the r19 stable build, or will we have to wait for r19b? Thanks all. |
Read the previous two comments. |
Hi, |
I'm staging a release candidate right now. We'll need to wait for QA to have room in their schedule (sometime this week, last I heard) and I have a bit more testing of my own to do. Once that's done, it goes live. Should be this week. |
Fix Windows... Test: Inspect Linux *and* Windows scripts Bug: android/ndk#849 Change-Id: Ica2c11d147c0d254150196655be520448ecb90ee (cherry picked from commit 716ba14)
Test: Manual inspection of build flags with `clang -v` Bug: android/ndk#849 Change-Id: Ibdb2254ee9e91f94c59c8c9c794b19ae617ef6d2 (cherry picked from commit dc2cc5f)
Test: None Bug: android/ndk#849 Change-Id: I770024162863e3a3a5ccebcefdebf8da43b031a4
`cmake` 3.10 is the current version of the tool in the Android SDK, an update from the much older 3.6. This update brings it closer to the host `cmake` versions (currently mostly 3.12.*) Bump NDK to release [19b][0] (a.k.a. 19.1), with the following changes: * [Issue 855][1]: ndk-build automatically disables multithreaded linking for LLD on Windows, where it may hang. It is not possible for the NDK to detect this situation for CMake, so CMake users and custom build systems must pass `-Wl,--no-threads` when linking with LLD on Windows. * [Issue 849][2]: Fixed unused command line argument warning when using standalone toolchains to compile C code. * [Issue 890][3]: Fixed CMAKE_FIND_ROOT_PATH. CMake projects will no longer search the host's sysroot for headers and libraries. * [Issue 907][4]: Fixed find_path for NDK headers in CMake. [0]: https://github.com/android-ndk/ndk/wiki/Changelog-r19#r19b [1]: android/ndk#855 [2]: android/ndk#849 [3]: android/ndk#890 [4]: android/ndk#907
`cmake` 3.10 is the current version of the tool in the Android SDK, an update from the much older 3.6. This update brings it closer to the host `cmake` versions (currently mostly 3.12.*) Bump NDK to release [19b][0] (a.k.a. 19.1), with the following changes: * [Issue 855][1]: ndk-build automatically disables multithreaded linking for LLD on Windows, where it may hang. It is not possible for the NDK to detect this situation for CMake, so CMake users and custom build systems must pass `-Wl,--no-threads` when linking with LLD on Windows. * [Issue 849][2]: Fixed unused command line argument warning when using standalone toolchains to compile C code. * [Issue 890][3]: Fixed CMAKE_FIND_ROOT_PATH. CMake projects will no longer search the host's sysroot for headers and libraries. * [Issue 907][4]: Fixed find_path for NDK headers in CMake. [0]: https://github.com/android-ndk/ndk/wiki/Changelog-r19#r19b [1]: android/ndk#855 [2]: android/ndk#849 [3]: android/ndk#890 [4]: android/ndk#907
`cmake` 3.10 is the current version of the tool in the Android SDK, an update from the much older 3.6. This update brings it closer to the host `cmake` versions (currently mostly 3.12.*) Bump NDK to release [19b][0] (a.k.a. 19.1), which changes: * [Issue 855][1]: ndk-build automatically disables multithreaded linking for LLD on Windows, where it may hang. It is not possible for the NDK to detect this situation for CMake, so CMake users and custom build systems must pass `-Wl,--no-threads` when linking with LLD on Windows. * [Issue 849][2]: Fixed unused command line argument warning when using standalone toolchains to compile C code. * [Issue 890][3]: Fixed CMAKE_FIND_ROOT_PATH. CMake projects will no longer search the host's sysroot for headers and libraries. * [Issue 907][4]: Fixed find_path for NDK headers in CMake. [0]: https://github.com/android-ndk/ndk/wiki/Changelog-r19#r19b [1]: android/ndk#855 [2]: android/ndk#849 [3]: android/ndk#890 [4]: android/ndk#907
Upgrade NDK from r19 to r20. Addressed NDK r19 issue: android/ndk#849
* Update ndk from branch 'ndk-release-r19' to 8978a0899f16f2a2221964dda1159be1f20e8e49 - Merge "Fix the make_standalone_toolchain stdlib fix." into ndk-release-r19 - Fix the make_standalone_toolchain stdlib fix. Fix Windows... Test: Inspect Linux *and* Windows scripts Bug: android/ndk#849 Change-Id: Ica2c11d147c0d254150196655be520448ecb90ee (cherry picked from commit 716ba14de9aeac231783a9e7d405d76cdd2f75cc)
* Update ndk from branch 'ndk-release-r19' to 1904f74db06e44e280e4ac977f0e5a212527e3a0 - Merge changes I77002416,Ibdb2254e,I5cb7b38f into ndk-release-r19 * changes: Update changelog to mention fix in r19b. Only use -stdlib=libc++ with clang++. Now r19b canary. - Update changelog to mention fix in r19b. Test: None Bug: android/ndk#849 Change-Id: I770024162863e3a3a5ccebcefdebf8da43b031a4 - Only use -stdlib=libc++ with clang++. Test: Manual inspection of build flags with `clang -v` Bug: android/ndk#849 Change-Id: Ibdb2254ee9e91f94c59c8c9c794b19ae617ef6d2 (cherry picked from commit dc2cc5f94756878c2ae214f47988bed1302aef5b) - Now r19b canary. Test: ./checkbuild.py Bug: None Change-Id: I5cb7b38f4bff55f1ebe50d5f03aa2481b3fe85c2
Error when configuring libvpx with NDK 19-beta1 with a standalone toolchain:
from
config.log
:Removing
-stdlib=libc++
from forced flags atmake_standalone_toolchain.py:125
made it build.The text was updated successfully, but these errors were encountered: