You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(chapel-ci): set CHPL_HOME after .deb install to find ChapelSysCTypes
The Chapel 2.3.0 .deb installs the `chpl` binary into /usr/bin (or a
symlinked location) but leaves the bundled modules tree under
/usr/share/chapel/<minor>/modules. Without CHPL_HOME pointing at
that prefix, the typecheck step fails:
error: Could not find bundled module 'ChapelSysCTypes'
note: Missing ChapelSysCTypes indicates an incomplete build
CI's `chapel-build` first run after the 22:30Z fix-pin commit failed
on the very first module (LibProven.chpl uses `use CTypes`).
Fix: after `apt-get install`, derive CHPL_HOME from `which chpl`'s
realpath; if the bundled `modules/` directory is not next to the
binary (which is the case when /usr/bin/chpl is the install target),
probe the canonical install locations and use whichever has
`modules/`. Export via $GITHUB_ENV so downstream steps inherit it.
Applied to all 4 Chapel install steps (build / smoke / tests /
detachable-build).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments