On Fri, Mar 20, 2026, at 11:54 AM, Christophe Lyon via Gcc wrote: ... > I believe Claudio is aiming at adding such builds in the forge CI (happy > to help btw ;-) ), so I suppose a follow-up question is what distro & > version should a container use? Claudio shared a list in his message, > none of which matches the exact 5.4 requirement.
Happy to help too. There are GCC container images built by docker and they go back as far as 4.6. I succeded doing a non-bootstrap build of gcc 15.2 using the 5.4 image, which is based on a very old Debian 8. Building from git fails because it doesn't have flex installed. It should be possible to install packages in old Debian releases, but IIRC one needs to disable checking package signatures because the gpg keys used have long expired. > Does this mean starting with an ubuntu-16.04 (ships gcc-5.3.1) and > build/install gcc-5.4.0 in it, and use the resulting image? I wonder if it is possible to go backwards in versions. Star with a recentish GCC and see what's the earliest version it can build. How many hops would we need to get to 5.4? pietro
