Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nixon-voxell opened this issue Sep 20, 2024 · 5 comments
Closed

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

nixon-voxell opened this issue Sep 20, 2024 · 5 comments
Labels
C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled

Comments

@nixon-voxell
Copy link

nixon-voxell commented Sep 20, 2024

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...
@nixon-voxell nixon-voxell added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Sep 20, 2024
@akimakinai
Copy link
Contributor

#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
Copy link
Author

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.

@mockersf
Copy link
Member

while ideally it should work, enabling dynamic linking in CI can only lead to problems...

@nixon-voxell
Copy link
Author

I see. I have turned it off for now in my CI. (Tho the original CI from TheBevyFlock/bevy_quickstart enables it). Turning defaul features off makes the CI test works for now.

@BenjaminBrienen
Copy link
Contributor

Closing as duplicate of #14117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled
Projects
None yet
Development

No branches or pull requests

4 participants