The Swift Package Index logo.Swift Package Index

Build Information

Failed to build BitriseTrace with Swift 5.9 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bitrise-io/trace-cocoa-sdk.git
Reference: 1.7.39
Cloned https://github.com/bitrise-io/trace-cocoa-sdk.git into spi-builder-workspace
SUCCESS checkout https://github.com/bitrise-io/trace-cocoa-sdk.git at 1.7.39
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
In file included from /host/spi-builder-workspace/TraceInternal/CrashReporting/Recording/KSCrashDoctor.m:9:
/host/spi-builder-workspace/TraceInternal/CrashReporting/Recording/KSCrashDoctor.h:9:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
/host/spi-builder-workspace/TraceInternal/CrashReporting/Recording/Tools/KSMach.c:27:10: fatal error: 'mach/mach.h' file not found
#include <mach/mach.h>
         ^~~~~~~~~~~~~
1 error generated.
[0/64] Compiling TraceInternal_Recording_Tools KSMach.c
In file included from /host/spi-builder-workspace/TraceInternal/CrashReporting/Recording/Monitors/KSCrashMonitor.c:28:
In file included from /host/spi-builder-workspace/TraceInternal/CrashReporting/Recording/Monitors/KSCrashMonitor.h:41:
/host/spi-builder-workspace/TraceInternal/CrashReporting/Recording/Tools/KSThread.h:39:9: error: unknown type name 'uintptr_t'; did you mean '__intptr_t'?
typedef uintptr_t KSThread;
        ^~~~~~~~~
        __intptr_t
/usr/include/x86_64-linux-gnu/bits/types.h:206:25: note: '__intptr_t' declared here
__STD_TYPE __SWORD_TYPE __intptr_t;
                        ^
1 error generated.
[0/64] Compiling TraceInternal_Recording_Monitors KSCrashMonitor.c
[0/64] Compiling TraceInternal_Recording KSCrashDoctor.m
In file included from /host/spi-builder-workspace/TraceInternal/CrashReporting/Recording/KSCrashCachedData.c:26:
In file included from /host/spi-builder-workspace/TraceInternal/CrashReporting/Recording/KSCrashCachedData.h:30:
/host/spi-builder-workspace/TraceInternal/CrashReporting/Recording/Tools/KSThread.h:39:9: error: unknown type name 'uintptr_t'; did you mean '__intptr_t'?
typedef uintptr_t KSThread;
        ^~~~~~~~~
        __intptr_t
/usr/include/x86_64-linux-gnu/bits/types.h:206:25: note: '__intptr_t' declared here
__STD_TYPE __SWORD_TYPE __intptr_t;
                        ^
/host/spi-builder-workspace/TraceInternal/CrashReporting/Recording/KSCrashCachedData.c:31:10: fatal error: 'mach/mach.h' file not found
#include <mach/mach.h>
         ^~~~~~~~~~~~~
[0/64] Compiling TraceInternal_Recording KSCrashCachedData.c
In file included from /host/spi-builder-workspace/TraceInternal/CrashReporting/Recording/KSCrashReport.c:32:
/host/spi-builder-workspace/TraceInternal/CrashReporting/Recording/Tools/KSDynamicLinker.h:116:43: error: unknown type name 'Dl_info'
bool ksdl_dladdr(const uintptr_t address, Dl_info* const info);
                                          ^
[0/64] Compiling TraceInternal_Recording KSCrashReport.c
[0/64] Compiling TraceInternal_Recording KSCrashReportStore.c
/host/spi-builder-workspace/TraceInternal/CrashReporting/Recording/KSCrashReportFixer.c:292:22: error: unknown type name '__unused'
static int onEndData(__unused void* const userData)
                     ^
[0/64] Compiling TraceInternal_Recording KSCrashReportFixer.c
BUILD FAILURE 5.9 linux

Build Machine: Linux 2