Skip to content

Unable to build using the Static Linux SDK #2150

Description

@tachyonics

Describe the bug

The aws sdk for swift should be able to compile using the Static Linux SDK.

Expected Behavior

The package compiles.

Current Behavior

/workspace/.build/checkouts/aws-crt-swift/aws-common-runtime/aws-c-common/source/posix/system_info.c:192:14: fatal error: 'execinfo.h' file not found
42.17   192 | #    include <execinfo.h>
42.17       |              ^~~~~~~~~~~~
42.17 1 error generated.

Reproduction Steps

DockerFile-

FROM swift:6.3.0-noble AS toolchain

RUN swift sdk install \
    https://download.swift.org/swift-6.3-release/static-sdk/swift-6.3-RELEASE/swift-6.3-RELEASE_static-linux-0.1.0.artifactbundle.tar.gz \
    --checksum d2078b69bdeb5c31202c10e9d8a11d6f66f82938b51a4b75f032ccb35c4c286c

WORKDIR /workspace

FROM toolchain AS build

COPY . .

RUN --mount=type=cache,target=/workspace/.build \
    swift build -c release --swift-sdk aarch64-swift-linux-musl

Run from source root - docker build -t sdk .

Possible Solution

No response

Additional Information/Context

No response

AWS SWIFT SDK version used

main source

Compiler and Version used

Swift 6.3

Operating System and version

Ubuntu noble

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions