Skip to content

cranelift fails to build Bevy 0.13.2 on macOS #1504

Closed
@janhohenheim

Description

@janhohenheim

cargo --version: cargo 1.81.0-nightly (b1feb75d0 2024-06-07)

Cargo.toml
[package]
name = "cranelift-test"
version = "0.1.0"
edition = "2021"

[dependencies]
bevy = "0.13.2"
main.rs
fn main() {
    println!("Hello, world!");
}
~/.cargo/config.toml
[unstable]
codegen-backend = true

[profile.dev]
codegen-backend = "cranelift"

System:
image

Running cargo build results in the following:

error: error writing object file: section name `__cstring,cstring_literals` is too long

error: could not compile `objc2` (lib) due to 1 previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-macosOperating system: MacOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions