Description
Previous ID | SR-3441 |
Radar | None |
Original Reporter | sanjay-saxena (JIRA User) |
Type | Bug |
Attachment: Download
Environment
Raspberry Pi 3
Swift version 3.0-dev (LLVM 545d4be6ac, Clang 968470f170, Swift ac8b5bd472)
Target: armv7--linux-gnueabihf
Linux 20115a3ec356 4.4.26-v7+ #915 SMP Thu Oct 20 17:08:44 BST 2016 armv7l armv7l armv7l GNU/Linux
Additional Detail from JIRA
Votes | 1 |
Component/s | Foundation |
Labels | Bug, Linux |
Assignee | None |
Priority | Medium |
md5: 9cb6940d58872e86b66986bcd0458c53
Issue Description:
Here are the OS details:
root@20115a3ec356:/tmp/iot.publisher# cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.5 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.5 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
root@20115a3ec356:/tmp/iot.publisher# uname -a
Linux 20115a3ec356 4.4.26-v7+ #​915 SMP Thu Oct 20 17:08:44 BST 2016 armv7l armv7l armv7l GNU/Linux
Here are Swift 3 details that is obtained from [here](http://swift-arm.ddns.net/job/Swift-3.0-ARMv7-ubuntu1410/29/artifact/swift-3.0-2016-11-03-armv7-ubuntu14.04.tar.gz):
root@20115a3ec356:/tmp/iot.publisher# swift -version
Swift version 3.0-dev (LLVM 545d4be6ac, Clang 968470f170, Swift ac8b5bd472)
Target: armv7--linux-gnueabihf
When the package in the attached zip is built using `swift build`, the following compilation error is seen:
root@20115a3ec356:/tmp/iot.publisher# swift build
Compile Swift Module 'iot_publisher' (3 sources)
/tmp/iot.publisher/Sources/Connection.swift:21:9: error: type 'Stream' has no member 'getStreamsToHost'
Stream.getStreamsToHost(withName: address, port: port, inputStream: &inputStream, outputStream: &outputStream)
^~~~~~ ~~~~~~~~~~~~~~~~
<unknown>:0: error: build had 1 command failures
error: exit(1): /tmp/swift-3.0/usr/bin/swift-build-tool -f /tmp/iot.publisher/.build/debug.yaml
The same package compiles and runs fine on macOS under Swift 3. The attached Dockerfile shows the base OS image as well as all the libraries that were installed.