-
Notifications
You must be signed in to change notification settings - Fork 257
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
r15 beta2 -g broken on MIPS and MIPS64 #399
Comments
PS: test.c in above tests is an empty file |
Whoops. I fixed this in ndk-build and cmake but forgot to add a note to the changelog for those of you with custom build systems. Sorry about that. I'll get the changelog updated. You need to explicitly pass |
Thanks! How about document ndk-build and cmake default flags? For example armeabi* uses -fno-integrated-as and mips64 uses -fintegrated-as. |
That's a clang default, not a ndk-build or cmake default. Those are under the control of upstream clang, so I don't know when they change (they should only rarely). The ndk-build defaults can be found in the various setup.mk files in the build source: https://android.googlesource.com/platform/ndk/+/master/build/core/toolchains/arm-linux-androideabi-clang/setup.mk. CMake flags can be found in the toolchain file. |
Sorry if I was unclear. What I was referring to is the following code segment in if(ANDROID_ABI STREQUAL "mips64" AND ANDROID_TOOLCHAIN STREQUAL clang)
list(APPEND ANDROID_COMPILER_FLAGS "-fintegrated-as")
endif()
if(ANDROID_ABI MATCHES "^armeabi" AND ANDROID_TOOLCHAIN STREQUAL clang)
# Disable integrated-as for better compatibility.
list(APPEND ANDROID_COMPILER_FLAGS
-fno-integrated-as)
endif() Those flags are added by NDK build systems. Documenting them can help custom build system implementers. |
Ah, yeah. I have a bug open to document things that build system maintainers should know: #125 |
Great! I guess this issue can be closed in favor of #125? |
Now that I've gotten the changelog updates pushed to the wiki, yes. |
Thanks! |
Test: None, markdown only Bug: android/ndk#399 Change-Id: I261c80542adfc96652967e73f7aea88f478bfb8f
This has been outdated for quite some time. Upgrade to the current platform and NDK toolchain that is in use. Test: android/ndk#399 Change-Id: I64b4fe2032546e584191261b6f46b2deafb3ea27
Thanks for your teaching! Regards, |
Probably just don't bother building for MIPS64. We don't support it anymore. |
Looks like @xiangzhai is building stuffs for a MIPS chip from China instead of Android, and he is not using NDK but their customized LLVM toolchain. |
@DanAlbert Thanks for your response! @yan12125 It is not Android or NDK issue. And it is not a customzied toolchain just the original one. Regards, |
Description
Since Android r15 beta2, -g is broken on MIPS and MIPS64. There are 4 scenarios:
I need -fno-integrated-as on MIPS due to #286, which is still an issue with the recent Clang update.
For now I disable debugging flags as a workaround.
Environment Details
Not all of these will be relevant to every bug, but please provide as much
information as you can.
The text was updated successfully, but these errors were encountered: