Bug 225660 - lang/swift: Missing RUN_DEPENDS on devel/binutils
Summary: lang/swift: Missing RUN_DEPENDS on devel/binutils
Status: Closed DUPLICATE of bug 218900
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 (Nobody)
URL:
Keywords: easy, needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2018-02-04 10:33 UTC by fehmi noyan isi
Modified: 2019-08-11 20:56 UTC (History)
4 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:~ #
Comment 1 Walter Schwarzenfeld 2019-08-04 18:39:19 UTC
Port is expired: EXPIRATION_DATE=        2019-05-08.
Comment 2 Rene Ladan freebsd_committer freebsd_triage 2019-08-11 20:56:29 UTC
See patch in PR 218900, the port still does not build though. Closing this PR as duplicate.

*** This bug has been marked as a duplicate of bug 218900 ***