Build Information
Failed to build SwiftMTP, reference main (f5f718), with Swift 6.3 for Android on 3 Oct 2026 11:00:06 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/cleanCocoa/swift-mtp.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/cleanCocoa/swift-mtp
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f5f7182 docs: add 0.12.0 changelog
Cloned https://github.com/cleanCocoa/swift-mtp.git
Revision (git rev-parse @):
f5f7182cf871aa0fec848d0b7a7d3d656cf8e476
SUCCESS checkout https://github.com/cleanCocoa/swift-mtp.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/cleanCocoa/swift-mtp.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:8ca9e1e6d70fd53f5b05e4f64d92569d697563f7f457a1485802bc9eb2cd1382
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
warning: you may be able to install libmtp using your system-packager:
apt-get install libmtp-dev
warning: you may be able to install libmtp using your system-packager:
apt-get install libmtp-dev
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-272D24FF697CF451.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/29] Emitting module MTPCore
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[6/32] Compiling MTPCore FileReference.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[7/32] Compiling MTPCore Folder.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[8/32] Compiling MTPCore FolderTree.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[9/32] Compiling MTPCore SwiftMTP.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[10/32] Compiling MTPCore Upload.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[11/32] Compiling MTPCore VendorID.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[12/32] Compiling MTPCore ProductID.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[13/32] Compiling MTPCore ProgressAction.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[14/32] Compiling MTPCore ProgressCallback.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[15/32] Compiling MTPCore MTPError.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[16/32] Compiling MTPCore ObjectID.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[17/32] Compiling MTPCore Path.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[18/32] Compiling MTPCore FileHandle.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[19/32] Compiling MTPCore FileInfo.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[20/32] Compiling MTPCore FileNode.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[21/32] Compiling MTPCore FileOperations.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[22/32] Compiling MTPCore BusLocation.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[23/32] Compiling MTPCore DetectedDevice.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[24/32] Compiling MTPCore Device.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[25/32] Compiling MTPCore DeviceDiscovery.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[26/32] Compiling MTPCore DeviceNumber.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[27/32] Compiling MTPCore DirectoryListing.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[28/32] Compiling MTPCore Event.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[29/32] Compiling MTPCore EventStream.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[30/32] Compiling MTPCore StorageID.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[31/32] Compiling MTPCore StorageInfo.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
[32/32] Compiling MTPCore SuppressStdout.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/Clibmtp/shim.h:2:10: error: 'libmtp.h' file not found
1 | #pragma once
2 | #include <libmtp.h>
| `- error: 'libmtp.h' file not found
3 |
/host/spi-builder-workspace/Sources/MTPCore/DetectedDevice.swift:1:24: error: could not build C module 'Clibmtp'
1 | @preconcurrency import Clibmtp
| `- error: could not build C module 'Clibmtp'
2 |
3 | public struct DetectedDevice: Sendable {
BUILD FAILURE 6.3 android