musl-cross-make icon indicating copy to clipboard operation
musl-cross-make copied to clipboard

GCC Snapshots

Open userdocs opened this issue 1 year ago • 3 comments

Allows the user to specify a gcc snapshot version, from https://gcc.gnu.org/pub/gcc/snapshots, or a mirror of, as the gcc version in the config.mak by setting it as the GCC_VER , for example

GCC_VER = 14-20240310

and use version of gcc to build the toolchain

source: https://git.zv.io/toolchains/musl-cross-make/-/blob/musl.cc/Makefile?ref_type=heads#L67-L68

userdocs avatar Mar 14 '24 21:03 userdocs

My test run + artifacts

https://github.com/userdocs/musl-cross-make/actions/runs/8287381126

userdocs avatar Mar 14 '24 21:03 userdocs

The problem with this is that mcm explicitly builds toolchains intended to work correctly with musl, which, for most combinations of gcc version and target, means patches are required. I do not want to add as a standard feature an easy way to make toolchains that are subtly broken.

If there were some way to associate with snapshots a base version and apply the patches from that base version and error out if they don't apply unless the user has supplied their own rebased patches, it might make sense to offer this.

richfelker avatar Mar 14 '24 23:03 richfelker

The archives have a top level dir named gcc-14-20240310/ - would this not be enough to provide patches in a folder named patches/gcc-14-20240310 ?

I figure anyone doing this is in a dev mode anyway and this would be sufficient?

userdocs avatar Mar 14 '24 23:03 userdocs