Bruce Dubbs wrote: > At the linuxfromscratch project, we document for users how to build a > relatively complete Linux system from source code. When we do this we > consider bash to be one of the most important packages in the system. > > https://www.linuxfromscratch.org/lfs/view/stable/ > > Our policy is to use the most recent "stable" versions of applications (that > is, no release candidates or git clones) when at all possible. Right now we > are using bash-5.2.37. Recently gcc-15.1 was released and we would like to > update our system to that, but bash-5.2.37 does not build with that version > of gcc.
While this isn't an answer to your main question, building bash-5.2.37 should only require adding '-std=gnu17' to CFLAGS. That's what the Fedora builds did when the recent release added gcc-15: https://src.fedoraproject.org/rpms/bash/blob/ddaa95f/f/bash.spec#_141-143 It's likely that other projects will take some time to catch up and make releases which don't trip over the same issue, so it may well be helpful to set -std=gnu17 for those which aren't quite ready to support the defaults from the gcc-15. -- Todd
signature.asc
Description: PGP signature