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

[NativeAOT] System.Security.Tests failing on macOS with link errors #76498

Closed
jkotas opened this issue Oct 1, 2022 · 3 comments · Fixed by #76499
Closed

[NativeAOT] System.Security.Tests failing on macOS with link errors #76498

jkotas opened this issue Oct 1, 2022 · 3 comments · Fixed by #76499
Labels
area-System.Security blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab

Comments

@jkotas
Copy link
Member

jkotas commented Oct 1, 2022

Failing in /azp run runtime-extra-platforms set with

  Undefined symbols for architecture arm64:
    "enum case for Foundation.Data.Deallocator.none(Foundation.Data.Deallocator.Type) -> Foundation.Data.Deallocator", referenced from:
        pal_swiftbindings.AppleCryptoNative_ChaCha20Poly1305Encrypt(keyPtr: Swift.UnsafeMutableRawPointer, keyLength: Swift.Int32, noncePtr: Swift.UnsafeMutableRawPointer, nonceLength: Swift.Int32, plaintextPtr: Swift.UnsafeMutableRawPointer, plaintextLength: Swift.Int32, ciphertextBuffer: Swift.UnsafeMutablePointer<Swift.UInt8>, ciphertextBufferLength: Swift.Int32, tagBuffer: Swift.UnsafeMutablePointer<Swift.UInt8>, tagBufferLength: Swift.Int32, aadPtr: Swift.UnsafeMutableRawPointer, aadLength: Swift.Int32) -> Swift.Int32 in libSystem.Security.Cryptography.Native.Apple.a(pal_swiftbindings.o)
        pal_swiftbindings.AppleCryptoNative_ChaCha20Poly1305Decrypt(keyPtr: Swift.UnsafeMutableRawPointer, keyLength: Swift.Int32, noncePtr: Swift.UnsafeMutableRawPointer, nonceLength: Swift.Int32, ciphertextPtr: Swift.UnsafeMutableRawPointer, ciphertextLength: Swift.Int32, tagPtr: Swift.UnsafeMutableRawPointer, tagLength: Swift.Int32, plaintextBuffer: Swift.UnsafeMutablePointer<Swift.UInt8>, plaintextBufferLength: Swift.Int32, aadPtr: Swift.UnsafeMutableRawPointer, aadLength: Swift.Int32) -> Swift.Int32 in libSystem.Security.Cryptography.Native.Apple.a(pal_swiftbindings.o)
 {
    "ErrorMessage" : "pal_swiftbindings.AppleCryptoNative_ChaCha20Poly1305Encrypt",
    "BuildRetry": false
 }

Example of full log: https://dev.azure.com/dnceng-public/public/_build/results?buildId=37715&view=logs&jobId=77206cf6-10ff-51c9-d7c7-b6c46c149890&j=77206cf6-10ff-51c9-d7c7-b6c46c149890&t=004edc8c-fef8-5b51-d46d-fd60518d1541

Report

Build Definition Step Name Console log
37715 dotnet/runtime Build product Log
37699 dotnet/runtime Build product Log

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 2 2
@jkotas jkotas added area-System.Security blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Oct 1, 2022
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Oct 1, 2022
@ghost
Copy link

ghost commented Oct 1, 2022

Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones
See info in area-owners.md if you want to be subscribed.

Issue Details

Failing in /azp run runtime-extra-platforms set with

  Undefined symbols for architecture arm64:
    "enum case for Foundation.Data.Deallocator.none(Foundation.Data.Deallocator.Type) -> Foundation.Data.Deallocator", referenced from:
        pal_swiftbindings.AppleCryptoNative_ChaCha20Poly1305Encrypt(keyPtr: Swift.UnsafeMutableRawPointer, keyLength: Swift.Int32, noncePtr: Swift.UnsafeMutableRawPointer, nonceLength: Swift.Int32, plaintextPtr: Swift.UnsafeMutableRawPointer, plaintextLength: Swift.Int32, ciphertextBuffer: Swift.UnsafeMutablePointer<Swift.UInt8>, ciphertextBufferLength: Swift.Int32, tagBuffer: Swift.UnsafeMutablePointer<Swift.UInt8>, tagBufferLength: Swift.Int32, aadPtr: Swift.UnsafeMutableRawPointer, aadLength: Swift.Int32) -> Swift.Int32 in libSystem.Security.Cryptography.Native.Apple.a(pal_swiftbindings.o)
        pal_swiftbindings.AppleCryptoNative_ChaCha20Poly1305Decrypt(keyPtr: Swift.UnsafeMutableRawPointer, keyLength: Swift.Int32, noncePtr: Swift.UnsafeMutableRawPointer, nonceLength: Swift.Int32, ciphertextPtr: Swift.UnsafeMutableRawPointer, ciphertextLength: Swift.Int32, tagPtr: Swift.UnsafeMutableRawPointer, tagLength: Swift.Int32, plaintextBuffer: Swift.UnsafeMutablePointer<Swift.UInt8>, plaintextBufferLength: Swift.Int32, aadPtr: Swift.UnsafeMutableRawPointer, aadLength: Swift.Int32) -> Swift.Int32 in libSystem.Security.Cryptography.Native.Apple.a(pal_swiftbindings.o)
 {
    "ErrorMessage" : "pal_swiftbindings.AppleCryptoNative_ChaCha20Poly1305Encrypt",
    "BuildRetry": false
 }

Example of full log: https://dev.azure.com/dnceng-public/public/_build/results?buildId=37715&view=logs&jobId=77206cf6-10ff-51c9-d7c7-b6c46c149890&j=77206cf6-10ff-51c9-d7c7-b6c46c149890&t=004edc8c-fef8-5b51-d46d-fd60518d1541

Author: jkotas
Assignees: -
Labels:

area-System.Security, blocking-clean-ci, Known Build Error

Milestone: -

@jkotas
Copy link
Member Author

jkotas commented Oct 1, 2022

Introduced by #76317

@vcsjones @filipnavara Could you please take look and add libraries that this needs to the native AOT target files?

@jkotas
Copy link
Member Author

jkotas commented Oct 1, 2022

The fix should be here and/or here

@jkotas jkotas changed the title [NativeAOT] System.Securit.Tests failing on macOS with link errors [NativeAOT] System.Security.Tests failing on macOS with link errors Oct 1, 2022
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Oct 1, 2022
@ghost ghost removed in-pr There is an active PR which will close this issue when it is merged untriaged New issue has not been triaged by the area owner labels Oct 2, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Nov 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Security blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant