The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Dynamic with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mhdhejazi/Dynamic.git
Reference: 1.2.0
Cloned https://github.com/mhdhejazi/Dynamic.git into spi-builder-workspace
SUCCESS checkout https://github.com/mhdhejazi/Dynamic.git at 1.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/5] Compiling Dynamic Logger.swift
[2/5] Compiling Dynamic TypeMapping.swift
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:35:10: error: cannot find 'URLRequest' in scope
        (URLRequest.self, NSURLRequest.self),
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:35:27: error: cannot find 'NSURLRequest' in scope
        (URLRequest.self, NSURLRequest.self),
                          ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:87:17: error: cannot find type 'URLRequest' in scope
        case is URLRequest: return object as? NSURLRequest
                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:87:47: error: cannot find type 'NSURLRequest' in scope
        case is URLRequest: return object as? NSURLRequest
                                              ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:87:43: warning: conditional downcast from 'Any?' to 'Any' does nothing
        case is URLRequest: return object as? NSURLRequest
                                   ~~~~~~~^~~~~~~~~~~~~~~~
                                         
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:116:17: error: cannot find type 'NSURLRequest' in scope
        case is NSURLRequest: return object as? URLRequest
                ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:116:49: error: cannot find type 'URLRequest' in scope
        case is NSURLRequest: return object as? URLRequest
                                                ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:116:45: warning: conditional downcast from 'Any?' to 'Any' does nothing
        case is NSURLRequest: return object as? URLRequest
                                     ~~~~~~~^~~~~~~~~~~~~~
                                           
