Bug 223713

Summary: lang/swift: Fails to build: error: qualified reference to 'CanTypeWrapper' is a constructor name rather than a type in this context
Product: Ports & Packages Reporter: Robert Cina <transitive>
Component: Individual Port(s)Assignee: freebsd-ports-bugs mailing list <ports-bugs>
Status: Open ---    
Severity: Affects Only Me CC: swills, w.schwarzenfeld
Priority: --- Keywords: needs-qa
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
lang/swift build log none

Description Robert Cina 2017-11-16 17:05:33 UTC
Created attachment 188054 [details]
lang/swift build log

The lang/swift port fails to build on my system using poudriere and FreeBSD 11.1-STABLE 1101506.

Attached is the build log for the poudriere build that failed.

                         ^
1 warning generated.
[92/696] Building CXX object lib/SILOptimizer/CMakeFiles/swiftSILOptimizer.dir/Utils/PerformanceInlinerUtils.cpp.o
In file included from /wrkdirs/usr/ports/lang/swift/work/swift-3.1.1/swift/lib/SILOptimizer/Utils/PerformanceInlinerUtils.cpp:13:
In file included from /wrkdirs/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/SILOptimizer/Utils/PerformanceInlinerUtils.h:13:
In file included from /wrkdirs/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/SIL/SILInstruction.h:29:
/wrkdirs/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/SIL/SILValue.h:238:26: warning: cast from 'const swift::ValueBase *' to 'swift::ValueBase *' drops const qualifier [-Wcast-qual]
    : Value((ValueBase *)V) { }
                         ^
1 warning generated.
[93/696] Building CXX object lib/SILOptimizer/CMakeFiles/swiftSILOptimizer.dir/Utils/SILSSAUpdater.cpp.o
In file included from /wrkdirs/usr/ports/lang/swift/work/swift-3.1.1/swift/lib/SILOptimizer/Utils/SILSSAUpdater.cpp:18:
In file included from /wrkdirs/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/SIL/SILArgument.h:18:
In file included from /wrkdirs/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/SIL/SILFunction.h:20:
In file included from /wrkdirs/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/SIL/SILBasicBlock.h:23:
In file included from /wrkdirs/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/SIL/SILInstruction.h:29:
/wrkdirs/usr/ports/lang/swift/work/swift-3.1.1/swift/include/swift/SIL/SILValue.h:238:26: warning: cast from 'const swift::ValueBase *' to 'swift::ValueBase *' drops const qualifier [-Wcast-qual]
    : Value((ValueBase *)V) { }
                         ^
1 warning generated.
ninja: build stopped: subcommand failed.
./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/swift
=>> Cleaning up wrkdir
===>  Cleaning for swift-3.1.1_3
build of lang/swift | swift-3.1.1_3 ended at Thu Nov 16 11:54:44 EST 2017
build time: 00:23:24
!!! build failure encountered !!!
Comment 1 w.schwarzenfeld freebsd_triage 2018-02-04 12:53:19 UTC
Feedback please!