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

Unable to compile for watchOS simulator on M1 systems #7694

Closed
sync-by-unito bot opened this issue Mar 10, 2022 · 3 comments
Closed

Unable to compile for watchOS simulator on M1 systems #7694

sync-by-unito bot opened this issue Mar 10, 2022 · 3 comments
Assignees

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Mar 10, 2022

Expected results
I can integrate Realm using Package.swift and create Xcode project from Package.swift and then compile for watchOS simulator on M1 hardware

Actual Results
/Users/markw/Library/Developer/Xcode/DerivedData/utrealm_apple-bradedzrezbnygezsnaxhbsvzeye/SourcePackages/checkouts/realm-core/src/realm/impl/simulated_failure.cpp:181:1: error: thread-local storage is not supported for the current target
thread_local bool (*s_mmap_predicate)(size_t);
^
1 error generated.

Steps & Code to Reproduce
On Apple M1 based hardware
Setup library project using Package.swift
Integrate Realm in Package.swift
Open Package.swift with Xcode to create project
Build

Core version
Core version: 11.11.0

Note I originally filed issue 5173. I can now build on Intel hardware, but still can't build on M1 hardware.

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Mar 17, 2022

➤ Diana Perez Afanador commented:

Hi @mwoollard I just pushed a branch with a possible fix for this. Can you test this on your side dp/watchos_simulator_old_architecture_target_not_thread_local.

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Mar 17, 2022
@mwoollard
Copy link

@dianaafanador3 I can confirm the branch fixes issue we had building for watchOS simulator on M1 hardware. Thanks !

@dianaafanador3
Copy link
Contributor

Fix merged realm/realm-core#5341

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants