Skip to content

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

@jkotas

Description

@jkotas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarea-System.Securityblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions