Skip to content

SDK replays clang-only flags against host cc (Linux native source builds die under gcc) #22

Description

@ronaldtse

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions