Found during the v1→v2 migration guide verification (agent-173, clean ubuntu:24.04 container): prebuilt runtimes are clang-built; the Runtime SDK replays their build flags (e.g. -fdeclspec) when re-resolving cc for press-time native extension builds. On hosts where cc=gcc, mkmf dies on the clang-only flag.
Workaround documented in the guide: update-alternatives --install /usr/bin/cc cc /usr/bin/clang 50.
Proper fix: the SDK's cc re-resolution should filter compiler-specific flags when the re-resolved compiler differs from the one used to build the runtime (or always re-resolve to the runtime's own compiler family).
Found during the v1→v2 migration guide verification (agent-173, clean ubuntu:24.04 container): prebuilt runtimes are clang-built; the Runtime SDK replays their build flags (e.g.
-fdeclspec) when re-resolving cc for press-time native extension builds. On hosts where cc=gcc, mkmf dies on the clang-only flag.Workaround documented in the guide:
update-alternatives --install /usr/bin/cc cc /usr/bin/clang 50.Proper fix: the SDK's cc re-resolution should filter compiler-specific flags when the re-resolved compiler differs from the one used to build the runtime (or always re-resolve to the runtime's own compiler family).