-
Notifications
You must be signed in to change notification settings - Fork 514
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
[dotnet] Handle lib
prefix for P/Invokes for runtime native libraries
#11158
Conversation
lib
prefix for P/Invokes for runtime native libraries
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
#if NET | ||
sw.WriteLine ($"\tmono_dllmap_insert (NULL, \"libSystem.Native\", NULL, \"{mono_native_lib}\", NULL);"); | ||
sw.WriteLine ($"\tmono_dllmap_insert (NULL, \"libSystem.Security.Cryptography.Native.Apple\", NULL, \"{mono_native_lib}\", NULL);"); | ||
sw.WriteLine ($"\tmono_dllmap_insert (NULL, \"libSystem.Net.Security.Native\", NULL, \"{mono_native_lib}\", NULL);"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libSystem.IO.Compression.Native.dylib
might be needed too.
It's shipped so it's likely used somewhere in the BCL (have not checked).
That can wait for the removal of the .dylib from the app bundle since it's the only way to test it properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not needed for "Hello World" but it's needed in general. I hesitate to do more changes here since it's likely going to be replaced by PINVOKE_OVERRIDE
callback anyway (unless there are some AOT implications from using dllmap).
❌ Tests failed on Build ❌Tests failed on Build. API diff✅ API Diff from stable View API diffTest results16 tests failed, 78 tests passed.Failed tests
Pipeline on Agent BOT-0189.Catalina |
The tests fail because of dotnet/runtime#47533 and dotnet/runtime#47910. This is expected and I can add a workaround. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
🔥 Tests failed catastrophically on Build (no summary found). 🔥Result file $(TEST_SUMMARY_PATH) not found. Pipeline on Agent |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
🔥 Tests failed catastrophically on Build (no summary found). 🔥Result file $(TEST_SUMMARY_PATH) not found. Pipeline on Agent |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
❌ Tests failed on Build ❌Tests failed on Build. API diff✅ API Diff from stable View API diffTest results5 tests failed, 93 tests passed.Failed tests
Pipeline on Agent XAMBOT-1104.BigSur |
…en native libraries are dynamically linked
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
❌ Tests failed on Build ❌Tests failed on Build. API diff✅ API Diff from stable View API diffTest results19 tests failed, 79 tests passed.Failed tests
Pipeline on Agent XAMBOT-1110' |
Something really bad is going on in certain bots. |
JFYI I re-run some of the timed out tests locally and they worked. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
❌ Tests failed on Build ❌Tests failed on Build. API diff✅ API Diff from stable View API diffTest results1 tests failed, 97 tests passed.Failed tests
Pipeline on Agent XAMBOT-1104.BigSur |
The last remaining failure ( |
Yes, that's an unrelated CI/xharness issue that we're tracking internally - https://github.com/xamarin/maccore/issues/2411 |
With xamarin#11158 we do not load symbols from the dylibs - so we do not have to ship them. This makes the size comparison, between legacy and dotnet, more accurate since the dylibs were large binaries. https://gist.github.com/spouliot/9cad974b73b982404421e634f2a3a2b7
With #11158 we do not load symbols from the dylibs - so we do not have to ship them. This makes the size comparison, between legacy and dotnet, more accurate since the dylibs were large binaries. https://gist.github.com/spouliot/9cad974b73b982404421e634f2a3a2b7
Contributes to #11145