Bug 225660

Summary: lang/swift: Missing RUN_DEPENDS on devel/binutils
Product: Ports & Packages Reporter: fehmi noyan isi <fnoyanisi>
Component: Individual Port(s)Assignee: freebsd-ports-bugs mailing list <ports-bugs>
Status: Open ---    
Severity: Affects Many People CC: fnoyanisi, swills
Priority: --- Keywords: easy, needs-patch, needs-qa
Version: Latest   
Hardware: Any   
OS: Any   

Description fehmi noyan isi 2018-02-04 10:33:53 UTC
Hi there,

devel/binutils should be one of the required packages by lang/swift as without devel/binutils, lang/switf fails to compile (at the link stage) .swift files into executable files.

root@swift-jail:~ # cat test.swift 
root@swift-jail:~ # swiftc test.swift -o test
clang++: error: invalid linker name in argument '-fuse-ld=gold'
<unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)
root@swift-jail:~ # pkg install binutils
Updating FreeBSD repository catalogue...
[swift-jail] Fetching meta.txz: 100%    944 B   0.9kB/s    00:01    
[swift-jail] Fetching packagesite.txz: 100%    6 MiB   1.0MB/s    00:06    
Processing entries: 100%
FreeBSD repository update completed. 28776 packages processed.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	binutils: 2.28,1

Number of packages to be installed: 2

The process will require 177 MiB more space.
19 MiB to be downloaded.

Proceed with this action? [y/N]: y 
[swift-jail] [1/2] Fetching binutils-2.28,1.txz:   0%  152 KiB 155.7kB/s    02:08 ETA
[swift-jail] [1/2] Fetching binutils-2.28,1.txz: 100%   19 MiB   1.8MB/s    00:11    
[swift-jail] [2/2] Fetching gettext-runtime- 100%  149 KiB 152.4kB/s    00:01    
Checking integrity... done (0 conflicting)
[swift-jail] [1/2] Installing gettext-runtime-
[swift-jail] [1/2] Extracting gettext-runtime- 100%
[swift-jail] [2/2] Installing binutils-2.28,1...
[swift-jail] Extracting binutils-2.28,1: 100%
root@swift-jail:~ # swiftc test.swift -o test
root@swift-jail:~ # ./test 
root@swift-jail:~ #