Bug 225660 - lang/swift: Missing RUN_DEPENDS on devel/binutils
Summary: lang/swift: Missing RUN_DEPENDS on devel/binutils
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords: easy, needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2018-02-04 10:33 UTC by fehmi noyan isi
Modified: 2019-02-10 03:48 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 
print("test")
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
	gettext-runtime: 0.19.8.1_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-0.19.8.1_1.txz: 100%  149 KiB 152.4kB/s    00:01    
Checking integrity... done (0 conflicting)
[swift-jail] [1/2] Installing gettext-runtime-0.19.8.1_1...
[swift-jail] [1/2] Extracting gettext-runtime-0.19.8.1_1: 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 
test
root@swift-jail:~ #