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

Open
rolfbjarne opened this issue Apr 5, 2024 · 0 comments
Open

Enabling the interpreter for macOS fails to build #20398

rolfbjarne opened this issue Apr 5, 2024 · 0 comments
Labels
bug If an issue is a bug or a pull request a bug fix
Projects
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
@rolfbjarne rolfbjarne added this to Bugs in .NET 9 Apr 5, 2024
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
Development

No branches or pull requests

1 participant