The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CoreJSON with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/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/tomquist/CoreJSON.git
Reference: master
Cloned https://github.com/tomquist/CoreJSON.git into spi-builder-workspace
SUCCESS checkout https://github.com/tomquist/CoreJSON.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/2] Compiling CoreJSON JSON.swift
[2/2] Emitting module CoreJSON
[5/17] Emitting module CoreJSONCodable
[6/17] Emitting module CoreJSONSubscript
[7/17] Compiling CoreJSONSubscript JSONSubscript.swift
[8/18] Emitting module CoreJSONLiterals
[9/18] Compiling CoreJSONLiterals JSONLiterals.swift
[10/19] Compiling CoreJSONCodable JSONCodable.swift
[17/23] Emitting module CoreJSONConvenience
[18/23] Compiling CoreJSONConvenience JSONConvenience.swift
[21/25] Emitting module CoreJSONPointer
error: compile command failed due to signal 6 (use -v to see invocation)
Begin Error in Function: '$s8CoreJSON0B0O0A11JSONPointerE3set33_72DCCE79AC2F079C0DE132F3186B27FALL4path5valueSbs10ArraySliceVyAD0C0V8PathItemAFLLVG_ACSgtF'
Function: '$s8CoreJSON0B0O0A11JSONPointerE3set33_72DCCE79AC2F079C0DE132F3186B27FALL4path5valueSbs10ArraySliceVyAD0C0V8PathItemAFLLVG_ACSgtF'
Found non consuming use outside of the lifetime being verified.
Value:   %287 = copy_value %1 : $Optional<JSON>          // users: %288, %300
User:   destroy_value %288 : $@noescape @callee_guaranteed () -> @owned Optional<JSON> // id: %378
End Error in Function: '$s8CoreJSON0B0O0A11JSONPointerE3set33_72DCCE79AC2F079C0DE132F3186B27FALL4path5valueSbs10ArraySliceVyAD0C0V8PathItemAFLLVG_ACSgtF'
Found ownership error?!
triggering standard assertion failure routine
UNREACHABLE executed at /home/build-user/swift/lib/SIL/Verifier/LinearLifetimeCheckerPrivate.h:211!
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 -primary-file /host/spi-builder-workspace/Sources/CoreJSONPointer/JSONPointer.swift -emit-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/CoreJSONPointer.build/JSONPointer.d -emit-reference-dependencies-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/CoreJSONPointer.build/JSONPointer.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 CoreJSONPointer -parse-as-library -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/CoreJSONPointer.build/JSONPointer.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 evaluating request ExecuteSILPipelineRequest(Run pipelines { Non-Diagnostic Mandatory Optimizations, Serialization, Rest of Onone } on SIL for CoreJSONPointer)
4.	While running pass #328 SILFunctionTransform "OwnershipModelEliminator" on SILFunction "@$s8CoreJSON0B0O0A11JSONPointerE3set33_72DCCE79AC2F079C0DE132F3186B27FALL4path5valueSbs10ArraySliceVyAD0C0V8PathItemAFLLVG_ACSgtF".
 for 'set(path:value:)' (at /host/spi-builder-workspace/Sources/CoreJSONPointer/JSONPointer.swift:157:22)
5.	Found verification error when verifying before lowering ownership. Please re-run with -sil-verify-all to identify the actual pass that introduced the verification error.
6.	While verifying SIL function "@$s8CoreJSON0B0O0A11JSONPointerE3set33_72DCCE79AC2F079C0DE132F3186B27FALL4path5valueSbs10ArraySliceVyAD0C0V8PathItemAFLLVG_ACSgtF".
 for 'set(path:value:)' (at /host/spi-builder-workspace/Sources/CoreJSONPointer/JSONPointer.swift:157:22)
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)[0x7fe603fd6420]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7fe60341d00b]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7fe6033fc859]
/usr/bin/swift-frontend[0x6a520a1]
/usr/bin/swift-frontend[0x185930e]
/usr/bin/swift-frontend[0x1857030]
/usr/bin/swift-frontend[0x1857327]
/usr/bin/swift-frontend[0x185c154]
/usr/bin/swift-frontend[0x185e6b6]
/usr/bin/swift-frontend[0x185e54a]
/usr/bin/swift-frontend[0x18860ce]
/usr/bin/swift-frontend[0x1888bc8]
/usr/bin/swift-frontend[0x18732f6]
/usr/bin/swift-frontend[0x1869d7b]
/usr/bin/swift-frontend[0x1867e4a]
/usr/bin/swift-frontend[0x186005a]
/usr/bin/swift-frontend[0x14123d2]
/usr/bin/swift-frontend[0xeadb1c]
/usr/bin/swift-frontend[0xeaeb15]
/usr/bin/swift-frontend[0xeabb88]
/usr/bin/swift-frontend[0xeabb3d]
/usr/bin/swift-frontend[0xed8bfa]
/usr/bin/swift-frontend[0xebaa33]
/usr/bin/swift-frontend[0xeabd95]
/usr/bin/swift-frontend[0xebcc7d]
/usr/bin/swift-frontend[0x9003fc]
/usr/bin/swift-frontend[0x66620f]
/usr/bin/swift-frontend[0x66524d]
/usr/bin/swift-frontend[0x67b44e]
/usr/bin/swift-frontend[0x6684a2]
/usr/bin/swift-frontend[0x4c43d1]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7fe6033fe083]
/usr/bin/swift-frontend[0x4c3b1e]
[22/25] Emitting module CoreJSONFoundation
BUILD FAILURE 5.9 linux

Build Machine: Linux 2