Skip to content
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

Compiler segfault when cross-compiling a project for Windows #23

Open
recursiveGecko opened this issue Jul 24, 2023 · 3 comments
Open

Comments

@recursiveGecko
Copy link

Hi,

I'm working on a small project using Raylib.zig and I'm experiencing some issues when I try to cross-compile the project from Linux to x86_64_windows_gnu. I've tried various recent Zig 0.11-dev versions but they all segfault when I try to build the project in any of the Release modes - Debug builds work fine.

Here's the failing GitHub Actions output from the minimal example project I'm trying to build: https://github.com/recursiveGecko/zig-raylib-segfault-repro/actions/runs/5624683409/job/15241992190#step:4:66

I've filed an issue in the Zig repo, but I'd like to know if there's anything I can do in the meantime to work around it?

Any tips, example projects or guides would be really appreciated! Thanks :)

@ryupold
Copy link
Owner

ryupold commented Aug 4, 2023

I encounter the same problem on a Windows machine with my example repo.
Unfortunately I have no idea what causes that error 😅
Thanks for filing an issue in the zig repo. I hope this get fixed soon.
I set a reminder for myself to test this periodically and let you know if it works again.

@rdoetjes
Copy link

Same here on MacOS M1

@ProIcons
Copy link

ProIcons commented Apr 3, 2024

This works only on linux, because it links with LIBC

lib.linkLibC();

Some changes might need to be made to raylib upstream, before this can be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants