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

Enabling the interpreter for macOS fails to build #20398

Closed
rolfbjarne opened this issue Apr 5, 2024 · 0 comments · Fixed by #21406
Closed

Enabling the interpreter for macOS fails to build #20398

rolfbjarne opened this issue Apr 5, 2024 · 0 comments · Fixed by #21406
Labels
bug If an issue is a bug or a pull request a bug fix
Milestone

Comments

@rolfbjarne
Copy link
Member

To repro:

make build BUILD_ARGUMENTS="/p:UseInterpreter=true" -C tests/dotnet/MySimpleApp/macOS

Result:

[...]/Xamarin.Shared.Sdk.targets(1604,3): error : clang++ exited with code 1:
[...]/Xamarin.Shared.Sdk.targets(1604,3): error : Undefined symbols for architecture arm64:
[...]/Xamarin.Shared.Sdk.targets(1604,3): error :   "_mono_icall_table_init", referenced from:
[...]/Xamarin.Shared.Sdk.targets(1604,3): error :       xamarin_setup_impl() in main.arm64.o
[...]/Xamarin.Shared.Sdk.targets(1604,3): error :   "_mono_jit_set_aot_mode", referenced from:
[...]/Xamarin.Shared.Sdk.targets(1604,3): error :       xamarin_setup_impl() in main.arm64.o
[...]/Xamarin.Shared.Sdk.targets(1604,3): error :   "_mono_marshal_ilgen_init", referenced from:
[...]/Xamarin.Shared.Sdk.targets(1604,3): error :       xamarin_setup_impl() in main.arm64.o
[...]/Xamarin.Shared.Sdk.targets(1604,3): error :   "_mono_method_builder_ilgen_init", referenced from:
[...]/Xamarin.Shared.Sdk.targets(1604,3): error :       xamarin_setup_impl() in main.arm64.o
[...]/Xamarin.Shared.Sdk.targets(1604,3): error :   "_mono_sgen_mono_ilgen_init", referenced from:
[...]/Xamarin.Shared.Sdk.targets(1604,3): error :       xamarin_setup_impl() in main.arm64.o
[...]/Xamarin.Shared.Sdk.targets(1604,3): error : ld: symbol(s) not found for architecture arm64
[...]/Xamarin.Shared.Sdk.targets(1604,3): error : clang: error: linker command failed with exit code 1 (use -v to see invocation)

Binlog:
bl.binlog.zip

We should probably just ignore UseInterpreter (and maybe warn if it's set?) on macOS.

@rolfbjarne rolfbjarne added the bug If an issue is a bug or a pull request a bug fix label Apr 5, 2024
@rolfbjarne rolfbjarne added this to the .NET 9 milestone Apr 5, 2024
@github-project-automation github-project-automation bot moved this to Bugs in .NET 9 Aug 27, 2024
@rolfbjarne rolfbjarne modified the milestones: .NET 9, .NET 10 Sep 27, 2024
@rolfbjarne rolfbjarne removed this from .NET 9 Sep 27, 2024
rolfbjarne added a commit that referenced this issue Oct 10, 2024
…t MonoVM. Fixes #20398.

Tests that exercise this code path will be included in a different PR.

Fixes #20398.
rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Oct 15, 2024
haritha-mohan pushed a commit that referenced this issue Oct 19, 2024
…t MonoVM. Fixes #20398. (#21406)

Tests that exercise this code path will be included in a different PR.

Fixes #20398.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug If an issue is a bug or a pull request a bug fix
Projects
None yet
1 participant