Bug 210386 - lang/swift: swiftc not creating executable
Summary: lang/swift: swiftc not creating executable
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Steve Wills
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2016-06-19 13:34 UTC by Tom Pusateri
Modified: 2017-04-27 13:24 UTC (History)
1 user (show)

See Also:
vlad-fbsd: maintainer-feedback? (swills)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Pusateri 2016-06-19 13:34:28 UTC
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
Comment 1 Tom Pusateri 2016-06-19 13:35:46 UTC
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
Comment 2 Tom Pusateri 2016-12-14 23:08:57 UTC
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>
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-04-25 02:53:40 UTC
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
Comment 4 Steve Wills freebsd_committer freebsd_triage 2017-04-25 02:57:55 UTC
Sorry it took so long, should be fixed now. Please let me know if you run into issues still.
Comment 5 commit-hook freebsd_committer freebsd_triage 2017-04-27 13:24:48 UTC
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