3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-01 21:08:55 +00:00
z3/.github/workflows
Copilot cfee267068
Fix OCaml static build: ensure stublibs dir is in ld.conf after ocamlfind install (#10003)
The "Ubuntu with OCaml on z3-static" CI job intermittently fails with
`Fatal error: exception End_of_file` from the OCaml bytecode linker when
compiling `ml_example_static.byte`.

## Root cause

`ocamlfind install z3-static build/api/ml/* build/libz3-static.a`
auto-recognizes `dllz3ml-static.so` (starts with `dll`) as a C stub and
copies it to `stublibs`, but without an explicit `-dll` flag it **does
not update `ld.conf`**—confirmed by the CI warning:

```
ocamlfind: [WARNING] You have installed DLLs but the directory .../stublibs is not mentioned in ld.conf
```

`ocamlc` searches `ld.conf` for stub DLLs at bytecode link time; the
missing entry causes `End_of_file`. The non-static job is unaffected
because it passes `-dll build/libz3.*` explicitly, which triggers the
`ld.conf` update as a side-effect.

## Fix

After `ocamlfind install`, append the `stublibs` path to `ld.conf` if
absent:

```bash
STUBLIBS="$(dirname "$(ocamlfind printconf destdir)")/stublibs"
LDCONF="$(ocamlfind printconf ldconf)"
if [ -d "$STUBLIBS" ] && ! grep -qF "$STUBLIBS" "$LDCONF" 2>/dev/null; then
  echo "$STUBLIBS" >> "$LDCONF"
fi
```

Idempotent; uses `ocamlfind printconf` to avoid hardcoded paths.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Lev Nachmanson <5377127+levnach@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-30 08:43:02 -07:00
..
shared Upgrade agentic workflows to gh-aw v0.36.0 (#8122) 2026-01-08 11:50:35 -08:00
a3-python.lock.yml Bump github/gh-aw-actions from 0.79.6 to 0.80.4 (#9902) 2026-06-18 17:42:08 -06:00
a3-python.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
academic-citation-tracker.lock.yml Bump actions/cache/restore from 5.0.5 to 6.0.0 (#9960) 2026-06-25 19:58:21 -06:00
academic-citation-tracker.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
agentics-maintenance.yml Bump actions/cache/restore from 5.0.5 to 6.0.0 (#9960) 2026-06-25 19:58:21 -06:00
android-build.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
api-coherence-checker.lock.yml Bump actions/cache/restore from 5.0.5 to 6.0.0 (#9960) 2026-06-25 19:58:21 -06:00
api-coherence-checker.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
build-warning-fixer.lock.yml Bump github/gh-aw-actions from 0.79.6 to 0.80.4 (#9902) 2026-06-18 17:42:08 -06:00
build-warning-fixer.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
build-z3-cache.yml Bump actions/cache from 5.0.5 to 6.0.0 (#9962) 2026-06-25 18:03:13 -06:00
ci.yml Fix OCaml static build: ensure stublibs dir is in ld.conf after ocamlfind install (#10003) 2026-06-30 08:43:02 -07:00
code-conventions-analyzer.lock.yml Bump actions/cache/restore from 5.0.5 to 6.0.0 (#9960) 2026-06-25 19:58:21 -06:00
code-conventions-analyzer.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
code-simplifier.lock.yml Bump github/gh-aw-actions from 0.79.6 to 0.80.4 (#9902) 2026-06-18 17:42:08 -06:00
code-simplifier.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
compare-stats-anomaly-reporter.lock.yml Bump github/gh-aw-actions from 0.79.6 to 0.80.4 (#9902) 2026-06-18 17:42:08 -06:00
compare-stats-anomaly-reporter.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
copilot-setup-steps.yml update aw to current version 2026-01-08 18:15:03 +00:00
coverage.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
cross-build.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
csa-analysis.lock.yml Bump actions/cache/restore from 5.0.5 to 6.0.0 (#9960) 2026-06-25 19:58:21 -06:00
csa-analysis.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
docs.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
fstar-master-build.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
issue-backlog-processor.lock.yml Bump actions/cache/restore from 5.0.5 to 6.0.0 (#9960) 2026-06-25 19:58:21 -06:00
issue-backlog-processor.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
mark-prs-ready-for-review.yml Bump actions/github-script from 8.0.0 to 9.0.0 (#9296) 2026-04-19 16:49:03 +02:00
memory-safety-report.lock.yml Bump actions/cache/restore from 5.0.5 to 6.0.0 (#9960) 2026-06-25 19:58:21 -06:00
memory-safety-report.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
memory-safety.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
msvc-static-build-clang-cl.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
msvc-static-build.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
nightly-validation.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
nightly.yml Remove in-workflow Pyodide builds from nightly and release pipelines (#9935) 2026-06-23 19:56:19 -06:00
nuget-build.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
ocaml.yaml Bump actions/cache from 5.0.5 to 6.0.0 (#9962) 2026-06-25 18:03:13 -06:00
ostrich-benchmark.lock.yml Bump github/gh-aw-actions from 0.79.6 to 0.80.4 (#9902) 2026-06-18 17:42:08 -06:00
ostrich-benchmark.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
pyodide-pypi.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
qf-s-benchmark.lock.yml Bump github/gh-aw-actions from 0.79.6 to 0.80.4 (#9902) 2026-06-18 17:42:08 -06:00
qf-s-benchmark.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
release-notes-updater.lock.yml Bump github/gh-aw-actions from 0.79.6 to 0.80.4 (#9902) 2026-06-18 17:42:08 -06:00
release-notes-updater.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
release.yml Remove in-workflow Pyodide builds from nightly and release pipelines (#9935) 2026-06-23 19:56:19 -06:00
smtlib-benchmark-finder.lock.yml Bump actions/cache/restore from 5.0.5 to 6.0.0 (#9960) 2026-06-25 19:58:21 -06:00
smtlib-benchmark-finder.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
specbot-crash-analyzer.lock.yml Bump actions/cache/restore from 5.0.5 to 6.0.0 (#9960) 2026-06-25 19:58:21 -06:00
specbot-crash-analyzer.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
tactic-to-simplifier.lock.yml Bump actions/cache/restore from 5.0.5 to 6.0.0 (#9960) 2026-06-25 19:58:21 -06:00
tactic-to-simplifier.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
tptp-benchmark.lock.yml Bump github/gh-aw-actions from 0.79.6 to 0.80.4 (#9902) 2026-06-18 17:42:08 -06:00
tptp-benchmark.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
wasm-release.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
wasm.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
Windows.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
wip.yml Bump actions/checkout from 6.0.2 to 7.0.0 (#9913) 2026-06-20 12:14:49 -06:00
workflow-suggestion-agent.lock.yml Bump actions/cache/restore from 5.0.5 to 6.0.0 (#9960) 2026-06-25 19:58:21 -06:00
workflow-suggestion-agent.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00
zipt-code-reviewer.lock.yml Bump actions/cache/restore from 5.0.5 to 6.0.0 (#9960) 2026-06-25 19:58:21 -06:00
zipt-code-reviewer.md Suppress auto-created failure issues for agentic workflows (#9834) 2026-06-11 20:57:43 -07:00