Build Failure
Closed this issue · 1 comments
sknitelius commented
When trying to build the Sample Application on Linux the following error occurs
Swift version 3.0-dev (LLVM b9bd56d1b8, Clang 61576bc3fb, Swift 44b8a0bd12)
Target: x86_64-unknown-linux-gnu
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/SwiftyJSON-14.2.0/Source/SwiftyJSON.swift:1176:27: warning: expression implicitly coerced from 'String._ObjectType?' to Any
self.object = newValue?.absoluteString._bridgeToObjectiveC()
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/SwiftyJSON-14.2.0/Source/SwiftyJSON.swift:1176:52: note: provide a default value to avoid this warning
self.object = newValue?.absoluteString._bridgeToObjectiveC()
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
?? <#default value#>
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/SwiftyJSON-14.2.0/Source/SwiftyJSON.swift:1176:52: note: force-unwrap the value to avoid this warning
self.object = newValue?.absoluteString._bridgeToObjectiveC()
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
!
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/SwiftyJSON-14.2.0/Source/SwiftyJSON.swift:1176:52: note: explicitly cast to Any with 'as Any' to silence this warning
self.object = newValue?.absoluteString._bridgeToObjectiveC()
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
as Any
Compile Swift Module 'Stencil' (15 sources)
Compile Swift Module 'KituraStencil' (1 sources)
Compile Swift Module 'KituraNet' (29 sources)
Compile Swift Module 'Kitura' (40 sources)
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs+Error.swift:28:35: error: @escaping attribute may only be used in function parameter position
public func error(_ handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouteRegex.swift:24:39: error: use of undeclared type 'RegularExpression'
typealias RegularExpressionType = RegularExpression
^~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterElement.swift:33:28: error: use of undeclared type 'RegularExpression'
private var regex: RegularExpression?
^~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:31:52: error: @escaping attribute may only be used in function parameter position
public func all(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:88:52: error: @escaping attribute may only be used in function parameter position
public func get(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:145:53: error: @escaping attribute may only be used in function parameter position
public func head(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:202:53: error: @escaping attribute may only be used in function parameter position
public func post(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:259:52: error: @escaping attribute may only be used in function parameter position
public func put(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:316:55: error: @escaping attribute may only be used in function parameter position
public func delete(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:373:56: error: @escaping attribute may only be used in function parameter position
public func options(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:430:54: error: @escaping attribute may only be used in function parameter position
public func trace(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:487:53: error: @escaping attribute may only be used in function parameter position
public func copy(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:544:53: error: @escaping attribute may only be used in function parameter position
public func lock(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:601:54: error: @escaping attribute may only be used in function parameter position
public func mkCol(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:658:53: error: @escaping attribute may only be used in function parameter position
public func move(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:715:54: error: @escaping attribute may only be used in function parameter position
public func purge(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:772:57: error: @escaping attribute may only be used in function parameter position
public func propFind(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:829:58: error: @escaping attribute may only be used in function parameter position
public func propPatch(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:886:55: error: @escaping attribute may only be used in function parameter position
public func unlock(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:943:55: error: @escaping attribute may only be used in function parameter position
public func report(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:1000:59: error: @escaping attribute may only be used in function parameter position
public func mkActivity(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:1057:57: error: @escaping attribute may only be used in function parameter position
public func checkout(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:1114:54: error: @escaping attribute may only be used in function parameter position
public func merge(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:1171:56: error: @escaping attribute may only be used in function parameter position
public func mSearch(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:1228:55: error: @escaping attribute may only be used in function parameter position
public func notify(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:1285:58: error: @escaping attribute may only be used in function parameter position
public func subscribe(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:1342:60: error: @escaping attribute may only be used in function parameter position
public func unsubscribe(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:1399:54: error: @escaping attribute may only be used in function parameter position
public func patch(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:1456:55: error: @escaping attribute may only be used in function parameter position
public func search(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterHTTPVerbs_generated.swift:1513:56: error: @escaping attribute may only be used in function parameter position
public func connect(_ path: String?=nil, handler: @escaping RouterHandler...) -> Router {
~^~~~~~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterElement.swift:33:28: error: use of undeclared type 'RegularExpression'
private var regex: RegularExpression?
^~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterElement.swift:33:28: error: use of undeclared type 'RegularExpression'
private var regex: RegularExpression?
^~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouteRegex.swift:24:39: error: use of undeclared type 'RegularExpression'
typealias RegularExpressionType = RegularExpression
^~~~~~~~~~~~~~~~~
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterRequest.swift:56:33: error: use of unresolved identifier 'RegularExpression'
let regex = try RegularExpression(pattern: pattern, options: [.caseInsensitive])
^~~~~~~~~~~~~~~~~
Foundation.NSRegularExpression:1:12: note: did you mean 'NSRegularExpression'?
open class NSRegularExpression : Foundation.NSObject, NSCopying, NSCoding {
^
/home/sknitelius/ClionProjects/Kitura-Sample/Packages/Kitura-1.0.0/Sources/Kitura/RouterElement.swift:33:28: error: use of undeclared type 'RegularExpression'
private var regex: RegularExpression?
^~~~~~~~~~~~~~~~~
<unknown>:0: error: build had 1 command failures
error: exit(1): /home/sknitelius/swift-DEVELOPMENT-SNAPSHOT-2016-10-06-a-ubuntu16.04/usr/bin/swift-build-tool -f /home/sknitelius/ClionProjects/Kitura-Sample/.build/debug.yaml
Package-Builder/build/Makefile:49: recipe for target '_build' failed
make[1]: *** [_build] Error 1
make[1]: Leaving directory '/home/sknitelius/ClionProjects/Kitura-Sample'
Package-Builder/build/Makefile:41: recipe for target 'buildDebug' failed
make: *** [buildDebug] Error 2
sknitelius commented
Was due to unstable dev version of Swift.