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

[SR-14268] nightly main fails to compile SwiftNIO tests: many errors and warnings #56628

Closed
weissi opened this issue Feb 24, 2021 · 5 comments
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@weissi
Copy link
Member

weissi commented Feb 24, 2021

Previous ID SR-14268
Radar rdar://problem/74687888
Original Reporter @weissi
Type Bug
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: 5ca4dcbc2f1eab7f724d18329d1a3e5b

Issue Description:

SwiftNIO itself seems to build okay but the tests fail with many errors.

Repro:

cd /tmp
git clone https://github.com/apple/swift-nio.git
git reset 9b230f89a412663901fa06fc214eaa69204def1e # today's main tip
docker run -it --rm --privileged -v "$PWD:$PWD" -w "$PWD" swiftlang/swift:nightly-main-bionic swift build --build-tests

Output:

$ docker run -it --rm --privileged -v "$PWD:$PWD" -w "$PWD" swiftlang/swift:nightly-main-bionic swift build --build-tests
/Users/johannes/devel/swift-nio: warning: Open File failed on file: /root/.cache/clang/ModuleCache/modules.timestamp
Error: No such file or directory
Attempted again: 10 times
[1/1] Planning build

/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/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/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
            ~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/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
            ~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/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
            ~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/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
        ~~~~~~~ ^~~~~~~~~~~~~~~~~~~
@weissi
Copy link
Member Author

weissi commented Feb 24, 2021

@swift-ci create

@beccadax
Copy link
Contributor

Observation: These members appear to come from extensions added in Swift and then imported into a different module using @testable import.

@weissi
Copy link
Member Author

weissi commented Apr 7, 2021

still not compiling with latest main snapshots

$ jw-docker-swift-main swift test
docker.io/swiftlang/swift:nightly-main-bionic
/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'
[...]

@weissi
Copy link
Member Author

weissi commented May 4, 2021

still not compiling with latest main:

...
/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
        ~~~~~~~ ^~~~~~~~~~~~~~~~~~~
[307/394] Compiling NIOHTTP1Tests HTTPServerPipelineHandlerTest.swift
error: fatalError

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@atrick
Copy link
Member

atrick commented Jun 1, 2022

Fixed by : #39252 in 5.5+
@weissi reopen if you still have any problems

@atrick atrick closed this as completed Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

3 participants