The Swift Package Index logo.Swift Package Index

Build Information

Failed to build JavaCoder with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/readdle/swift-java-coder.git
Reference: 1.1.0
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/readdle/swift-java-coder
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at b0b66fa Dev: fix 32 arch bit support
Cloned https://github.com/readdle/swift-java-coder.git
Revision (git rev-parse @):
b0b66fa90d7b04c7214da15a17ec5ba14df61c8d
SUCCESS checkout https://github.com/readdle/swift-java-coder.git at 1.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/readdle/swift-java-coder.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/readdle/swift-anycodable.git
Fetching https://github.com/readdle/java_swift.git
[1/92] Fetching swift-anycodable
[93/406] Fetching swift-anycodable, java_swift
Fetched https://github.com/readdle/swift-anycodable.git from cache (0.26s)
[92/314] Fetching java_swift
Fetched https://github.com/readdle/java_swift.git from cache (0.29s)
Computing version for https://github.com/readdle/swift-anycodable.git
Computed https://github.com/readdle/swift-anycodable.git at 1.0.3 (0.48s)
Computing version for https://github.com/readdle/java_swift.git
Computed https://github.com/readdle/java_swift.git at 2.2.2 (0.48s)
Fetching https://github.com/readdle/swift-android-ndk.git
[1/74] Fetching swift-android-ndk
Fetched https://github.com/readdle/swift-android-ndk.git from cache (0.22s)
Computing version for https://github.com/readdle/swift-android-ndk.git
Computed https://github.com/readdle/swift-android-ndk.git at 1.1.3 (1.41s)
Creating working copy for https://github.com/readdle/java_swift.git
Working copy of https://github.com/readdle/java_swift.git resolved at 2.2.2
Creating working copy for https://github.com/readdle/swift-android-ndk.git
Working copy of https://github.com/readdle/swift-android-ndk.git resolved at 1.1.3
Creating working copy for https://github.com/readdle/swift-anycodable.git
Working copy of https://github.com/readdle/swift-anycodable.git resolved at 1.0.3
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/13] Emitting module java_swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h"
         ^
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h:4:10: error: 'android/log.h' file not found
#include <android/log.h>
         ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:16:19: error: could not build C module 'CAndroidNDK'
@_exported import CAndroidNDK
                  ^
[6/13] Compiling java_swift Throwable.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h"
         ^
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h:4:10: error: 'android/log.h' file not found
#include <android/log.h>
         ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:16:19: error: could not build C module 'CAndroidNDK'
@_exported import CAndroidNDK
                  ^
[7/13] Compiling java_swift JNIType.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h"
         ^
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h:4:10: error: 'android/log.h' file not found
#include <android/log.h>
         ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:16:19: error: could not build C module 'CAndroidNDK'
@_exported import CAndroidNDK
                  ^
[8/13] Compiling java_swift JNIMethod.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h"
         ^
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h:4:10: error: 'android/log.h' file not found
#include <android/log.h>
         ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:16:19: error: could not build C module 'CAndroidNDK'
@_exported import CAndroidNDK
                  ^
[9/13] Compiling java_swift JNIField.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h"
         ^
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h:4:10: error: 'android/log.h' file not found
#include <android/log.h>
         ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:16:19: error: could not build C module 'CAndroidNDK'
@_exported import CAndroidNDK
                  ^
[10/13] Compiling java_swift JNIObject.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h"
         ^
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h:4:10: error: 'android/log.h' file not found
#include <android/log.h>
         ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:16:19: error: could not build C module 'CAndroidNDK'
@_exported import CAndroidNDK
                  ^
[11/13] Compiling java_swift JNICore.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h"
         ^
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h:4:10: error: 'android/log.h' file not found
#include <android/log.h>
         ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:16:19: error: could not build C module 'CAndroidNDK'
@_exported import CAndroidNDK
                  ^
error: fatalError
[12/13] Emitting module AnyCodable
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/10] Compiling java_swift Throwable.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h"
         ^
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h:4:10: error: 'android/log.h' file not found
#include <android/log.h>
         ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:16:19: error: could not build C module 'CAndroidNDK'
@_exported import CAndroidNDK
                  ^
[3/10] Compiling java_swift JNIField.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h"
         ^
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h:4:10: error: 'android/log.h' file not found
#include <android/log.h>
         ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:16:19: error: could not build C module 'CAndroidNDK'
@_exported import CAndroidNDK
                  ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/10] Emitting module java_swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h"
         ^
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h:4:10: error: 'android/log.h' file not found
#include <android/log.h>
         ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:16:19: error: could not build C module 'CAndroidNDK'
@_exported import CAndroidNDK
                  ^
[5/10] Compiling java_swift JNIType.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h"
         ^
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h:4:10: error: 'android/log.h' file not found
#include <android/log.h>
         ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:16:19: error: could not build C module 'CAndroidNDK'
@_exported import CAndroidNDK
                  ^
[6/10] Compiling java_swift JNIObject.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h"
         ^
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h:4:10: error: 'android/log.h' file not found
#include <android/log.h>
         ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:16:19: error: could not build C module 'CAndroidNDK'
@_exported import CAndroidNDK
                  ^
[7/10] Compiling java_swift JNIMethod.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h"
         ^
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h:4:10: error: 'android/log.h' file not found
#include <android/log.h>
         ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:16:19: error: could not build C module 'CAndroidNDK'
@_exported import CAndroidNDK
                  ^
[8/10] Compiling java_swift JNICore.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h"
         ^
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidLog.h:4:10: error: 'android/log.h' file not found
#include <android/log.h>
         ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:16:19: error: could not build C module 'CAndroidNDK'
@_exported import CAndroidNDK
                  ^
[9/10] Compiling AnyCodable AnyCodable.swift
[10/10] Emitting module AnyCodable
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2