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

Issue setting up on Windows following setup page #305

Open
ReallySnazzy opened this issue Sep 7, 2023 · 2 comments
Open

Issue setting up on Windows following setup page #305

ReallySnazzy opened this issue Sep 7, 2023 · 2 comments

Comments

@ReallySnazzy
Copy link

ReallySnazzy commented Sep 7, 2023

I tried following setup instructions listed here
https://github.com/fjvallarino/monomer/blob/main/docs/tutorials/00-setup.md

I'm able to run all the steps listed under Windows, but when I try running stack build afterwards compilation stops with this error:

sdl2           > C://Users//username//AppData//Local//Programs//stack//x86_64-windows//ghc-9.2.5//mingw//bin/ld.exe: C:\Users\username\AppData\Local\Programs\stack\x86_64-windows\msys2-20230526\mingw64\lib/libSDL2main.a(SDL_windows_main.c.obj):(.rdata$.refptr.__stack_chk_guard[.refptr.__stack_chk_guard]+0x0): undefined reference to `__stack_chk_guard'
sdl2           > collect2.exe: error: ld returned 1 exit status
sdl2           >
@ReallySnazzy
Copy link
Author

Seems like issue with the sdl package
haskell-game/sdl2#277

@coz-eduardo-hernandez
Copy link

Seems like issue with the sdl package haskell-game/sdl2#277
Instead of the "undefined reference to __stack_chk_guard" error I got:

commitAndReleaseBuffer: invalid argument (cannot encode character '\65533')

It was fixed with the workaround suggested at that link

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

No branches or pull requests

2 participants