The package unifdef with version 2.12-r3 fails to build from source with GCC 15 on amd64 with the following error:
make yamlfile=unifdef.yaml pkgname=unifdef packages/x86_64/unifdef-2.12-r3.apk
make[1]: Entering directory '/home/sergio_durigan_chainguard_dev/os'
mkdir -p /tmp/melange-cache
@SOURCE_DATE_EPOCH=1748550005 /usr/sbin/melange build unifdef.yaml --runner=bubblewrap --repository-append /home/sergio_durigan_chainguard_dev/os/packages --keyring-append local-melange.rsa.pub --signing-key local-melange.rsa --arch x86_64 --env-file build-x86_64.env --namespace wolfi --license 'Apache-2.0' --git-repo-url 'https://github.com/wolfi-dev/os' --cache-dir /tmp/melange-cache --pipeline-dir ./pipelines/ -k https://packages.wolfi.dev/os/wolfi-signing.rsa.pub -r https://packages.wolfi.dev/os --source-dir ./unifdef/
mkdir -p ./unifdef/
SOURCE_DATE_EPOCH=1748550005 /usr/sbin/melange build unifdef.yaml --runner=bubblewrap --repository-append /home/sergio_durigan_chainguard_dev/os/packages --keyring-append local-melange.rsa.pub --signing-key local-melange.rsa --arch x86_64 --env-file build-x86_64.env --namespace wolfi --license 'Apache-2.0' --git-repo-url 'https://github.com/wolfi-dev/os' --cache-dir /tmp/melange-cache --pipeline-dir ./pipelines/ -k https://packages.wolfi.dev/os/wolfi-signing.rsa.pub -r https://packages.wolfi.dev/os --source-dir ./unifdef/
2025/05/31 00:56:18 INFO melange v0.26.3+dirty is building:
2025/05/31 00:56:18 INFO populating workspace /tmp/melange-workspace-2660469577 from ./unifdef/
2025/05/31 00:56:18 INFO building workspace in '/tmp/melange-guest-2231359805' with apko
2025/05/31 00:56:19 INFO image configuration:
2025/05/31 00:56:19 INFO contents:
2025/05/31 00:56:19 INFO build repositories: [/home/sergio_durigan_chainguard_dev/os/packages https://packages.wolfi.dev/os]
2025/05/31 00:56:19 INFO runtime repositories: []
2025/05/31 00:56:19 INFO keyring: [https://packages.wolfi.dev/os/wolfi-signing.rsa.pub local-melange.rsa.pub]
2025/05/31 00:56:19 INFO packages: [binutils=2.44-r4 build-base=1-r8 busybox=1.37.0-r41 ca-certificates-bundle=20241121-r42 gcc=15.1.0-r0 glibc-dev=2.41-r4 glibc-locale-posix=2.41-r4 glibc=2.41-r4 gmp=6.3.0-r6 isl=0.27-r1 ld-linux=2.41-r4 libatomic=15.1.0-r0 libcrypt1=2.41-r4 libcrypto3=3.5.0-r2 libgcc=15.1.0-r0 libgo=15.1.0-r0 libgomp=15.1.0-r0 libquadmath=15.1.0-r0 libssl3=3.5.0-r2 libstdc++-dev=15.1.0-r0 libstdc++=15.1.0-r0 libxcrypt-dev=4.4.38-r2 libxcrypt=4.4.38-r2 libzstd1=1.5.7-r2 linux-headers=6.15-r1 make=4.4.1-r5 mpc=1.3.1-r6 mpfr=4.2.2-r1 nss-db=2.41-r4 nss-hesiod=2.41-r4 openssf-compiler-options=20240627-r20 pkgconf=2.4.3-r2 posix-cc-wrappers=1-r6 wget=1.25.0-r1 wolfi-baselayout=20230201-r20 zlib=1.3.1-r7]
2025/05/31 00:56:19 INFO accounts:
2025/05/31 00:56:19 INFO runas:
2025/05/31 00:56:19 INFO users:
2025/05/31 00:56:19 INFO - uid=1000(build) gid=1000
2025/05/31 00:56:19 INFO groups:
2025/05/31 00:56:19 INFO - gid=1000(build) members=[build]
2025/05/31 00:56:19 INFO auth configured for: []
2025/05/31 00:56:19 INFO installing wolfi-baselayout (20230201-r20)
2025/05/31 00:56:19 INFO installing ca-certificates-bundle (20241121-r42)
2025/05/31 00:56:19 INFO installing glibc-locale-posix (2.41-r4)
2025/05/31 00:56:19 INFO installing libgcc (15.1.0-r0)
2025/05/31 00:56:19 INFO installing glibc (2.41-r4)
2025/05/31 00:56:19 INFO installing ld-linux (2.41-r4)
2025/05/31 00:56:19 INFO installing libstdc++ (15.1.0-r0)
2025/05/31 00:56:19 INFO installing libzstd1 (1.5.7-r2)
2025/05/31 00:56:19 INFO installing binutils (2.44-r4)
2025/05/31 00:56:19 INFO installing libxcrypt (4.4.38-r2)
2025/05/31 00:56:19 INFO installing libxcrypt-dev (4.4.38-r2)
2025/05/31 00:56:19 INFO installing linux-headers (6.15-r1)
2025/05/31 00:56:19 INFO installing nss-db (2.41-r4)
2025/05/31 00:56:19 INFO installing nss-hesiod (2.41-r4)
2025/05/31 00:56:19 INFO installing glibc-dev (2.41-r4)
2025/05/31 00:56:19 INFO installing libquadmath (15.1.0-r0)
2025/05/31 00:56:19 INFO installing libstdc++-dev (15.1.0-r0)
2025/05/31 00:56:19 INFO installing openssf-compiler-options (20240627-r20)
2025/05/31 00:56:19 INFO installing posix-cc-wrappers (1-r6)
2025/05/31 00:56:19 INFO installing libatomic (15.1.0-r0)
2025/05/31 00:56:19 INFO installing gmp (6.3.0-r6)
2025/05/31 00:56:19 INFO installing libgo (15.1.0-r0)
2025/05/31 00:56:19 INFO installing libgomp (15.1.0-r0)
2025/05/31 00:56:19 INFO installing isl (0.27-r1)
2025/05/31 00:56:19 INFO installing mpfr (4.2.2-r1)
2025/05/31 00:56:19 INFO installing mpc (1.3.1-r6)
2025/05/31 00:56:19 INFO installing zlib (1.3.1-r7)
2025/05/31 00:56:19 INFO installing gcc (15.1.0-r0)
2025/05/31 00:56:19 INFO installing make (4.4.1-r5)
2025/05/31 00:56:19 INFO installing pkgconf (2.4.3-r2)
2025/05/31 00:56:19 INFO installing build-base (1-r8)
2025/05/31 00:56:19 INFO installing libcrypt1 (2.41-r4)
2025/05/31 00:56:19 INFO installing busybox (1.37.0-r41)
2025/05/31 00:56:19 INFO installing libcrypto3 (3.5.0-r2)
2025/05/31 00:56:19 INFO installing libssl3 (3.5.0-r2)
2025/05/31 00:56:19 INFO installing wget (1.25.0-r1)
2025/05/31 00:56:27 INFO running step "fetch"
2025/05/31 00:56:27 WARN --2025-05-31 00:56:27-- https://dotat.at/prog/unifdef/unifdef-2.12.tar.gz
2025/05/31 00:56:27 WARN Resolving dotat.at... 93.93.131.173, 2a00:1098:86:130::1
2025/05/31 00:56:27 WARN Connecting to dotat.at|93.93.131.173|:443... connected.
2025/05/31 00:56:27 WARN HTTP request sent, awaiting response... 200 OK
2025/05/31 00:56:27 WARN Length: 87091 (85K) [application/x-gzip]
2025/05/31 00:56:27 WARN Saving to: 'unifdef-2.12.tar.gz'
2025/05/31 00:56:27 WARN
2025/05/31 00:56:28 WARN 0K .......... .......... .......... .......... .......... 58% 258K 0s
2025/05/31 00:56:28 INFO fetch: Expected sha256: fba564a24db7b97ebe9329713ac970627b902e5e9e8b14e19e024eb6e278d10b
2025/05/31 00:56:28 WARN 50K .......... .......... .......... ..... 100% 17.7M=0.2s
2025/05/31 00:56:28 WARN
2025/05/31 00:56:28 WARN 2025-05-31 00:56:28 (435 KB/s) - 'unifdef-2.12.tar.gz' saved [87091/87091]
2025/05/31 00:56:28 WARN
2025/05/31 00:56:28 INFO scripts/reversion.sh
2025/05/31 00:56:28 INFO cc -o unifdef unifdef.c
2025/05/31 00:56:28 WARN unifdef.c:205:1: warning: useless type name in empty declaration
2025/05/31 00:56:28 WARN 205 | static bool constexpr; /* constant #if expression */
2025/05/31 00:56:28 WARN | ^~~~~~
2025/05/31 00:56:28 WARN unifdef.c:205:1: error: 'constexpr' in empty declaration
2025/05/31 00:56:28 WARN unifdef.c: In function 'eval_unary':
2025/05/31 00:56:28 WARN unifdef.c:1089:27: error: expected identifier or '(' before '=' token
2025/05/31 00:56:28 WARN 1089 | constexpr = false;
2025/05/31 00:56:28 WARN | ^
2025/05/31 00:56:28 WARN unifdef.c:1106:27: error: expected identifier or '(' before '=' token
2025/05/31 00:56:28 WARN 1106 | constexpr = false;
2025/05/31 00:56:28 WARN | ^
2025/05/31 00:56:28 WARN unifdef.c: In function 'ifeval':
2025/05/31 00:56:28 WARN unifdef.c:1173:19: error: expected identifier or '(' before '=' token
2025/05/31 00:56:28 WARN 1173 | constexpr = killconsts ? false : true;
2025/05/31 00:56:28 WARN | ^
2025/05/31 00:56:28 WARN unifdef.c:1176:27: error: expected specifier-qualifier-list before '?' token
2025/05/31 00:56:28 WARN 1176 | return (constexpr ? LT_IF : ret == LT_ERROR ? LT_IF : ret);
2025/05/31 00:56:28 WARN | ^
2025/05/31 00:56:28 WARN make: *** [Makefile:14: unifdef] Error 1
2025/05/31 00:56:28 ERRO failed to build package: unable to run package unifdef pipeline: unable to run pipeline: exit status 2
make[1]: *** [Makefile:157: packages/x86_64/unifdef-2.12-r3.apk] Error 1
make[1]: Leaving directory '/home/sergio_durigan_chainguard_dev/os'
make: *** [Makefile:151: package/unifdef] Error 2
The package unifdef with version 2.12-r3 fails to build from source with GCC 15 on amd64 with the following error: