swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.66k stars 10.38k forks source link

[SR-14590] 5.5 snapshots not compiling SwiftNIO tests on Linux #56942

Open weissi opened 3 years ago

weissi commented 3 years ago
Previous ID SR-14590
Radar rdar://problem/78215632
Original Reporter @weissi
Type Bug
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, 5.5Regression | |Assignee | None | |Priority | Medium | md5: 73db81af58a1df3c32eb79c06385dabd

Issue Description:

When trying to compile the SwiftNIO test suite on today's 5.5 snapshot, I get loads of errors:

root@2e4fb5587921:/Users/johannes/devel/swift-nio# /tmp/swift-5.5-DEVELOPMENT-SNAPSHOT-2021-05-02-a-ubuntu18.04/usr/bin/swift build --build-tests
/Users/johannes/devel/swift-nio/Tests/NIOHTTP1Tests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOHTTP1Tests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOHTTP1Tests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOHTTP1Tests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOHTTP1Tests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOHTTP1Tests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:276:25: error: value of type 'sockaddr_in' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/TestUtils.swift:279:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
            return addr.addressDescription()
                   ~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:89:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
        let s = address.addressDescription()
                ~~~~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:180:40: error: value of type 'sockaddr_in' has no member 'withMutableSockAddr'
        var firstCopy = firstIPAddress.withMutableSockAddr { (addr, size) -> sockaddr_in in
                        ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:184:42: error: value of type 'sockaddr_in6' has no member 'withMutableSockAddr'
        var secondCopy = secondIPAddress.withMutableSockAddr { (addr, size) -> sockaddr_in6 in
                         ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:225:24: error: value of type 'sockaddr_in' has no member 'withMutableSockAddr'
        firstIPAddress.withMutableSockAddr { (addr, size) -> Void in
        ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:230:25: error: value of type 'sockaddr_in6' has no member 'withMutableSockAddr'
        secondIPAddress.withMutableSockAddr { (addr, size) -> Void in
        ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:275:28: error: value of type 'sockaddr_storage' has no member 'convert'
            return storage.convert()
                   ~~~~~~~ ^~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:281:28: error: value of type 'sockaddr_storage' has no member 'convert'
            return storage.convert()
                   ~~~~~~~ ^~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:287:28: error: value of type 'sockaddr_storage' has no member 'convert'
            return storage.convert()
                   ~~~~~~~ ^~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:318:28: error: value of type 'sockaddr_in' has no member 'withSockAddr'
            firstIPAddress.withSockAddr { innerAddr, innerSize in
            ~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:325:29: error: value of type 'sockaddr_in6' has no member 'withSockAddr'
            secondIPAddress.withSockAddr { innerAddr, innerSize in
            ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:455:17: error: value of type 'sockaddr_storage' has no member 'withMutableSockAddr'
        storage.withMutableSockAddr { (addr, _) in
        ~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:89:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
        let s = address.addressDescription()
                ~~~~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:180:40: error: value of type 'sockaddr_in' has no member 'withMutableSockAddr'
        var firstCopy = firstIPAddress.withMutableSockAddr { (addr, size) -> sockaddr_in in
                        ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:184:42: error: value of type 'sockaddr_in6' has no member 'withMutableSockAddr'
        var secondCopy = secondIPAddress.withMutableSockAddr { (addr, size) -> sockaddr_in6 in
                         ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:225:24: error: value of type 'sockaddr_in' has no member 'withMutableSockAddr'
        firstIPAddress.withMutableSockAddr { (addr, size) -> Void in
        ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:230:25: error: value of type 'sockaddr_in6' has no member 'withMutableSockAddr'
        secondIPAddress.withMutableSockAddr { (addr, size) -> Void in
        ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:275:28: error: value of type 'sockaddr_storage' has no member 'convert'
            return storage.convert()
                   ~~~~~~~ ^~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:281:28: error: value of type 'sockaddr_storage' has no member 'convert'
            return storage.convert()
                   ~~~~~~~ ^~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:287:28: error: value of type 'sockaddr_storage' has no member 'convert'
            return storage.convert()
                   ~~~~~~~ ^~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:318:28: error: value of type 'sockaddr_in' has no member 'withSockAddr'
            firstIPAddress.withSockAddr { innerAddr, innerSize in
            ~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:325:29: error: value of type 'sockaddr_in6' has no member 'withSockAddr'
            secondIPAddress.withSockAddr { innerAddr, innerSize in
            ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:455:17: error: value of type 'sockaddr_storage' has no member 'withMutableSockAddr'
        storage.withMutableSockAddr { (addr, _) in
        ~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:89:25: error: value of type 'sockaddr_in6' has no member 'addressDescription'
        let s = address.addressDescription()
                ~~~~~~~ ^~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:180:40: error: value of type 'sockaddr_in' has no member 'withMutableSockAddr'
        var firstCopy = firstIPAddress.withMutableSockAddr { (addr, size) -> sockaddr_in in
                        ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:184:42: error: value of type 'sockaddr_in6' has no member 'withMutableSockAddr'
        var secondCopy = secondIPAddress.withMutableSockAddr { (addr, size) -> sockaddr_in6 in
                         ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:225:24: error: value of type 'sockaddr_in' has no member 'withMutableSockAddr'
        firstIPAddress.withMutableSockAddr { (addr, size) -> Void in
        ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:230:25: error: value of type 'sockaddr_in6' has no member 'withMutableSockAddr'
        secondIPAddress.withMutableSockAddr { (addr, size) -> Void in
        ~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:275:28: error: value of type 'sockaddr_storage' has no member 'convert'
            return storage.convert()
                   ~~~~~~~ ^~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:281:28: error: value of type 'sockaddr_storage' has no member 'convert'
            return storage.convert()
                   ~~~~~~~ ^~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:287:28: error: value of type 'sockaddr_storage' has no member 'convert'
            return storage.convert()
                   ~~~~~~~ ^~~~~~~
/Users/johannes/devel/swift-nio/Tests/NIOTests/SocketAddressTest.swift:318:28: error: value of type 'sockaddr_in' has no member 'withSockAddr'
            firstIPAddress.withSockAddr { innerAddr, innerSize in
[...]

Probably the saem as SR-14268

weissi commented 3 years ago

@swift-ci create