fix(ci): Use DWARF4 for ASAN builds to fix dwz compatibility (#5250)#6440
Open
raramakr wants to merge 3 commits into
Open
fix(ci): Use DWARF4 for ASAN builds to fix dwz compatibility (#5250)#6440raramakr wants to merge 3 commits into
raramakr wants to merge 3 commits into
Conversation
dwz version 0.14/0.15 (used in Debian packaging) doesn't support DWARF5 debug info sections like .debug_str_offsets, causing dh_dwz to fail when building ASAN-enabled packages. This change adds -gdwarf-4 flag for ASAN/TSAN builds to ensure DWARF4 format is used: - CMakePresets.json: Add -gdwarf-4 to sanitizer compile flags - compiler/CMakeLists.txt: Pass THEROCK_SANITIZER to amd-llvm subproject - compiler/pre_hook_amd-llvm.cmake: Add -gdwarf-4 to RUNTIMES_CMAKE_ARGS for ASAN builds (compiler-rt/ASAN runtime) Jira ID : #5076 Passed CI build : https://github.com/ROCm/TheRock/actions/runs/26191034841 --------- Co-authored-by: raramakr <raramakr@amd.com> Co-authored-by: Claude Opus 4 <noreply@anthropic.com>
…options (#6340) Add disable_dwz flag to the following packages: - amdrocm-solver-test - amdrocm-solver - amdrocm-dnn - amdrocm-rdc-test - amdrocm-rdc Update debian_rules.j2 to run dh_dwz with custom options when not disabled: exclude .hsaco/.co files and set --low-mem-die-limit=none --max-die-limit=none to prevent memory-related build failures. JIRA ID: #5076 ---------
Add "Disable_DWZ": "True" to hipfile package configuration to skip DWARF debug info compression during Debian packaging. DWZ fails on libhipfile.so with: "Unknown debugging section .debug_str_offsets" JIRA ID: #5076 Co-authored-by: raramakr <raramakr@amd.com>
This was referenced Jul 9, 2026
marbre
reviewed
Jul 10, 2026
Member
There was a problem hiding this comment.
We don't publish native Linux ASAN packages in 7.14, thus why is this needed?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dwz version 0.14/0.15 (used in Debian packaging) doesn't support DWARF5
debug info sections like .debug_str_offsets, causing dh_dwz to fail
when building ASAN-enabled packages.
This change adds -gdwarf-4 flag for ASAN/TSAN builds to ensure
DWARF4 format is used:
Disable dwz compression for select packages and tune dh_dwz options
Add disable_dwz flag to the following packages:
Update debian_rules.j2 to run dh_dwz with custom options when not
disabled: exclude .hsaco/.co files and set --low-mem-die-limit=none
--max-die-limit=none to prevent memory-related build failures.
Jira ID : #5076
Original PRs:
#5250
#5076
#6340