dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.54k stars 4.54k forks source link

Runtime tests fail to AOT compile on Apple mobile platforms #103982

Closed kotlarmilos closed 1 day ago

kotlarmilos commented 1 week ago

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=719424 Build error leg or test failing: https://dev.azure.com/dnceng-public/public/_build/results?buildId=719424&view=logs&j=da83f4c3-af55-5024-34f6-3ac8d11ac15f

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "duplicate symbol '_dn_simdhash_ptrpair_ptr_meta'",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
...
[/private/tmp/helix/working/95610881/w/A2B908C5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/95610881/p/build/apple/AppleBuild.targets(296,5): error MSB4018: duplicate symbol '_dn_simdhash_ptrpair_ptr_vtable' in: [/private/tmp/helix/working/95610881/w/A2B908C5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/95610881/p/build/apple/AppleBuild.targets(296,5): error MSB4018:     /tmp/helix/working/95610881/w/A2B908C5/e/publish/libmono-component-diagnostics_tracing-static.a(dn-simdhash-ptrpair-ptr.c.o) [/private/tmp/helix/working/95610881/w/A2B908C5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/95610881/p/build/apple/AppleBuild.targets(296,5): error MSB4018:     /tmp/helix/working/95610881/w/A2B908C5/e/publish/libmonosgen-2.0.a(dn-simdhash-ptrpair-ptr.c.o) [/private/tmp/helix/working/95610881/w/A2B908C5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/95610881/p/build/apple/AppleBuild.targets(296,5): error MSB4018: duplicate symbol '_dn_simdhash_ptrpair_ptr_try_add' in: [/private/tmp/helix/working/95610881/w/A2B908C5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/95610881/p/build/apple/AppleBuild.targets(296,5): error MSB4018:     /tmp/helix/working/95610881/w/A2B908C5/e/publish/libmono-component-diagnostics_tracing-static.a(dn-simdhash-ptrpair-ptr.c.o) [/private/tmp/helix/working/95610881/w/A2B908C5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/95610881/p/build/apple/AppleBuild.targets(296,5): error MSB4018:     /tmp/helix/working/95610881/w/A2B908C5/e/publish/libmonosgen-2.0.a(dn-simdhash-ptrpair-ptr.c.o) [/private/tmp/helix/working/95610881/w/A2B908C5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/95610881/p/build/apple/AppleBuild.targets(296,5): error MSB4018: duplicate symbol '_dn_simdhash_ptrpair_ptr_meta' in: [/private/tmp/helix/working/95610881/w/A2B908C5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/95610881/p/build/apple/AppleBuild.targets(296,5): error MSB4018:     /tmp/helix/working/95610881/w/A2B908C5/e/publish/libmono-component-diagnostics_tracing-static.a(dn-simdhash-ptrpair-ptr.c.o) [/private/tmp/helix/working/95610881/w/A2B908C5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/95610881/p/build/apple/AppleBuild.targets(296,5): error MSB4018:     /tmp/helix/working/95610881/w/A2B908C5/e/publish/libmonosgen-2.0.a(dn-simdhash-ptrpair-ptr.c.o) [/private/tmp/helix/working/95610881/w/A2B908C5/e/publish/ProxyProjectForAOTOnHelix.proj]
/tmp/helix/working/95610881/p/build/apple/AppleBuild.targets(296,5): error MSB4018: ld: 156 duplicate symbols for architecture arm64 [/private/tmp/helix/working/95610881/w/A2B908C5/e/publish/ProxyProjectForAOTOnHelix.proj]

The regression is likely introduced in https://github.com/dotnet/runtime/pull/103184.

/cc: @jkoritzinsky

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=719424 Error message validated: [duplicate symbol '_dn_simdhash_ptrpair_ptr_meta'] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 6/25/2024 6:36:10 PM UTC

Report

Build Definition Test Pull Request
722476 dotnet/runtime baseservices_TieredCompilation.WorkItemExecution
721722 dotnet/runtime baseservices_TieredCompilation.WorkItemExecution
720898 dotnet/runtime baseservices_TieredCompilation.WorkItemExecution
720816 dotnet/runtime baseservices_TieredCompilation.WorkItemExecution
719424 dotnet/runtime baseservices_TieredCompilation.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 5 5
dotnet-policy-service[bot] commented 1 week ago

Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @ivanpovazan, @steveisok, @akoeplinger See info in area-owners.md if you want to be subscribed.

dotnet-policy-service[bot] commented 1 week ago

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

matouskozak commented 6 days ago

Is this failure related to

  Undefined symbols for architecture x86_64:
    "__ep_rt_mono_config_lock", referenced from:
        _ep_enable_3 in unity_0_c.c.o
        _ep_disable in unity_0_c.c.o
        _disable_helper in unity_0_c.c.o
        _ep_get_session in unity_0_c.c.o
        _ep_start_streaming in unity_0_c.c.o
        _ep_create_provider in unity_0_c.c.o
        _ep_delete_provider in unity_0_c.c.o
        ...
    "__ep_rt_mono_managed_cmd_line", referenced from:
        _ep_shutdown in unity_0_c.c.o
        _ep_rt_diagnostics_command_line_get in unity_0_c.c.o
    "__ep_rt_mono_managed_cmd_line_init", referenced from:
        _ep_shutdown in unity_0_c.c.o
        _ep_rt_diagnostics_command_line_get in unity_0_c.c.o
    "__ep_rt_mono_os_cmd_line", referenced from:
        _ep_shutdown in unity_0_c.c.o
        _ep_rt_diagnostics_command_line_get in unity_0_c.c.o
    "__ep_rt_mono_os_cmd_line_init", referenced from:
        _ep_shutdown in unity_0_c.c.o
        _ep_rt_diagnostics_command_line_get in unity_0_c.c.o
    "__ep_rt_mono_thread_holder_tls_id", referenced from:
        _disable_helper in unity_0_c.c.o
        _ep_write_event in unity_0_c.c.o
        _ep_write_event_2 in unity_0_c.c.o
...
  ld: symbol(s) not found for architecture x86_64

occuring on x64 ios/tvos simulators (e.g. https://dev.azure.com/dnceng-public/public/_build/results?buildId=722192&view=logs&jobId=07effcfd-c63d-5008-e811-03b29530f5cb&j=cd385208-11d3-5d70-fa38-1c21a65d17f1&t=0fb08637-f78f-568d-a095-c4f3c07eba27)?

kotlarmilos commented 6 days ago

It should be related.