The "with parser generation" jobs only regenerated the parser when make
found seclang-parser.yy or seclang-scanner.ll newer than the committed
output. After a checkout that depends on file times, so some runs just
compiled the committed files. When a run did regenerate on macOS, it
used the bison 2.3 that comes with macOS, because Homebrew installs
bison keg-only, and failed with "require bison 3.0.2, but have 2.3".
- macOS: put the Homebrew bison first in PATH.
- All parser generation jobs: print the bison and flex versions and
touch the grammar and the scanner before make, so they are always
regenerated.
AI disclosure: made with help of Claude Code, Opus 5.5
What
The "with parser generation" jobs in
ci_new.ymldidn't reliably regenerate the parser, and on macOS they couldn't.--enable-parser-generationonly makesbisonandflexavailable tomake.makeregeneratesseclang-parser.ccandseclang-scanner.cconly when the.yyor the.llis newer than the committed output, and after a checkout that depends on the order in which the files were written. In the run of fix: SecDefaultAction applies only to the rules defined after it, and its setvar runs at each match #3769, which changesseclang-parser.yy, the 8 Linux jobs and macOS macos-26 regenerated the parser, while macOS macos-15 and xcode-27 compiled the committed files (there is noylwrap seclang-parserline in their logs).PATH, andconfigurepicks up/usr/bin/bison, the 2.3 that comes with macOS. In fix: SecDefaultAction applies only to the rules defined after it, and its setvar runs at each match #3769, the macOS job that did regenerate failed:seclang-parser.yy:2.10-16: require bison 3.0.2, but have 2.3(macOS, macos-26, with parser generation).How
$(brew --prefix bison)/binonGITHUB_PATH.make, a step prints thebisonandflexversions and touchessrc/parser/seclang-parser.yyandsrc/parser/seclang-scanner.ll, so both are always regenerated.The committed parser is not affected; the other jobs still compile it as before.
Checks
ci_new.ymlparses as YAML.bisonversion (3.x on macOS, too) and theylwraplines for both the parser and the scanner.AI disclosure
Made with help of Claude Code (Opus 5.5)
Summary by CodeRabbit