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]: inlinable function call in a function with debug info must have a !dbg location #2128

Closed
1 task done
LeviMarvin opened this issue Feb 20, 2025 · 3 comments
Closed
1 task done
Labels

Comments

@LeviMarvin
Copy link

Description

LD vmlinux.o
inlinable function call in a function with debug info must have a !dbg location
call void @__asan_handle_no_return()
LLVM ERROR: Broken module found, compilation aborted!
PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace.
#0 0x000055f8f66cfd02 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x2a9cd02)
#1 0x000055f8f66cec10 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x2a9bc10)
#2 0x000055f8f66d0171 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x2a9d171)
#3 0x00007f81d6966da0 (/lib/x86_64-linux-gnu/libc.so.6+0x3fda0)
#4 0x00007f81d69badcc __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#5 0x00007f81d6966d02 raise ./signal/../sysdeps/posix/raise.c:27:6
#6 0x00007f81d694f4f0 abort ./stdlib/abort.c:81:7
#7 0x000055f8f5535bcd (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x1902bcd)
#8 0x000055f8f5750f05 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x1b1df05)
#9 0x000055f8f5c52c2f (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x201fc2f)
#10 0x000055f8f5c52b6d (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x201fb6d)
#11 0x000055f8f5297f06 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x1664f06)
#12 0x000055f8f6036a20 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x2403a20)
#13 0x000055f8f6036394 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x2403394)
#14 0x000055f8f603cca2 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x2409ca2)
#15 0x000055f8f603c864 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x2409864)
#16 0x000055f8f5fe5be3 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x23b2be3)
#17 0x000055f8f5fe6808 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x23b3808)
#18 0x000055f8f5fe6568 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x23b3568)
#19 0x000055f8f5fe648b (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x23b348b)
#20 0x000055f8f5ffbaf6 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x23c8af6)
#21 0x000055f8f5fca068 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x2397068)
#22 0x000055f8f5fc9dfe (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x2396dfe)
#23 0x000055f8f5fc9d69 (/home/levi/toolchains/android-ndk-r28-llvm/bin/lld+0x2396d69)
#24 0x00007f81d69b9083 start_thread ./nptl/pthread_create.c:447:8
#25 0x00007f81d6a377b8 __GI___clone3 ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:80:0
Aborted

Upstream bug

No response

Commit to cherry-pick

No response

I am using a supported NDK

  • I have checked and the NDK I'm using is currently supported

Affected versions

r28

Host OS

Linux

Host OS version

Debian 12

Affected ABIs

arm64-v8a

@LeviMarvin LeviMarvin added the bug label Feb 20, 2025
@LeviMarvin
Copy link
Author

This error is occurred while building the android common kernel (mainline) with LTO (also including ThinLTO and Full LTO both.)

@DanAlbert
Copy link
Member

The NDK compiler isn't necessarily the same compiler that the kernel uses, so that could be your problem. I don't know anything about how the compiler is used on the kernel side of Android. @pirama-arumuga-nainar might.

I'll leave this open for now in case this is a real bug as opposed to a build misconfiguration.

@pirama-arumuga-nainar
Copy link
Collaborator

pirama-arumuga-nainar commented Mar 5, 2025

I am not sure what is missing but my recommendation is to just use the clang in the kernel branch instead of the NDK.

@pirama-arumuga-nainar pirama-arumuga-nainar closed this as not planned Won't fix, can't repro, duplicate, stale Mar 5, 2025
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

3 participants