Skip to content

[BUG]: Compilation issues on macOS with latest xcode command-line tools #2657

Description

@willend

Describe the bug
A clear and concise description of what the bug is.

Latest macOS and latest command-line tools may give you compilation errors:

ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, malformed file
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd:4:20: error: unknown architecture
                   arm64e.x1-macos, arm64e.x1-maccatalyst ]
                   ^~~~~~~~~~~~~~~

ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libm.tbd, malformed file
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libm.tbd:4:20: error: unknown architecture
                   arm64e.x1-macos, arm64e.x1-maccatalyst ]
                   ^~~~~~~~~~~~~~~

Undefined symbols for architecture arm64:
  "___error", referenced from:
      _main in cc-370876.o
      ....```

Workaround:

Until conda-forge fully supports SDKs/MacOSX27.0.sdk you can use

export SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX26.5.sdk/ 

Recommendation
Update e.g. your .bashrc with

export SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX26.5.sdk/
echo "--> TEMPORARY WORKAROUND:"
echo "  export SDKROOT=${SDKROOT}"

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions