Skip to content

Source compat project 'vapor_websocket-kit' fails on a compilation error #75656

Open
@xymus

Description

@xymus

Description

Failure first reported here: https://ci.swift.org/job/swift-main-source-compat-suite-debug/854/console

Reproduction

Error:

/Users/ec2-user/jenkins/workspace/swift-main-source-compat-suite-debug/swift-source-compat-suite/project_cache/vapor_websocket-kit/Tests/WebSocketKitTests/SSLTestHelpers.swift:79:70: error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutableRawPointer?'
 77 | 
 78 |     let pkey = CNIOBoringSSL_EVP_PKEY_new()!
 79 |     let assignRC = CNIOBoringSSL_EVP_PKEY_assign(pkey, EVP_PKEY_RSA, rsa)
    |                                                                      `- error: cannot convert value of type 'OpaquePointer' to expected argument type 'UnsafeMutableRawPointer?'
 80 |     
 81 |     precondition(assignRC == 1)

/Users/ec2-user/jenkins/workspace/swift-main-source-compat-suite-debug/swift-source-compat-suite/project_cache/vapor_websocket-kit/Tests/WebSocketKitTests/SSLTestHelpers.swift:128:54: error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'ossl_ssize_t' (aka 'Int')
126 |                                                      MBSTRING_UTF8,
127 |                                                      UnsafeMutablePointer(mutating: pointer),
128 |                                                      CInt(commonName.lengthOfBytes(using: .utf8)),
    |                                                      `- error: cannot convert value of type 'CInt' (aka 'Int32') to expected argument type 'ossl_ssize_t' (aka 'Int')
129 |                                                      -1,
130 |                                                      0)

Expected behavior

The project builds without errors.

Environment

Reported on the main, 6.0 and 5.10 bots.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfexpressionsFeature: expressionssource compatibility suiteFlag: An issue that surfaced in the source compatibility suiteswift 6.1type checkerArea → compiler: Semantic analysisunexpected errorBug: Unexpected error

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions