bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
35.22k stars 3.47k forks source link

error: linking with `cc` failed: exit status: 1 #15334

Open nixon-voxell opened 2 hours ago

nixon-voxell commented 2 hours ago

Bevy version

0.14.2

What you did

Describe how you arrived at the problem. If you can, consider providing a code snippet or link.

GitHub action failed on bevy_dylib https://github.com/nixon-voxell/lumina/actions/runs/10958198016/job/30427921562

What went wrong

error: linking with `cc` failed: exit status: 1

  = note: /usr/bin/ld: __rust_realloc: undefined version: 
          /usr/bin/ld: __rust_no_alloc_shim_is_unstable: undefined version: 
          /usr/bin/ld: __rust_dealloc: undefined version: 
          /usr/bin/ld: __rust_alloc_zeroed: undefined version: 
          /usr/bin/ld: __rust_alloc_error_handler_should_panic: undefined version: 
          /usr/bin/ld: __rust_alloc_error_handler: undefined version: 
          /usr/bin/ld: __rust_alloc: undefined version: 
          /usr/bin/ld: failed to set dynamic section sizes: bad value
          collect2: error: ld returned 1 exit status

error: could not compile `bevy_dylib` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
akimakinai commented 2 hours ago

https://github.com/bevyengine/bevy/issues/14117 could be culprit here, as zune-jpeg is compiled in (not via jpeg feature of bevy, but typst crate seems to enable jpeg feature of image crate)

nixon-voxell commented 2 hours ago

I see, the weird thing is that it works on windows on my machine, it just fails on github actions, which makes it hard to troubleshoot.