Skip to content

debuggable installations in eic/containers: wire --debug-source and --debug-symbols into the dbg environment - #388

Open
SebastianPaucar wants to merge 12 commits into
masterfrom
feature/debuggable-installations-spack-v1.2.2
Open

debuggable installations in eic/containers: wire --debug-source and --debug-symbols into the dbg environment#388
SebastianPaucar wants to merge 12 commits into
masterfrom
feature/debuggable-installations-spack-v1.2.2

Conversation

@SebastianPaucar

@SebastianPaucar SebastianPaucar commented Aug 10, 2026

Copy link
Copy Markdown

This PR adds the framework related to the following design discussion for debuggable installations in spack packages:

  • PR 52768 (spack/spack): DWARF-referenced source hook and symbol splitting plus GDB init for debuggable installations.
  • PR 19 (spack/compiler-wrapper): -ffile-prefix-map=<staging>=. and --build-id injection in compiler-wrapper.
  • PR 5353 (spack/spack-packages): set SPACK_DEBUG_PREFIX_MAP for -ffile-prefix-map=<stage>=. injection at compiler-wrapper level.
  • Spack Debuggable Installations Demo
    (SebastianPaucar/spack): --debug-source and --debug-symbols PoC container demo (verified end-to-end).

In summary, this PR adds --debug-source and --debug-symbols to spack install when ENV=dbg, via a new conditional in scripts/build-eic.sh that appends to SPACK_INSTALL_FLAGS.

@wdconinc

Copy link
Copy Markdown
Contributor

@SebastianPaucar In master (#393) we added a mirror for the source that has the ssl certificate errors in CI here.

@SebastianPaucar

SebastianPaucar commented Aug 19, 2026

Copy link
Copy Markdown
Author

@SebastianPaucar In master (#393) we added a mirror for the source that has the ssl certificate errors in CI here.

Branch updated with #393. Also implemented OCI push/autopush (per mirrors.yaml.in) and fetch of debug info (sources and symbols) into/from GHCR and eicweb mirrors (verified locally with my GHCR), according to this commit in my Spack branch feature/debuggable-installations-v1.2.2 #a5874e8. Working in the documentation.

@SebastianPaucar

Copy link
Copy Markdown
Author

@SebastianPaucar In master (#393) we added a mirror for the source that has the ssl certificate errors in CI here.

Noticed some of the newer cherry-picks in spack-packages.sh were missing. Added.

@wdconinc

Copy link
Copy Markdown
Contributor

It seems this PR has created a whole new spack build cache at https://eicweb.phy.anl.gov/containers/eic_container/container_registry/154 because we reuse the branch name as container registry name ;-)

@SebastianPaucar
SebastianPaucar force-pushed the feature/debuggable-installations-spack-v1.2.2 branch from 44d8e6f to 2085e60 Compare August 25, 2026 21:13
@SebastianPaucar
SebastianPaucar force-pushed the feature/debuggable-installations-spack-v1.2.2 branch from 47f298b to 95a46a9 Compare August 30, 2026 00:55
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Capybara summary for PR 388

@SebastianPaucar
SebastianPaucar marked this pull request as ready for review September 1, 2026 17:14
@SebastianPaucar
SebastianPaucar marked this pull request as draft September 1, 2026 17:16
@SebastianPaucar SebastianPaucar mentioned this pull request Sep 1, 2026
11 tasks
@SebastianPaucar

Copy link
Copy Markdown
Author

Hi @wdconinc, 84 checks have now successfully passed. Can you please rerun the remaining failing check (eicweb/eic_container)?

On another note, I figured out the root cause of the previous SSL issues. dawncut has buildcache coverage, while dawn does not, and their host URL (http://geant4.kek.jp/~tanaka/src/) is broken, as stated in eic-spack/spack_repo/eic/packages/dawncut/package.py. These are not related to our debuggable framework. I dropped both from xl/spack.yaml and just opened a dedicated PR if useful here #407.

@SebastianPaucar
SebastianPaucar marked this pull request as ready for review September 1, 2026 21:38
@SebastianPaucar
SebastianPaucar force-pushed the feature/debuggable-installations-spack-v1.2.2 branch from e3d553a to ec02ef6 Compare September 3, 2026 23:35
@SebastianPaucar
SebastianPaucar force-pushed the feature/debuggable-installations-spack-v1.2.2 branch from ec02ef6 to 676d717 Compare September 3, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants