Skip to content

Compiling on macOS 15 results in undefined symbol on macOS 12 #1008

Closed

Description

@mpociot

Because GitHub deprecated the macOS 13 Intel runner images, we had to compile PHP on the new macOS 15 runners.
This seems to result in an error on older macOS versions:

beyondcode/herd-community#1600

Is there any way to prevent this from happening during compilation?

Activity

  1. added
    bug
    on Dec 20, 2025
  2. crazywhalecc commented on Dec 20, 2025

    @crazywhalecc
    Owner

    I'll set up a macOS 12 vm and have some tests on my pc, but it may be not fixable due to backward compatibility reason.

  3. added
    os/macos
    on Dec 20, 2025
  4. henderkes commented on Dec 20, 2025

    @henderkes
    Collaborator

    I don't think there's anything we can do. You'll have to fall back to compiling on old runners.

  5. crazywhalecc commented on Dec 21, 2025

    @crazywhalecc
    Owner

    You can build with env variable: MACOSX_DEPLOYMENT_TARGET=12.0, e.g. MACOSX_DEPLOYMENT_TARGET=12.0 bin/spc build curl,mbstring --build-cli.

    This can solve the issue of the minimum OS when building in macOS 14/15, but there is no guarantee that it will be available in future macOS versions.

    I'll test this macOS environment variable sets in main spc for stability.

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

    bugkind/toolchainos/macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions