Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macOS checked build of NativeAOT #98266

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

filipnavara
Copy link
Member

Fixes the following build error:

  Generating native code
  ld: Undefined symbols:
    Thread::IsCurrentThreadInCooperativeMode(), referenced from:
        ObjCMarshalNative::RegisterBeginEndCallback(void*) in libRuntime.ServerGC.a[56](interoplibinterface_objc.cpp.o)
  clang: error: linker command failed with exit code 1 (use -v to see invocation)

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Feb 10, 2024
@ghost
Copy link

ghost commented Feb 10, 2024

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes the following build error:

  Generating native code
  ld: Undefined symbols:
    Thread::IsCurrentThreadInCooperativeMode(), referenced from:
        ObjCMarshalNative::RegisterBeginEndCallback(void*) in libRuntime.ServerGC.a[56](interoplibinterface_objc.cpp.o)
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
Author: filipnavara
Assignees: -
Labels:

community-contribution, area-NativeAOT-coreclr

Milestone: -

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@jkotas
Copy link
Member

jkotas commented Feb 10, 2024

Is this with new XCode?

@filipnavara
Copy link
Member Author

Is this with new XCode?

Xcode 15.2 but I don’t think it’s specific to that version.

@jkotas jkotas merged commit 36b18a3 into dotnet:main Feb 10, 2024
106 of 110 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-NativeAOT-coreclr community-contribution Indicates that the PR has been added by a community member os-mac-os-x macOS aka OSX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants