Summary: | media-libs/libsdl2-2.0.5 on PPC64 - .../work/SDL2-2.0.5/src/video/SDL_blit_N.c:127:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeroen Roovers (RETIRED) <jer> |
Component: | Current packages | Assignee: | Gentoo Games <games> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | pacho, polynomial-c, ppc64, tsmksubc |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | PPC64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | media-libs:libsdl2-2.0.5:20170205-122041.log |
CC'ing Lars as he bumped it. I can't reproduce it with gcc 5.4.0 though. Something ppc64 specific perhaps? Unfortunately timberdoodle is dead and I'm waiting on others before I can rebuild it. [ebuild N ~] media-libs/libsdl2-2.0.5::gentoo USE="X alsa altivec fusionsound joystick opengl sound threads video (-custom-cflags) -dbus -gles -haptic -nas -oss -pulseaudio -static-libs -tslib -udev -wayland -xinerama -xscreensaver" 0 KiB (In reply to Jeroen Roovers from comment #2) > [ebuild N ~] media-libs/libsdl2-2.0.5::gentoo USE="X alsa altivec > fusionsound joystick opengl sound > threads video (-custom-cflags) -dbus -gles -haptic -nas -oss -pulseaudio > -static-libs -tslib -udev -wayland -xinerama -xscreensaver" 0 KiB Just tried with those flags (except altivec) and still works here. I can't reproduce it either. So I suppose this is a ppc specific issue... Somehow I doubt it's gcc-5 related. (In reply to Lars Wendler (Polynomial-C) from comment #4) > Somehow I doubt it's gcc-5 related. Correct. is this still happening with 2.0.7? |
Created attachment 462526 [details] media-libs:libsdl2-2.0.5:20170205-122041.log CC build/SDL_blit_N.lo /var/tmp/portage/media-libs/libsdl2-2.0.5/work/SDL2-2.0.5/src/video/SDL_blit_N.c: In function ‘calc_swizzle32’: /var/tmp/portage/media-libs/libsdl2-2.0.5/work/SDL2-2.0.5/src/video/SDL_blit_N.c:127:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] const vector unsigned char plus = VECUINT8_LITERAL(0x00, 0x00, 0x00, 0x00, ^