The Swift Package Index logo.Swift Package Index

Build Information

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

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-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.9
Building package at path:  $workDir
https://github.com/open-telemetry/opentelemetry-swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package@swift-5.9.swift:64:69: warning: 'when(platforms:configuration:)' is deprecated
                linkerSettings: [.linkedFramework("CoreTelephony", .when(platforms: [.iOS], configuration: nil))]),
                                                                    ^
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package@swift-5.9.swift:64:69: warning: 'when(platforms:configuration:)' is deprecated
                linkerSettings: [.linkedFramework("CoreTelephony", .when(platforms: [.iOS], configuration: nil))]),
                                                                    ^
Fetching https://github.com/grpc/grpc-swift.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/12224] Fetching swift-nio-ssl
[613/77516] Fetching swift-nio-ssl, swift-nio
[9710/117440] Fetching swift-nio-ssl, swift-nio, grpc-swift
Fetching https://github.com/apple/swift-metrics.git
Fetched https://github.com/apple/swift-nio-ssl.git (5.44s)
Fetched https://github.com/grpc/grpc-swift.git (5.48s)
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetched https://github.com/apple/swift-nio.git (5.53s)
Fetching https://github.com/apple/swift-collections.git
[1/1935] Fetching swift-metrics
Fetched https://github.com/apple/swift-metrics.git (0.32s)
Fetching https://github.com/apple/swift-protobuf.git
[1/2075] Fetching swift-nio-transport-services
[2076/15820] Fetching swift-nio-transport-services, swift-collections
Fetched https://github.com/apple/swift-nio-transport-services.git (0.39s)
Fetching https://github.com/apple/swift-log.git
[1375/13745] Fetching swift-collections
[7424/16918] Fetching swift-collections, swift-log
Fetched https://github.com/apple/swift-log.git (0.38s)
Fetching https://github.com/apple/swift-nio-extras.git
[8660/13745] Fetching swift-collections
[13746/18566] Fetching swift-collections, swift-nio-extras
Fetched https://github.com/apple/swift-nio-extras.git (0.55s)
Fetching https://github.com/apple/swift-atomics.git
Fetched https://github.com/apple/swift-collections.git (1.26s)
Fetching https://github.com/undefinedlabs/opentracing-objc
[1/34625] Fetching swift-protobuf
[2/35133] Fetching swift-protobuf, opentracing-objc
[856/36696] Fetching swift-protobuf, opentracing-objc, swift-atomics
Fetched https://github.com/undefinedlabs/opentracing-objc (1.57s)
Fetching https://github.com/undefinedlabs/Thrift-Swift
Fetched https://github.com/apple/swift-atomics.git (1.57s)
Fetching https://github.com/apple/swift-nio-http2.git
[33240/34625] Fetching swift-protobuf
[34626/35277] Fetching swift-protobuf, thrift-swift
[35278/45457] Fetching swift-protobuf, thrift-swift, swift-nio-http2
Fetched https://github.com/undefinedlabs/Thrift-Swift (3.51s)
Fetched https://github.com/apple/swift-nio-http2.git (3.52s)
Fetched https://github.com/apple/swift-protobuf.git (6.18s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.2.0 (1.39s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.4 (1.24s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.20.2 (0.41s)
Computing version for https://github.com/grpc/grpc-swift.git
Computed https://github.com/grpc/grpc-swift.git at 1.11.0 (0.85s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.43.1 (0.48s)
Computing version for https://github.com/undefinedlabs/Thrift-Swift
Computed https://github.com/undefinedlabs/Thrift-Swift at 1.1.2 (0.41s)
Computing version for https://github.com/undefinedlabs/opentracing-objc
Computed https://github.com/undefinedlabs/opentracing-objc at 0.5.2 (1.32s)
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.47s)
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.46s)
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.44s)
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.41s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.0.3 (0.45s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.0.2 (0.90s)
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/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/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-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/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/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-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.20.2
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/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/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-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-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-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.2.0
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/collector-config.yaml
    /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/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/prometheus.yaml
    /host/spi-builder-workspace/Examples/OTLP Exporter/docker-compose.yaml
    /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/collector-config.yaml
[1/1] Compiling plugin GRPCSwiftPlugin
[2/2] Compiling plugin SwiftProtobufPlugin
Building for debugging...
[2/522] Compiling a_bool.c
[3/522] Compiling a_bitstr.c
[4/522] Compiling cbb.c
[5/522] Compiling a_print.c
[6/522] Compiling _AtomicsShims.c
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.
[7/522] Compiling OTTracer.m
[7/522] Compiling c-nioatomics.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>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
[7/522] Compiling c-atomics.c
[7/522] Compiling OTReference.m
[7/522] Compiling a_d2i_fp.c
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package@swift-5.9.swift:64:69: warning: 'when(platforms:configuration:)' is deprecated
                linkerSettings: [.linkedFramework("CoreTelephony", .when(platforms: [.iOS], configuration: nil))]),
                                                                    ^
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/prometheus-metrics.png
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/docker-compose.yaml
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/collector-config.yaml
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/images/zipkin-spans.png
    /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/prometheus.yaml
    /host/spi-builder-workspace/Examples/OTLP Exporter/collector-config.yaml
    /host/spi-builder-workspace/Examples/OTLP Exporter/docker-compose.yaml
    /host/spi-builder-workspace/Examples/OTLP Exporter/images/zipkin-spans.png
    /host/spi-builder-workspace/Examples/OTLP Exporter/images/prometheus-metrics.png
[0/1] Planning build
[1/1] Compiling plugin GRPCSwiftPlugin
[2/2] Compiling plugin SwiftProtobufPlugin
Building for debugging...
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.
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.
[2/517] Compiling OTReference.m
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.
[2/517] Compiling OTGlobal.m
[2/517] Compiling OTNoop.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.
[2/517] Compiling OTTracer.m
[2/517] Compiling CNIOLinux shim.c
[2/517] Compiling CNIOWindows WSAStartup.c
[2/517] Compiling CNIOWindows shim.c
BUILD FAILURE 5.9 linux

Build Machine: Linux 2