slachiewicz opened a new pull request, #1712:
URL: https://github.com/apache/maven-mvnd/pull/1712

   ### Summary
   
   Fixes the GraalVM 25 `native-image` build failure on Linux ARM64 runners 
(`ubuntu-24.04-arm`).
   
   #### Problem
   GraalVM 25 native builds call `stat()` directly (compiled against `glibc 
2.33+` headers). `glibc.redef.aarch64` redefines `stat` to `stat@GLIBC_2.17` 
for backward compatibility. However:
   1. `stat-compat.c` was hardcoded to `_STAT_VER = 1` (specific to `x86_64`). 
On `aarch64`, `_STAT_VER_LINUX` is `0`.
   2. `stat-compat.c` was missing from the ARM64 `Scrt1.o` link step in 
`early-access.yaml` and `release.yaml`.
   
   This resulted in `undefined reference to stat@GLIBC_2.17` during 
`native-image` linking.
   
   #### Fix
   1. Update `stat-compat.c` to conditionally support `__aarch64__` using 
`__xstat(0, path, buf)`.
   2. Include `stat-compat.c` compilation and link `stat-compat.o` into 
`Scrt1.o` for ARM64 in `.github/workflows/early-access.yaml`.
   3. Synchronize `.github/workflows/release.yaml` to include ARM64 glibc 
patching, `stat-compat.o`, and version verification steps.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to