error: emit-module command failed with exit code 1 (use -v to see invocation)
error: compile command failed due to signal 6 (use -v to see invocation)
[3/5] Emitting module Dynamic
/host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:267:28: error: cannot find type 'Selector' in scope
    public var asSelector: Selector? { unwrap() }
                           ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:14:27: error: cannot find type 'Selector' in scope
    private let selector: Selector
                          ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:38:38: error: cannot find type 'Selector' in scope
    init(target: NSObject, selector: Selector) throws {
                                     ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:117:50: error: cannot find type 'NSInteger' in scope
    func setArgument(_ argument: Any?, at index: NSInteger) {
                                                 ^~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:218:66: error: cannot find type 'Selector' in scope
    case unrecognizedSelector(_ classType: AnyClass, _ selector: Selector)
                                                                 ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:35:10: error: cannot find 'URLRequest' in scope
        (URLRequest.self, NSURLRequest.self),
         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift:35:27: error: cannot find 'NSURLRequest' in scope
        (URLRequest.self, NSURLRequest.self),
                          ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:14:27: error: cannot find type 'Selector' in scope
    private let selector: Selector
                          ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:38:38: error: cannot find type 'Selector' in scope
    init(target: NSObject, selector: Selector) throws {
                                     ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:117:50: error: cannot find type 'NSInteger' in scope
    func setArgument(_ argument: Any?, at index: NSInteger) {
                                                 ^~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:218:66: error: cannot find type 'Selector' in scope
    case unrecognizedSelector(_ classType: AnyClass, _ selector: Selector)
                                                                 ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:54:28: error: cannot find 'NSSelectorFromString' in scope
            let selector = NSSelectorFromString("methodSignatureForSelector:")
                           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:55:55: error: cannot find type 'Selector' in scope
            let signature = (@convention(c)(NSObject, Selector, Selector) -> Any).self
                                                      ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:55:65: error: cannot find type 'Selector' in scope
            let signature = (@convention(c)(NSObject, Selector, Selector) -> Any).self
                                                                ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:56:26: error: generic parameter 'U' could not be inferred
            let method = unsafeBitCast(target.method(for: selector), to: signature)
                         ^
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
@inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
                       ^
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:56:47: error: value of type 'NSObject' has no member 'method'
            let method = unsafeBitCast(target.method(for: selector), to: signature)
                                       ~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:66:50: error: value of type 'NSObject' has no member 'value'
        self.numberOfArguments = methodSignature.value(forKeyPath: "numberOfArguments") as? Int ?? 0
                                 ~~~~~~~~~~~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:70:45: error: value of type 'NSObject' has no member 'value'
        self.returnLength = methodSignature.value(forKeyPath: "methodReturnLength") as? Int ?? 0
                            ~~~~~~~~~~~~~~~ ^~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:76:28: error: cannot find 'NSSelectorFromString' in scope
            let selector = NSSelectorFromString("methodReturnType")
                           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:77:55: error: cannot find type 'Selector' in scope
            let signature = (@convention(c)(NSObject, Selector) -> UnsafePointer<CChar>).self
                                                      ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:78:26: error: generic parameter 'U' could not be inferred
            let method = unsafeBitCast(methodSignature.method(for: selector), to: signature)
                         ^
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
@inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
                       ^
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:78:56: error: value of type 'NSObject' has no member 'method'
            let method = unsafeBitCast(methodSignature.method(for: selector), to: signature)
                                       ~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:88:28: error: cannot find 'NSSelectorFromString' in scope
            let selector = NSSelectorFromString("invocationWithMethodSignature:")
                           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:89:56: error: cannot find type 'Selector' in scope
            let signature = (@convention(c)(AnyObject, Selector, AnyObject) -> AnyObject).self
                                                       ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:90:26: error: generic parameter 'U' could not be inferred
            let method = unsafeBitCast(NSInvocation.method(for: selector), to: signature)
                         ^
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
@inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
                       ^
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:90:53: error: value of type 'AnyObject' has no member 'method'
            let method = unsafeBitCast(NSInvocation.method(for: selector), to: signature)
                                       ~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:102:28: error: cannot find 'NSSelectorFromString' in scope
            let selector = NSSelectorFromString("setSelector:")
                           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:103:55: error: cannot find type 'Selector' in scope
            let signature = (@convention(c)(NSObject, Selector, Selector) -> Void).self
                                                      ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:103:65: error: cannot find type 'Selector' in scope
            let signature = (@convention(c)(NSObject, Selector, Selector) -> Void).self
                                                                ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:104:26: error: generic parameter 'U' could not be inferred
            let method = unsafeBitCast(invocation.method(for: selector), to: signature)
                         ^
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
@inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
                       ^
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:104:51: error: value of type 'NSObject' has no member 'method'
            let method = unsafeBitCast(invocation.method(for: selector), to: signature)
                                       ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:110:28: error: cannot find 'NSSelectorFromString' in scope
            let selector = NSSelectorFromString("retainArguments")
                           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:111:55: error: cannot find type 'Selector' in scope
            let signature = (@convention(c)(NSObject, Selector) -> Void).self
                                                      ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:112:26: error: generic parameter 'U' could not be inferred
            let method = unsafeBitCast(invocation.method(for: selector), to: signature)
                         ^
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
@inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
                       ^
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:112:51: error: value of type 'NSObject' has no member 'method'
            let method = unsafeBitCast(invocation.method(for: selector), to: signature)
                                       ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:123:24: error: cannot find 'NSSelectorFromString' in scope
        let selector = NSSelectorFromString("setArgument:atIndex:")
                       ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:124:51: error: cannot find type 'Selector' in scope
        let signature = (@convention(c)(NSObject, Selector, UnsafeRawPointer, Int) -> Void).self
                                                  ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:125:22: error: generic parameter 'U' could not be inferred
        let method = unsafeBitCast(invocation.method(for: selector), to: signature)
                     ^
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
@inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
                       ^
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:125:47: error: value of type 'NSObject' has no member 'method'
        let method = unsafeBitCast(invocation.method(for: selector), to: signature)
                                   ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:131:13: warning: result of call to 'NSGetSizeAndAlignment' is unused
            NSGetSizeAndAlignment(valueArgument.objCType, typeSize, nil)
            ^                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:155:28: error: cannot find 'NSSelectorFromString' in scope
            let selector = NSSelectorFromString("invokeWithTarget:")
                           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:156:55: error: cannot find type 'Selector' in scope
            let signature = (@convention(c)(NSObject, Selector, AnyObject) -> Void).self
                                                      ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:157:26: error: generic parameter 'U' could not be inferred
            let method = unsafeBitCast(invocation.method(for: selector), to: signature)
                         ^
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
@inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
                       ^
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:157:51: error: value of type 'NSObject' has no member 'method'
            let method = unsafeBitCast(invocation.method(for: selector), to: signature)
                                       ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:169:28: error: cannot find 'NSSelectorFromString' in scope
            let selector = NSSelectorFromString("getReturnValue:")
                           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:170:55: error: cannot find type 'Selector' in scope
            let signature = (@convention(c)(NSObject, Selector, UnsafeMutableRawPointer) -> Void).self
                                                      ^~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:171:26: error: generic parameter 'U' could not be inferred
            let method = unsafeBitCast(invocation.method(for: selector), to: signature)
                         ^
Swift.unsafeBitCast:1:24: note: in call to function 'unsafeBitCast(_:to:)'
@inlinable public func unsafeBitCast<T, U>(_ x: T, to type: U.Type) -> U
                       ^
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:171:51: error: value of type 'NSObject' has no member 'method'
            let method = unsafeBitCast(invocation.method(for: selector), to: signature)
                                       ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:177:12: error: cannot find 'NSStringFromSelector' in scope
        if NSStringFromSelector(self.selector) == "alloc" {
           ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:209:24: error: cannot find 'NSStringFromSelector' in scope
        let selector = NSStringFromSelector(self.selector)
                       ^~~~~~~~~~~~~~~~~~~~
Can't demangle: $s7Dynamic15InvocationErrorO20unrecognizedSelector33_A150123FE31DA040782B113D070915EFLLXeF9classTypeL_yXlXpvp
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/Dynamic/Dynamic.swift -primary-file /host/spi-builder-workspace/Sources/Dynamic/Invocation.swift /host/spi-builder-workspace/Sources/Dynamic/Logger.swift /host/spi-builder-workspace/Sources/Dynamic/TypeMapping.swift -emit-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Dynamic.build/Invocation.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Dynamic.build/Invocation.swiftdeps -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug -enable-testing -g -module-cache-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /usr/bin/swift-driver -empty-abi-descriptor -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -fPIC -module-name Dynamic -parse-as-library -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Dynamic.build/Invocation.swift.o -index-store-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules
1.	Swift version 5.9-dev (LLVM 464b04eb9b157e3, Swift 7203d52cb1e074d)
2.	Compiling with the current language version
3.	While walking into 'InvocationError' (at /host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:217:8)
4.	While evaluating request USRGenerationRequest(Dynamic.(file).InvocationError.unrecognizedSelector(_:_:).classType@/host/spi-builder-workspace/Sources/Dynamic/Invocation.swift:218:33)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/usr/bin/swift-frontend[0x6b367f3]
/usr/bin/swift-frontend[0x6b3440e]
/usr/bin/swift-frontend[0x6b36b5f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)[0x7f5296d3e420]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7f529618500b]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7f5296164859]
/usr/bin/swift-frontend[0x22b3aa2]
/usr/bin/swift-frontend[0x1f25594]
/usr/bin/swift-frontend[0x2277429]
/usr/bin/swift-frontend[0x1bdf11c]
/usr/bin/swift-frontend[0x88a5c7]
/usr/bin/swift-frontend[0x88a0e7]
/usr/bin/swift-frontend[0x8891be]
/usr/bin/swift-frontend[0x2277f3a]
/usr/bin/swift-frontend[0x8562e9]
/usr/bin/swift-frontend[0x855af7]
/usr/bin/swift-frontend[0x852bde]
/usr/bin/swift-frontend[0x1525a1e]
/usr/bin/swift-frontend[0x1f7ae22]
/usr/bin/swift-frontend[0x1f7de3b]
/usr/bin/swift-frontend[0x1f7ae6a]
/usr/bin/swift-frontend[0x1f7ec76]
/usr/bin/swift-frontend[0x1f7ae6a]
/usr/bin/swift-frontend[0x1f7ad33]
/usr/bin/swift-frontend[0x214a8b2]
/usr/bin/swift-frontend[0x1523136]
/usr/bin/swift-frontend[0x852220]
/usr/bin/swift-frontend[0x8520ba]
/usr/bin/swift-frontend[0x8477e5]
/usr/bin/swift-frontend[0x8471e4]
/usr/bin/swift-frontend[0x66fcdc]
/usr/bin/swift-frontend[0x66dcdc]
/usr/bin/swift-frontend[0x6691b0]
/usr/bin/swift-frontend[0x4c43d1]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f5296166083]
/usr/bin/swift-frontend[0x4c3b1e]
BUILD FAILURE 5.9 linux

Build Machine: Linux 2