The Swift Package Index logo.Swift Package Index

Build Information

Failed to build JavaCoder with Swift 5.8 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.24.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/readdle/swift-java-coder.git
Reference: 1.1.0
Cloned https://github.com/readdle/swift-java-coder.git into /host/spi-builder-workspace
Revision (git rev-parse @):
SUCCESS checkout https://github.com/readdle/swift-java-coder.git at 1.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  /host/spi-builder-workspace
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Client: Docker Engine - Community
 Version:    24.0.6
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.2
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.21.0
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 8
 Server Version: 24.0.2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8
 runc version: v1.1.7-0-g860f061
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
 Kernel Version: 5.4.0-1109-azure
 Operating System: Ubuntu 18.04.6 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 31.36GiB
 Name: lb1
 ID: UY74:UH4K:TTAZ:FGJU:C4S4:QTKO:WTQO:SFMF:XQCM:7D33:AENF:QBQA
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Labels:
  provider=azure
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
Fetching https://github.com/readdle/swift-anycodable.git
Fetching https://github.com/readdle/java_swift.git
[1/304] Fetching java_swift
[305/396] Fetching java_swift, swift-anycodable
Fetched https://github.com/readdle/swift-anycodable.git (0.38s)
Fetched https://github.com/readdle/java_swift.git (0.38s)
Computing version for https://github.com/readdle/java_swift.git
Computed https://github.com/readdle/java_swift.git at 2.2.0 (0.31s)
Fetching https://github.com/readdle/swift-android-ndk.git
[1/74] Fetching swift-android-ndk
Fetched https://github.com/readdle/swift-android-ndk.git (0.28s)
Computing version for https://github.com/readdle/swift-android-ndk.git
Computed https://github.com/readdle/swift-android-ndk.git at 1.1.3 (0.93s)
Computing version for https://github.com/readdle/swift-anycodable.git
Computed https://github.com/readdle/swift-anycodable.git at 1.0.3 (0.29s)
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/java_swift.git
Working copy of https://github.com/readdle/java_swift.git resolved at 2.2.0
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...
[1/9] 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
                  ^
[2/9] 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/9] 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
                  ^
[4/9] 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
                  ^
[5/9] 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
                  ^
[6/9] Compiling AnyCodable AnyCodable.swift
[7/9] Emitting module AnyCodable
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/9] 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
                  ^
[9/9] 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
                  ^
Fetching https://github.com/readdle/swift-anycodable.git
Fetching https://github.com/readdle/java_swift.git
[1/304] Fetching java_swift
[305/396] Fetching java_swift, swift-anycodable
Fetched https://github.com/readdle/swift-anycodable.git (0.38s)
Fetched https://github.com/readdle/java_swift.git (0.38s)
Computing version for https://github.com/readdle/java_swift.git
Computed https://github.com/readdle/java_swift.git at 2.2.0 (0.31s)
Fetching https://github.com/readdle/swift-android-ndk.git
[1/74] Fetching swift-android-ndk
Fetched https://github.com/readdle/swift-android-ndk.git (0.28s)
Computing version for https://github.com/readdle/swift-android-ndk.git
Computed https://github.com/readdle/swift-android-ndk.git at 1.1.3 (0.93s)
Computing version for https://github.com/readdle/swift-anycodable.git
Computed https://github.com/readdle/swift-anycodable.git at 1.0.3 (0.29s)
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/java_swift.git
Working copy of https://github.com/readdle/java_swift.git resolved at 2.2.0
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...
[1/9] 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
                  ^
[2/9] 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/9] 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
                  ^
[4/9] 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
                  ^
[5/9] 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
                  ^
[6/9] Compiling AnyCodable AnyCodable.swift
[7/9] Emitting module AnyCodable
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/9] 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
                  ^
[9/9] 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
                  ^
BUILD FAILURE 5.8 linux

Build Machine: Linux 1