using simple hello world program in swiftc, I run swiftc -v hello.swift and the command is run but no code is generated and no errors are returned. gw% swiftc -v hello.swift Swift version 2.2.1 (swift-2.2.1-RELEASE) Target: x86_64-unknown-freebsd11.0 /usr/local/bin/swift -frontend -c -primary-file hello.swift -target x86_64-unknown-freebsd11.0 -disable-objc-interop -color-diagnostics -module-name hello -o /tmp/hello-592f1a.o gw% ls /tmp/ MozillaMailnews ecp.RTrqA37Z org.llvm.clang.pusateri dbus-FDexOT6u0n ecp.WKZgfBPv screens dbus-WCFsGbJthm ecp.YXIc2tce ssh-TP6VUSOIyiWI ecp.1fKBMZzn ecp.pU2pbzQJ ssh-dLzlhdI2iYOm ecp.MiqLhe4s gconfd-pusateri tom ecp.Nw4LkbjR mozilla_pusateri0 ecp.PMQUFZgt orbit-pusateri gw% ls -a . .. hello.swift
system info: gw% uname -a FreeBSD gw.mountain2sea.com 11.0-ALPHA2 FreeBSD 11.0-ALPHA2 #0 r301297: Sat Jun 4 18:36:55 EDT 2016 pusateri@gw.mountain2sea.com:/usr/obj/usr/src/sys/GENERIC amd64
Just tried this again with 11.0-RELEASE-p5 and the swift 2.2.1_4 port and same problem. Also, when I just type swift on FreeBSD, I get: <unknown>:0: error: could not load the swift standard library When I type swift on MacOS Sierra, I get: butte% swift Welcome to Apple Swift version 3.0 (swiftlang-800.0.46.2 clang-800.0.38). Type :help for assistance. 1>
A commit references this bug: Author: swills Date: Tue Apr 25 02:53:04 UTC 2017 New revision: 439356 URL: https://svnweb.freebsd.org/changeset/ports/439356 Log: lang/swift: update to 3.1.1 This fixes build issues [1] and makes swiftc work [2]. But swiftpm is still not working, hopefully soon. PR: 210284 [1] PR: 210386 [2] Reported by: Lacey Powers <lacey.leanne@gmail.com> [1] Reported by: Tom Pusateri <pusateri@bangj.com> [2] Changes: head/lang/swift/Makefile head/lang/swift/distinfo head/lang/swift/files/patch-llbuild_CMakeLists.txt head/lang/swift/files/patch-llbuild_lib_llvm_Support_CMakeLists.txt head/lang/swift/files/patch-llbuild_lib_llvm_Support_Unix_Process.inc head/lang/swift/files/patch-llvm_lib_Support_Unix_Process.inc head/lang/swift/files/patch-swift-corelibs-foundation_lib_target.py head/lang/swift/files/patch-swift_cmake_modules_SwiftSharedCMakeConfig.cmake head/lang/swift/files/patch-swift_docs_CMakeLists.txt head/lang/swift/files/patch-swift_lib_ClangImporter_ClangImporter.cpp head/lang/swift/files/patch-swift_utils_build-presets.ini head/lang/swift/files/patch-swift_utils_build-script-impl head/lang/swift/files/patch-swiftpm_Sources_PackageDescription_Package.swift head/lang/swift/files/patch-swiftpm_Sources_libc_libc.swift head/lang/swift/pkg-plist
Sorry it took so long, should be fixed now. Please let me know if you run into issues still.
A commit references this bug: Author: swills Date: Thu Apr 27 13:24:06 UTC 2017 New revision: 439547 URL: https://svnweb.freebsd.org/changeset/ports/439547 Log: MFH: r439356 lang/swift: update to 3.1.1 This fixes build issues [1] and makes swiftc work [2]. But swiftpm is still not working, hopefully soon. PR: 210284 [1] PR: 210386 [2] Reported by: Lacey Powers <lacey.leanne@gmail.com> [1] Reported by: Tom Pusateri <pusateri@bangj.com> [2] Approved by: ports-secteam (swills, with-hat) Changes: _U branches/2017Q2/ branches/2017Q2/lang/swift/Makefile branches/2017Q2/lang/swift/distinfo branches/2017Q2/lang/swift/files/patch-llbuild_CMakeLists.txt branches/2017Q2/lang/swift/files/patch-llbuild_lib_llvm_Support_CMakeLists.txt branches/2017Q2/lang/swift/files/patch-llbuild_lib_llvm_Support_Unix_Process.inc branches/2017Q2/lang/swift/files/patch-llvm_lib_Support_Unix_Process.inc branches/2017Q2/lang/swift/files/patch-swift-corelibs-foundation_lib_target.py branches/2017Q2/lang/swift/files/patch-swift_cmake_modules_SwiftSharedCMakeConfig.cmake branches/2017Q2/lang/swift/files/patch-swift_docs_CMakeLists.txt branches/2017Q2/lang/swift/files/patch-swift_lib_ClangImporter_ClangImporter.cpp branches/2017Q2/lang/swift/files/patch-swift_utils_build-presets.ini branches/2017Q2/lang/swift/files/patch-swift_utils_build-script-impl branches/2017Q2/lang/swift/files/patch-swiftpm_Sources_PackageDescription_Package.swift branches/2017Q2/lang/swift/files/patch-swiftpm_Sources_libc_libc.swift branches/2017Q2/lang/swift/pkg-plist