The Swift Package Index logo.Swift Package Index

Build Information

Failed to build opentelemetry-swift with Swift 5.7 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.34.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/open-telemetry/opentelemetry-swift.git
Reference: 1.9.2
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/open-telemetry/opentelemetry-swift
 * tag               1.9.2      -> FETCH_HEAD
HEAD is now at 4eb75bc Update version to 1.9.2 (#531)
Cloned https://github.com/open-telemetry/opentelemetry-swift.git
Revision (git rev-parse @):
4eb75bc8f0d6449bc197637b5c6044b51ab8c4ed
SUCCESS checkout https://github.com/open-telemetry/opentelemetry-swift.git at 1.9.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.7
Building package at path:  $workDir
https://github.com/open-telemetry/opentelemetry-swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/undefinedlabs/Thrift-Swift
Fetching https://github.com/grpc/grpc-swift.git
[1/652] Fetching thrift-swift
[653/5473] Fetching thrift-swift, swift-nio-extras
[5474/45397] Fetching thrift-swift, swift-nio-extras, grpc-swift
Fetched https://github.com/apple/swift-nio-extras.git (1.91s)
Fetched https://github.com/undefinedlabs/Thrift-Swift (1.91s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-nio.git
Fetched https://github.com/grpc/grpc-swift.git (1.94s)
Fetching https://github.com/apple/swift-nio-http2.git
[1/1563] Fetching swift-atomics
[1564/11743] Fetching swift-atomics, swift-nio-http2
Fetched https://github.com/apple/swift-atomics.git (0.40s)
Fetching https://github.com/apple/swift-collections.git
[1527/10180] Fetching swift-nio-http2
[1630/75472] Fetching swift-nio-http2, swift-nio
[23893/89217] Fetching swift-nio-http2, swift-nio, swift-collections
Fetched https://github.com/apple/swift-nio-http2.git (1.17s)
Fetching https://github.com/undefinedlabs/opentracing-objc
[43987/79037] Fetching swift-nio, swift-collections
[51307/79545] Fetching swift-nio, swift-collections, opentracing-objc
Fetched https://github.com/undefinedlabs/opentracing-objc (0.23s)
Fetching https://github.com/apple/swift-log.git
[52921/79037] Fetching swift-nio, swift-collections
Fetched https://github.com/apple/swift-collections.git (1.36s)
Fetching https://github.com/apple/swift-nio-ssl.git
[43747/68465] Fetching swift-nio, swift-log
Fetched https://github.com/apple/swift-log.git (0.49s)
Fetching https://github.com/apple/swift-metrics.git
[47011/65292] Fetching swift-nio
[49623/67227] Fetching swift-nio, swift-metrics
[52211/79451] Fetching swift-nio, swift-metrics, swift-nio-ssl
Fetched https://github.com/apple/swift-metrics.git (0.33s)
Fetching https://github.com/apple/swift-protobuf.git
[55374/77516] Fetching swift-nio, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-ssl.git (1.79s)
Fetching https://github.com/apple/swift-nio-transport-services.git
[1/34625] Fetching swift-protobuf
[2/36700] Fetching swift-protobuf, swift-nio-transport-services
Fetched https://github.com/apple/swift-nio-transport-services.git (0.40s)
Fetching https://github.com/ashleymills/Reachability.swift
[2770/34625] Fetching swift-protobuf
[5888/36492] Fetching swift-protobuf, reachability.swift
Fetched https://github.com/ashleymills/Reachability.swift (0.34s)
[8310/34625] Fetching swift-protobuf
Fetched https://github.com/apple/swift-nio.git (5.21s)
Fetched https://github.com/apple/swift-protobuf.git (5.68s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.2.0 (1.08s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.4 (0.34s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.20.2 (0.34s)
Computing version for https://github.com/grpc/grpc-swift.git
Computed https://github.com/grpc/grpc-swift.git at 1.11.0 (0.58s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.43.1 (0.47s)
Computing version for https://github.com/undefinedlabs/Thrift-Swift
Computed https://github.com/undefinedlabs/Thrift-Swift at 1.1.2 (0.31s)
Computing version for https://github.com/undefinedlabs/opentracing-objc
Computed https://github.com/undefinedlabs/opentracing-objc at 0.5.2 (3.29s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.16.1 (0.39s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.19.1 (0.66s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.11.3 (0.36s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.23.0 (0.61s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.0.3 (0.72s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.0.2 (0.40s)
Computing version for https://github.com/ashleymills/Reachability.swift
Computed https://github.com/ashleymills/Reachability.swift at 5.2.1 (0.36s)
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.23.0
Creating working copy for https://github.com/undefinedlabs/Thrift-Swift
Working copy of https://github.com/undefinedlabs/Thrift-Swift resolved at 1.1.2
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.16.1
Creating working copy for https://github.com/grpc/grpc-swift.git
Working copy of https://github.com/grpc/grpc-swift.git resolved at 1.11.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.0.2
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.11.3
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.19.1
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.43.1
Creating working copy for https://github.com/ashleymills/Reachability.swift
Working copy of https://github.com/ashleymills/Reachability.swift resolved at 5.2.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.4
Creating working copy for https://github.com/undefinedlabs/opentracing-objc
Working copy of https://github.com/undefinedlabs/opentracing-objc resolved at 0.5.2
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.2.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.20.2
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Exporters/Persistence/README.md
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/prometheus.yaml
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/images/prometheus-metrics.png
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/collector-config.yaml
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/docker-compose.yaml
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/images/zipkin-spans.png
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/OTLP Exporter/images/prometheus-metrics.png
    /host/spi-builder-workspace/Examples/OTLP Exporter/images/zipkin-spans.png
    /host/spi-builder-workspace/Examples/OTLP Exporter/prometheus.yaml
    /host/spi-builder-workspace/Examples/OTLP Exporter/docker-compose.yaml
    /host/spi-builder-workspace/Examples/OTLP Exporter/collector-config.yaml
Compiling plugin GRPCSwiftPlugin...
Compiling plugin SwiftProtobufPlugin...
Building for debugging...
[0/522] Compiling _AtomicsShims.c
[1/522] Copying PrivacyInfo.xcprivacy
In file included from /host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTTracer.m:1:
/host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTTracer.h:1:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[2/522] Compiling OTTracer.m
[2/522] Compiling ber.c
[2/522] Compiling a_dup.c
[2/522] Compiling a_d2i_fp.c
[2/522] Compiling a_bitstr.c
[2/522] Compiling CGRPCZlib empty.c
[2/522] Compiling c-atomics.c
In file included from [2/522] Compiling OTReference.m
[2/522] Compiling a_bool.c
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Exporters/Persistence/README.md
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/images/zipkin-spans.png
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/docker-compose.yaml
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/images/prometheus-metrics.png
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/collector-config.yaml
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/prometheus.yaml
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/OTLP Exporter/images/zipkin-spans.png
    /host/spi-builder-workspace/Examples/OTLP Exporter/images/prometheus-metrics.png
    /host/spi-builder-workspace/Examples/OTLP Exporter/docker-compose.yaml
    /host/spi-builder-workspace/Examples/OTLP Exporter/prometheus.yaml
    /host/spi-builder-workspace/Examples/OTLP Exporter/collector-config.yaml
[0/1] Planning build
Compiling plugin GRPCSwiftPlugin...
Compiling plugin SwiftProtobufPlugin...
Building for debugging...
[0/520] Compiling CNIOWindows WSAStartup.c
In file included from /host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTReference.m:1:
/host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTReference.h:1:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1/520] Compiling OTReference.m
In file included from /host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTNoop.m:1:
/host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTNoop.h:1:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1/520] Compiling OTNoop.m
[1/520] Compiling CNIOLinux liburing_shims.c
[1/520] Compiling CNIOWindows shim.c
In file included from /host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTGlobal.m:1:
/host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTGlobal.h:1:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1/520] Compiling OTGlobal.m
In file included from /host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTTracer.m:1:
/host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTTracer.h:1:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1/520] Compiling OTTracer.m
[1/520] Compiling CNIOLinux shim.c
BUILD FAILURE 5.7 linux

Build Machine: Linux 2