Skip to content

[stdlib] Unable to compile for riscv64-unknown-linux-gnu #78349

Open
@colemancda

Description

@colemancda

Description

The Swift Std library fails to compile for RISCV64, with the error /workspaces/buildroot/output/build/swift-6.0.3/include/swift/ABI/Metadata.h:85:50: error: 'swift_context' parameter can only be used with swiftcall or swiftasynccall calling convention

Reproduction

Compile the Swift Std Library for riscv64-unknown-linux-gnu. I have Buildroot scripts setup to cross compile, but it should be reproducible building on host as well.

Expected behavior

The Swift Std library should compile for RISCV64

Environment

Swift version 6.0.3 (swift-6.0.3-RELEASE)
Target: x86_64-unknown-linux-gnu

Additional information

swift-6.0.3-riscv64-compile.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.cross-compilationArea → utils: Cross-compilation of project sourcesplatform supportriscvArchitecture: RISC-Vswift 6.0unexpected errorBug: Unexpected error

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions