Closed abuibrahim closed 4 days ago
Update - adding EXTRA_OECMAKE += "-DENABLE_LINKER_BUILD_ID=ON"
fixed it, so perhaps an optional build-id
knob could be added to PACKAGECONFIG
for those who want to enable it.
Update - adding
EXTRA_OECMAKE += "-DENABLE_LINKER_BUILD_ID=ON"
fixed it, so perhaps an optionalbuild-id
knob could be added toPACKAGECONFIG
for those who want to enable it.
Thanks for following up and root causing it, this option is enabled by default in GCC in oe-core, therefore we should add it as a packageconfig
and also enable it by default. So there is an option for someone to disable it but default can be to enable it.
Describe the bug When trying to use the
oe-debuginfod
script as described in https://docs.yoctoproject.org/next/dev-manual/debugging.html#using-the-debuginfod-server-method to debug a Clang built recipe, no symbols/source can be found on remote servers fromDEBUGINFOD_URLS
To Reproduce Steps to reproduce the behavior:
TOOLCHAIN = "clang"
and build core-image-minimal.oe-debuginfod
export DEBUGINFOD_URLS="http://<your-host-ip>:8002/" ; gdb /bin/my-prog
Expected behavior You should see debug info and sources automatically downloaded during debuging session. This works when the same recipe is built with GCC.
It seems like the Clang built binaries miss the
.note.gnu.build-id
section