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
[...]
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug, 5.5Regression | |Assignee | None | |Priority | Medium | md5: 73db81af58a1df3c32eb79c06385dabdIssue Description:
When trying to compile the SwiftNIO test suite on today's 5.5 snapshot, I get loads of errors:
Probably the saem as SR-14268