Skip to content

Commit d4bf43e

Browse files
committed
fix(chapel-ci): set CHPL_LLVM=none to skip LLVM backend build
Second cold-build attempt failed at: Error: Please set the environment variable CHPL_LLVM to a supported value. 1) 'none' to build with minimal LLVM support 2) 'bundled' ... 3) 'system' ... Chapel's compiler-builds tries to verify LLVM headers via clang/Basic/Version.h before building; on Ubuntu 22.04 we don't have LLVM dev headers installed, and we don't need them — CHPL_TARGET_COMPILER=gnu already targets the C backend. Setting CHPL_LLVM=none disables the LLVM backend entirely. Multilocale GASNet+smp comms don't depend on LLVM, only on the runtime layer.
1 parent aeab874 commit d4bf43e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/chapel-ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,11 @@ jobs:
308308
export CHPL_COMM_SUBSTRATE=smp
309309
export CHPL_LAUNCHER=smp
310310
export CHPL_TARGET_COMPILER=gnu
311+
# CHPL_LLVM=none disables the LLVM backend (we only need the gnu C
312+
# backend for the multilocale smoke test). Without this, the build
313+
# tries to verify LLVM headers via clang/Basic/Version.h and aborts
314+
# with a CHPL_LLVM "unset" make target.
315+
export CHPL_LLVM=none
311316
# setchplenv.bash references ${MANPATH} unconditionally; GH runners
312317
# don't export MANPATH by default, so seed it before sourcing.
313318
export MANPATH="${MANPATH:-}"
@@ -322,6 +327,7 @@ jobs:
322327
run: |
323328
set -euo pipefail
324329
export CHPL_HOME="${{ env.CHAPEL_MULTILOCALE_HOME }}"
330+
export CHPL_LLVM=none
325331
export MANPATH="${MANPATH:-}"
326332
source "$CHPL_HOME/util/setchplenv.bash"
327333
# Persist env to subsequent steps via GITHUB_ENV

0 commit comments

Comments
 (0)