The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build LibDCSwift, reference main (32b133), with Swift 6.1 for Linux on 30 Apr 2025 12:01:00 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/deepsealabs/libdc-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/deepsealabs/libdc-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 32b133a Delete fyi.md
Cloned https://github.com/deepsealabs/libdc-swift.git
Revision (git rev-parse @):
32b133a74a33b7a144321d2f155c17ef90c29c0e
SUCCESS checkout https://github.com/deepsealabs/libdc-swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/deepsealabs/libdc-swift.git
https://github.com/deepsealabs/libdc-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "LibDCSwift",
  "name" : "LibDCSwift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "LibDCSwift",
      "targets" : [
        "LibDCSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "LibDCBridge",
      "targets" : [
        "LibDCBridge"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LibDCSwift",
      "module_type" : "SwiftTarget",
      "name" : "LibDCSwift",
      "path" : "Sources/LibDCSwift",
      "product_memberships" : [
        "LibDCSwift"
      ],
      "sources" : [
        "BLEManager.swift",
        "DiveLogRetriever.swift",
        "LibDCSwift.swift",
        "Logger.swift",
        "Models/DeviceConfiguration.swift",
        "Models/DeviceFingerprint.swift",
        "Models/DiveData.swift",
        "Models/SampleData.swift",
        "Models/StoredDevice.swift",
        "Parser/GenericParser.swift",
        "ViewModels/DiveDataViewModel.swift"
      ],
      "target_dependencies" : [
        "LibDCBridge",
        "Clibdivecomputer"
      ],
      "type" : "library"
    },
    {
      "c99name" : "LibDCBridge",
      "module_type" : "ClangTarget",
      "name" : "LibDCBridge",
      "path" : "Sources/LibDCBridge",
      "product_memberships" : [
        "LibDCSwift",
        "LibDCBridge"
      ],
      "sources" : [
        "src/BLEBridge.m",
        "src/configuredc.c"
      ],
      "target_dependencies" : [
        "Clibdivecomputer"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Clibdivecomputer",
      "module_type" : "ClangTarget",
      "name" : "Clibdivecomputer",
      "path" : "libdivecomputer",
      "product_memberships" : [
        "LibDCSwift",
        "LibDCBridge"
      ],
      "sources" : [
        "src/aes.c",
        "src/array.c",
        "src/atomics_cobalt.c",
        "src/atomics_cobalt_parser.c",
        "src/ble.c",
        "src/bluetooth.c",
        "src/buffer.c",
        "src/checksum.c",
        "src/citizen_aqualand.c",
        "src/citizen_aqualand_parser.c",
        "src/cochran_commander.c",
        "src/cochran_commander_parser.c",
        "src/common.c",
        "src/context.c",
        "src/cressi_edy.c",
        "src/cressi_edy_parser.c",
        "src/cressi_goa.c",
        "src/cressi_goa_parser.c",
        "src/cressi_leonardo.c",
        "src/cressi_leonardo_parser.c",
        "src/custom.c",
        "src/datetime.c",
        "src/deepblu_cosmiq.c",
        "src/deepblu_cosmiq_parser.c",
        "src/deepsix_excursion.c",
        "src/deepsix_excursion_parser.c",
        "src/descriptor.c",
        "src/device.c",
        "src/diverite_nitekq.c",
        "src/diverite_nitekq_parser.c",
        "src/divesoft_freedom.c",
        "src/divesoft_freedom_parser.c",
        "src/divesystem_idive.c",
        "src/divesystem_idive_parser.c",
        "src/hdlc.c",
        "src/hw_frog.c",
        "src/hw_ostc.c",
        "src/hw_ostc3.c",
        "src/hw_ostc_parser.c",
        "src/ihex.c",
        "src/iostream.c",
        "src/irda.c",
        "src/iterator.c",
        "src/liquivision_lynx.c",
        "src/liquivision_lynx_parser.c",
        "src/mares_common.c",
        "src/mares_darwin.c",
        "src/mares_darwin_parser.c",
        "src/mares_iconhd.c",
        "src/mares_iconhd_parser.c",
        "src/mares_nemo.c",
        "src/mares_nemo_parser.c",
        "src/mares_puck.c",
        "src/mclean_extreme.c",
        "src/mclean_extreme_parser.c",
        "src/oceanic_atom2.c",
        "src/oceanic_atom2_parser.c",
        "src/oceanic_common.c",
        "src/oceanic_veo250.c",
        "src/oceanic_veo250_parser.c",
        "src/oceanic_vtpro.c",
        "src/oceanic_vtpro_parser.c",
        "src/oceans_s1.c",
        "src/oceans_s1_common.c",
        "src/oceans_s1_parser.c",
        "src/packet.c",
        "src/parser.c",
        "src/pelagic_i330r.c",
        "src/platform.c",
        "src/rbstream.c",
        "src/reefnet_sensus.c",
        "src/reefnet_sensus_parser.c",
        "src/reefnet_sensuspro.c",
        "src/reefnet_sensuspro_parser.c",
        "src/reefnet_sensusultra.c",
        "src/reefnet_sensusultra_parser.c",
        "src/ringbuffer.c",
        "src/seac_screen.c",
        "src/seac_screen_parser.c",
        "src/serial_posix.c",
        "src/shearwater_common.c",
        "src/shearwater_petrel.c",
        "src/shearwater_predator.c",
        "src/shearwater_predator_parser.c",
        "src/socket.c",
        "src/sporasub_sp2.c",
        "src/sporasub_sp2_parser.c",
        "src/suunto_common.c",
        "src/suunto_common2.c",
        "src/suunto_d9.c",
        "src/suunto_d9_parser.c",
        "src/suunto_eon.c",
        "src/suunto_eon_parser.c",
        "src/suunto_eonsteel.c",
        "src/suunto_eonsteel_parser.c",
        "src/suunto_solution.c",
        "src/suunto_solution_parser.c",
        "src/suunto_vyper.c",
        "src/suunto_vyper2.c",
        "src/suunto_vyper_parser.c",
        "src/tecdiving_divecomputereu.c",
        "src/tecdiving_divecomputereu_parser.c",
        "src/timer.c",
        "src/usb.c",
        "src/usbhid.c",
        "src/uwatec_aladin.c",
        "src/uwatec_memomouse.c",
        "src/uwatec_memomouse_parser.c",
        "src/uwatec_smart.c",
        "src/uwatec_smart_parser.c",
        "src/zeagle_n2ition3.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/117] Compiling ble.c
[1/117] Compiling checksum.c
[2/117] Write sources
[3/117] Compiling array.c
[4/117] Compiling buffer.c
In file included from /host/spi-builder-workspace/libdivecomputer/src/atomics_cobalt_parser.c:27:
/host/spi-builder-workspace/libdivecomputer/src/context-private.h:58:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   58 | #define DEBUG(context, ...) UNUSED(context)
      |         ^
<command line>:2:9: note: previous definition is here
    2 | #define DEBUG 1
      |         ^
1 warning generated.
[5/117] Compiling atomics_cobalt_parser.c
In file included from /host/spi-builder-workspace/libdivecomputer/src/citizen_aqualand.c:26:
/host/spi-builder-workspace/libdivecomputer/src/context-private.h:58:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   58 | #define DEBUG(context, ...) UNUSED(context)
      |         ^
<command line>:2:9: note: previous definition is here
    2 | #define DEBUG 1
      |         ^
1 warning generated.
[6/117] Compiling citizen_aqualand.c
In file included from /host/spi-builder-workspace/libdivecomputer/src/atomics_cobalt.c:28:
/host/spi-builder-workspace/libdivecomputer/src/context-private.h:58:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   58 | #define DEBUG(context, ...) UNUSED(context)
      |         ^
<command line>:2:9: note: previous definition is here
    2 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /host/spi-builder-workspace/libdivecomputer/src/bluetooth.c:51:
/host/spi-builder-workspace/libdivecomputer/src/context-private.h:58:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   58 | #define DEBUG(context, ...) UNUSED(context)
      |         ^
<command line>:2:9: note: previous definition is here
    2 | #define DEBUG 1
      |         ^
1 warning generated.
[7/117] Compiling atomics_cobalt.c
[8/117] Compiling bluetooth.c
In file included from /host/spi-builder-workspace/Sources/LibDCBridge/src/BLEBridge.m:1:
/host/spi-builder-workspace/Sources/LibDCBridge/include/BLEBridge.h:13:17: fatal error: 'Foundation/Foundation.h' file not found
   13 |         #import <Foundation/Foundation.h>
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[9/117] Compiling BLEBridge.m
[9/117] Compiling uwatec_memomouse_parser.c
[9/117] Compiling uwatec_memomouse.c
[9/117] Compiling uwatec_smart_parser.c
[9/117] Compiling uwatec_smart.c
[9/117] Compiling zeagle_n2ition3.c
[9/117] Compiling configuredc.c
[9/117] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
In file included from /host/spi-builder-workspace/Sources/LibDCBridge/src/BLEBridge.m:1:
/host/spi-builder-workspace/Sources/LibDCBridge/include/BLEBridge.h:13:17: fatal error: 'Foundation/Foundation.h' file not found
   13 |         #import <Foundation/Foundation.h>
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/108] Compiling BLEBridge.m
In file included from /host/spi-builder-workspace/libdivecomputer/src/uwatec_memomouse_parser.c:27:
/host/spi-builder-workspace/libdivecomputer/src/context-private.h:58:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   58 | #define DEBUG(context, ...) UNUSED(context)
      |         ^
<command line>:2:9: note: previous definition is here
    2 | #define DEBUG 1
      |         ^
1 warning generated.
In file included from /host/spi-builder-workspace/libdivecomputer/src/zeagle_n2ition3.c:27:
/host/spi-builder-workspace/libdivecomputer/src/context-private.h:58:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   58 | #define DEBUG(context, ...) UNUSED(context)
      |         ^
<command line>:2:9: note: previous definition is here
    2 | #define DEBUG 1
      |         ^
1 warning generated.
[0/108] Compiling uwatec_memomouse_parser.c
[0/108] Compiling zeagle_n2ition3.c
In file included from /host/spi-builder-workspace/libdivecomputer/src/uwatec_memomouse.c:27:
/host/spi-builder-workspace/libdivecomputer/src/context-private.h:58:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   58 | #define DEBUG(context, ...) UNUSED(context)
      |         ^
<command line>:2:9: note: previous definition is here
    2 | #define DEBUG 1
      |         ^
1 warning generated.
[0/108] Compiling uwatec_memomouse.c
In file included from /host/spi-builder-workspace/libdivecomputer/src/uwatec_smart.c:26:
/host/spi-builder-workspace/libdivecomputer/src/context-private.h:58:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   58 | #define DEBUG(context, ...) UNUSED(context)
      |         ^
<command line>:2:9: note: previous definition is here
    2 | #define DEBUG 1
      |         ^
[0/108] Compiling uwatec_smart.c
In file included from /host/spi-builder-workspace/libdivecomputer/src/uwatec_smart_parser.c:28:
/host/spi-builder-workspace/libdivecomputer/src/context-private.h:58:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
   58 | #define DEBUG(context, ...) UNUSED(context)
      |         ^
<command line>:2:9: note: previous definition is here
    2 | #define DEBUG 1
      |         ^
[0/108] Compiling uwatec_smart_parser.c
[0/108] Compiling configuredc.c
[0/108] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 linux