The GCC 12 container build fails building the bundled Ragel; install the distro ragel
Symptom#
make docker-test-gcc12 (image from docker/gcc12.Dockerfile) failed during the bundled Ragel dependency: make in build/build-docker-gcc12/_deps/ragel-build failed with no useful output.
Cause#
The image has no make, so the Ragel source build cannot run. Adding make worked but still compiled Ragel in the container (and building Ragel from the macOS-shared .cpmsource needs automake).
Fix#
cmake/modules/Dependencies.cmake uses a system ragel when one is on PATH, so install the distro ragel package in both gcc12.Dockerfile and the gcc-latest Dockerfile. Delete the half-built _deps/ragel-* directory before rerunning. To see the real error, rerun the failing make by hand: docker run --rm -v "$PWD":/work -w /work/build/build-docker-gcc12/_deps/ragel-build dftracer-gcc12 bash -c "make ...".
Evidence#
Fixed in commit 5a12a75a.
Also found by searching
- make in _deps/ragel-build failed with no useful output
- docker-test-gcc12 fails configuring bundled Ragel
- docker image has no make, Ragel source build cannot run
- use system ragel instead of building it