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

sdl2-2.5.3.1 fails in the Stackage Nightly build (needs SDL 2.0.10 or later) #240

Closed
juhp opened this issue Jan 13, 2022 · 8 comments
Closed

Comments

@juhp
Copy link

juhp commented Jan 13, 2022

Not sure what is going wrong but reporting this here:

error: In file included from .stack-work/dist/x86_64-linux/Cabal-3.4.1.0/build/SDL/Raw/Types_hsc_make.c:1:0:            [46/175805]
Types.hsc: In function ‘main’:                                                                                                     /var/stackage/work/unpack-dir/unpacked/sdl2-2.5.3.1-8b51fd21813b3f15ebf6a1373febe46b27f69d24304fffddbffffb8b3cbfde72/Types.hsc:1343
:15: error: ‘SDL_FPoint’ undeclared (first use in this function); did you mean ‘SDL_Point’?                                        /home/stackage/.stack/programs/x86_64-linux/ghc-9.0.2/lib/ghc-9.0.2/template-hsc.h:96:39: note: in definition of macro ‘hsc_size’  
     hsc_printf("(%ld)", (long) sizeof(t));                                                                                        
                                       ^                                                                                           /var/stackage/work/unpack-dir/unpacked/sdl2-2.5.3.1-8b51fd21813b3f15ebf6a1373febe46b27f69d24304fffddbffffb8b3cbfde72/Types.hsc:1343
:15: note: each undeclared identifier is reported only once for each function it appears in                                        
/home/stackage/.stack/programs/x86_64-linux/ghc-9.0.2/lib/ghc-9.0.2/template-hsc.h:96:39: note: in definition of macro ‘hsc_size’  
     hsc_printf("(%ld)", (long) sizeof(t));                                                                                        
                                       ^                                                                                           
In file included from /usr/include/wchar.h:35:0,
                 from /usr/include/SDL2/SDL_stdinc.h:66,
                 from /usr/include/SDL2/SDL_main.h:25,
                 from /usr/include/SDL2/SDL.h:32,
                 from Types.hsc:78:
/var/stackage/work/unpack-dir/unpacked/sdl2-2.5.3.1-8b51fd21813b3f15ebf6a1373febe46b27f69d24304fffddbffffb8b3cbfde72/Types.hsc:1346
:15: error: expected specifier-qualifier-list before ‘SDL_FPoint’
/var/stackage/work/unpack-dir/unpacked/sdl2-2.5.3.1-8b51fd21813b3f15ebf6a1373febe46b27f69d24304fffddbffffb8b3cbfde72/Types.hsc:1346
:5: note: in expansion of macro ‘hsc_peek’
/var/stackage/work/unpack-dir/unpacked/sdl2-2.5.3.1-8b51fd21813b3f15ebf6a1373febe46b27f69d24304fffddbffffb8b3cbfde72/Types.hsc:1347
:15: error: expected specifier-qualifier-list before ‘SDL_FPoint’
/var/stackage/work/unpack-dir/unpacked/sdl2-2.5.3.1-8b51fd21813b3f15ebf6a1373febe46b27f69d24304fffddbffffb8b3cbfde72/Types.hsc:1347
:5: note: in expansion of macro ‘hsc_peek’

You can try building with stack --resolver nightly build.

juhp added a commit to commercialhaskell/stackage that referenced this issue Jan 13, 2022
@juhp
Copy link
Author

juhp commented Jan 13, 2022

This seems to be a regression or change compared to sdl2-2.5.3.0, which builds fine with ghc-9.0.2.
(It is possible though that our Ubuntu 18.04 SDL2 is too old perhaps, dunno)

@nxths
Copy link
Contributor

nxths commented Jan 13, 2022

The build needs SDL 2.0.10 or later now due to #228

@juhp juhp changed the title build failed in the Stackage Nightly build sdl2-2.5.3.1 fails in the Stackage Nightly build Jan 13, 2022
@juhp
Copy link
Author

juhp commented Jan 13, 2022

Ah I see, then it may be bounded until we upgrade our build container to Ubuntu 20.04 I guess, sorry about that

@dpwiz
Copy link
Member

dpwiz commented Jan 20, 2022

Same things happens on Hackage builder.

I'm afraid more recent features should be put under a flag. LTS-18 is not that old.

@juhp juhp changed the title sdl2-2.5.3.1 fails in the Stackage Nightly build sdl2-2.5.3.1 fails in the Stackage Nightly build (needs SDL 2.0.10 or later) Jan 23, 2022
dpwiz added a commit to dpwiz/sdl2 that referenced this issue Mar 10, 2022
dpwiz added a commit to dpwiz/sdl2 that referenced this issue Mar 10, 2022
dpwiz added a commit to dpwiz/sdl2 that referenced this issue Mar 10, 2022
@dpwiz
Copy link
Member

dpwiz commented Mar 19, 2022

2.5.3.2 had a successful build. I marked 2.5.3.1 as deprecated.

@bergmark
Copy link

Looks good, we still have an old libsdl2-dev in stackage but i found the recent-ish which works with the old version

@dpwiz
Copy link
Member

dpwiz commented Mar 20, 2022

I set the flag to auto. Cabal promises to flip it when it would help with the build. Looks like it is working (:

@juhp
Copy link
Author

juhp commented Mar 22, 2022

Thanks, probably this could be closed then :)

@juhp juhp closed this as completed Mar 22, 2022
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

4 participants