Skip to content

swift-foundation fails to build for Android with 4/1 nightly toolchain #88282

@jmschonfeld

Description

@jmschonfeld

Description

After the 4/1 nightly toolchain became available, swift-foundation is failing to build in CI

Reproduction

See CI run at https://github.com/swiftlang/swift-foundation/actions/runs/23912627888/job/69738273903?pr=1871

/usr/local/lib/android/sdk/ndk/29.0.14206865/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/cstdlib:93:5: error: <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   93 | #   error <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. \
      |     ^

Expected behavior

Build succeeds like normal

Environment

Swift version 6.4-dev (LLVM b8889af02f47cf7, Swift cf7481b)

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    AndroidPlatform: AndroidFoundationbuildbuild errorErrors when building the toolchain, not regular Swift codecross-compilationArea → utils: Cross-compilation of project sources

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions