Build Information
Failed to build ELFKit, reference 0.3.0 (d7a971
), with Swift 6.1 for Android on 21 Jun 2025 16:10:52 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/ELFKit.git
Reference: 0.3.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/p-x9/ELFKit
* tag 0.3.0 -> FETCH_HEAD
HEAD is now at d7a9719 Merge pull request #7 from p-x9/feature/fileio
Cloned https://github.com/p-x9/ELFKit.git
Revision (git rev-parse @):
d7a9719dbd83870af2b528b086c18beabc1ad957
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/p-x9/ELFKit.git at 0.3.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/p-x9/ELFKit.git
https://github.com/p-x9/ELFKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-fileio",
"requirement" : {
"range" : [
{
"lower_bound" : "0.9.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/p-x9/swift-fileio.git"
}
],
"manifest_display_name" : "ELFKit",
"name" : "ELFKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "ELFKit",
"targets" : [
"ELFKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ELFKitTests",
"module_type" : "SwiftTarget",
"name" : "ELFKitTests",
"path" : "Tests/ELFKitTests",
"sources" : [
"ELFFilePrintTests.swift",
"ELFImagePrintTests.swift",
"ELFKitTests.swift",
"Util/Linux.swift"
],
"target_dependencies" : [
"ELFKit"
],
"type" : "test"
},
{
"c99name" : "ELFKitC",
"module_type" : "ClangTarget",
"name" : "ELFKitC",
"path" : "Sources/ELFKitC",
"product_memberships" : [
"ELFKit"
],
"sources" : [
"dummy.c"
],
"type" : "library"
},
{
"c99name" : "ELFKit",
"module_type" : "SwiftTarget",
"name" : "ELFKit",
"path" : "Sources/ELFKit",
"product_dependencies" : [
"FileIO"
],
"product_memberships" : [
"ELFKit"
],
"sources" : [
"ELFFile+Dynamics.swift",
"ELFFile+Strings.swift",
"ELFFile.swift",
"ELFImage+Dynamics.swift",
"ELFImage+Strings.swift",
"ELFImage+static.swift",
"ELFImage.swift",
"ELFKit.swift",
"ELFKitError.swift",
"Extension/Data+.swift",
"Extension/ELFDynamic+.swift",
"Extension/ELFFile+Dynamics32+.swift",
"Extension/ELFFile+Dynamics64+.swift",
"Extension/ELFImage+Dynamics32+.swift",
"Extension/ELFImage+Dynamics64+.swift",
"Extension/FileHandle.swift",
"Extension/String+.swift",
"Extension/UnsafePointer+.swift",
"Extension/UnsafeRawPointer+.swift",
"Extension/_FileIOProtocol+.swift",
"Header/ELFHeader/ELF32Header.swift",
"Header/ELFHeader/ELF64Header.swift",
"Header/ELFHeader/ELFHeader.swift",
"Header/Model/ELFClass.swift",
"Header/Model/ELFData.swift",
"Header/Model/ELFMachine.swift",
"Header/Model/ELFOSABI.swift",
"Header/Model/ELFType.swift",
"Header/Model/HeaderIdentifier.swift",
"Header/Model/ProgramFlags.swift",
"Header/Model/ProgramType.swift",
"Header/Model/SectionFlags.swift",
"Header/Model/SectionType.swift",
"Header/NoteHeader/ELF32NoteHeader.swift",
"Header/NoteHeader/ELF64NoteHeader.swift",
"Header/ProgramHeader/ELF32ProgramHeader.swift",
"Header/ProgramHeader/ELF64ProgramHeader.swift",
"Header/SectionHeader/ELF32SectionHeader.swift",
"Header/SectionHeader/ELF64SectionHeader.swift",
"Model/Dynamic/DynamicFlags.swift",
"Model/Dynamic/DynamicFlags1.swift",
"Model/Dynamic/DynamicTag.swift",
"Model/Dynamic/ELF32Dynamic.swift",
"Model/Dynamic/ELF64Dynamic.swift",
"Model/GnuHash/ELFGnuHashTable.swift",
"Model/GnuHash/ELFGnuHashTableHeader.swift",
"Model/Hash/ELFHashTable.swift",
"Model/Hash/ELFHashTableHeader.swift",
"Model/Note/ELF32Note.swift",
"Model/Note/ELF64Note.swift",
"Model/Note/ELFNotes.swift",
"Model/Note/GNU/GnuABITag.swift",
"Model/Note/GNU/GnuHardwareCapabilities.swift",
"Model/Note/GNU/GnuNoteContent.swift",
"Model/Note/GNU/GnuNoteType.swift",
"Model/Relocation/ELF32Relocation.swift",
"Model/Relocation/ELF32RelocationInfo.swift",
"Model/Relocation/ELF64Relocation.swift",
"Model/Relocation/ELF64RelocationInfo.swift",
"Model/StringTableEntry.swift",
"Model/Symbol/ELFSymbol.swift",
"Model/Symbol/SpecialSectionIndex.swift",
"Model/Symbol/SymbolBinding.swift",
"Model/Symbol/SymbolType.swift",
"Model/Symbol/SymbolVisibility.swift",
"Model/SymbolInfo/ELFSymbolInfo.swift",
"Model/SymbolInfo/SymbolInfoFlags.swift",
"Model/SymbolInfo/SymbolInfoSpecialBound.swift",
"Model/Version.swift",
"Model/Version/VersionDef/ELFVersionDef.swift",
"Model/Version/VersionDef/ELFVersionDefAux.swift",
"Model/Version/VersionFlags.swift",
"Model/Version/VersionNeed/ELFVersionNeed.swift",
"Model/Version/VersionNeed/ELFVersionNeedAux.swift",
"Model/Version/VersionSym/ELFVersionSym.swift",
"Protocol/ELFDynamicProtocol.swift",
"Protocol/ELFDynamicsSequence.swift",
"Protocol/ELFFileDynamicsSequence.swift",
"Protocol/ELFHashTableProtocol.swift",
"Protocol/ELFImageDynamicsSequence.swift",
"Protocol/ELFNoteHeaderProtocol.swift",
"Protocol/ELFNoteProtocol.swift",
"Protocol/ELFProgramHeaderProtocol.swift",
"Protocol/ELFRelocationProtocol.swift",
"Protocol/ELFRepresentable.swift",
"Protocol/ELFSectionHeaderProtocol.swift",
"Protocol/ELFSymbolInfoProtocol.swift",
"Protocol/ELFSymbolProtocol.swift",
"Protocol/ELFVersionDefAuxProtocol.swift",
"Protocol/ELFVersionDefProtocol.swift",
"Protocol/ELFVersionNeedAuxProtocol.swift",
"Protocol/ELFVersionNeedProtocol.swift",
"Protocol/ELFVersionSymProtocol.swift",
"Protocol/LayoutWrapper.swift",
"Sections.swift",
"Segments.swift",
"Util/BitFlags.swift",
"Util/ConditionalBitFlags.swift",
"Util/Sequence/DataSequence.swift",
"Util/Sequence/MemorySequence.swift",
"Util/SwiftDemangle.swift",
"Util/exported.swift"
],
"target_dependencies" : [
"ELFKitC"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/p-x9/swift-fileio.git
[1/163] Fetching swift-fileio
Fetched https://github.com/p-x9/swift-fileio.git from cache (0.25s)
Computing version for https://github.com/p-x9/swift-fileio.git
Computed https://github.com/p-x9/swift-fileio.git at 0.9.0 (1.48s)
Creating working copy for https://github.com/p-x9/swift-fileio.git
Working copy of https://github.com/p-x9/swift-fileio.git resolved at 0.9.0
Building for debugging...
[0/4] Write sources
[2/4] Write swift-version-24593BA9C3E375BF.txt
[3/4] Compiling ELFKitC dummy.c
[5/8] Compiling FileIO FileIO.swift
[6/8] Emitting module FileIO
[7/8] Compiling FileIO MemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:73:22: error: cannot find 'MAP_FAILED' in scope
71 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
72 | guard let ptr,
73 | ptr != MAP_FAILED else {
| `- error: cannot find 'MAP_FAILED' in scope
74 | close(fd)
75 | throw POSIXError(.init(rawValue: errno)!)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/sys/mman.h:43:9: note: macro 'MAP_FAILED' unavailable: structure not supported
41 |
42 | /** Return value for mmap(). */
43 | #define MAP_FAILED __BIONIC_CAST(reinterpret_cast, void*, -1)
| `- note: macro 'MAP_FAILED' unavailable: structure not supported
44 |
45 | /**
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:72:15: error: initializer for conditional binding must have Optional type, not 'UnsafeMutableRawPointer'
70 | if isWritable { prot |= PROT_WRITE }
71 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
72 | guard let ptr,
| `- error: initializer for conditional binding must have Optional type, not 'UnsafeMutableRawPointer'
73 | ptr != MAP_FAILED else {
74 | close(fd)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:133:22: error: cannot find 'MAP_FAILED' in scope
131 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
132 | guard let ptr,
133 | ptr != MAP_FAILED else {
| `- error: cannot find 'MAP_FAILED' in scope
134 | throw POSIXError(.init(rawValue: errno)!)
135 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/sys/mman.h:43:9: note: macro 'MAP_FAILED' unavailable: structure not supported
41 |
42 | /** Return value for mmap(). */
43 | #define MAP_FAILED __BIONIC_CAST(reinterpret_cast, void*, -1)
| `- note: macro 'MAP_FAILED' unavailable: structure not supported
44 |
45 | /**
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:132:15: error: initializer for conditional binding must have Optional type, not 'UnsafeMutableRawPointer'
130 | if isWritable { prot |= PROT_WRITE }
131 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
132 | guard let ptr,
| `- error: initializer for conditional binding must have Optional type, not 'UnsafeMutableRawPointer'
133 | ptr != MAP_FAILED else {
134 | throw POSIXError(.init(rawValue: errno)!)
[8/8] Compiling FileIO StreamedFile.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling FileIO FileIO.swift
[3/5] Emitting module FileIO
[4/5] Compiling FileIO StreamedFile.swift
[5/5] Compiling FileIO MemoryMappedFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:73:22: error: cannot find 'MAP_FAILED' in scope
71 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
72 | guard let ptr,
73 | ptr != MAP_FAILED else {
| `- error: cannot find 'MAP_FAILED' in scope
74 | close(fd)
75 | throw POSIXError(.init(rawValue: errno)!)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/sys/mman.h:43:9: note: macro 'MAP_FAILED' unavailable: structure not supported
41 |
42 | /** Return value for mmap(). */
43 | #define MAP_FAILED __BIONIC_CAST(reinterpret_cast, void*, -1)
| `- note: macro 'MAP_FAILED' unavailable: structure not supported
44 |
45 | /**
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:72:15: error: initializer for conditional binding must have Optional type, not 'UnsafeMutableRawPointer'
70 | if isWritable { prot |= PROT_WRITE }
71 | let ptr = mmap(nil, Int(fileSize), prot, MAP_SHARED, fd, 0)
72 | guard let ptr,
| `- error: initializer for conditional binding must have Optional type, not 'UnsafeMutableRawPointer'
73 | ptr != MAP_FAILED else {
74 | close(fd)
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:133:22: error: cannot find 'MAP_FAILED' in scope
131 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
132 | guard let ptr,
133 | ptr != MAP_FAILED else {
| `- error: cannot find 'MAP_FAILED' in scope
134 | throw POSIXError(.init(rawValue: errno)!)
135 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/sys/mman.h:43:9: note: macro 'MAP_FAILED' unavailable: structure not supported
41 |
42 | /** Return value for mmap(). */
43 | #define MAP_FAILED __BIONIC_CAST(reinterpret_cast, void*, -1)
| `- note: macro 'MAP_FAILED' unavailable: structure not supported
44 |
45 | /**
/host/spi-builder-workspace/.build/checkouts/swift-fileio/Sources/FileIO/MemoryMappedFile.swift:132:15: error: initializer for conditional binding must have Optional type, not 'UnsafeMutableRawPointer'
130 | if isWritable { prot |= PROT_WRITE }
131 | let ptr = mmap(nil, newSize, prot, MAP_SHARED, fileDescriptor, 0)
132 | guard let ptr,
| `- error: initializer for conditional binding must have Optional type, not 'UnsafeMutableRawPointer'
133 | ptr != MAP_FAILED else {
134 | throw POSIXError(.init(rawValue: errno)!)
BUILD FAILURE 6.1 android