http://bugs.winehq.org/show_bug.cgi?id=28981
Bug #: 28981 Summary: powerpc build broken in gdi32/tests/generated.c, tons of "error: size of unnamed array is negative" Product: Wine Version: 1.3.31 Platform: x86 OS/Version: Linux Status: NEW Keywords: download, source Severity: major Priority: P2 Component: gdi32 AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com Classification: Unclassified
Created attachment 37274 --> http://bugs.winehq.org/attachment.cgi?id=37274 build log
Build log attached.
make[1]: Entering directory `/home/austin/wine-git/dlls/gdi32/tests' gcc -c -I. -I. -I../../../include -I../../../include -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -I/usr/include/freetype2 -g -O2 -o generated.o generated.c generated.c: In function 'test_pack_ABORTPROC': generated.c:6645:5: error: size of unnamed array is negative generated.c:6646:5: error: size of unnamed array is negative generated.c: In function 'test_pack_BITMAP': generated.c:6652:5: error: size of unnamed array is negative generated.c:6653:5: error: size of unnamed array is negative generated.c:6672:5: error: size of unnamed array is negative generated.c:6673:5: error: size of unnamed array is negative generated.c:6674:5: error: size of unnamed array is negative
684 total
http://bugs.winehq.org/show_bug.cgi?id=28981
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|x86 |ppc32
http://bugs.winehq.org/show_bug.cgi?id=28981
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |25744
http://bugs.winehq.org/show_bug.cgi?id=28981
--- Comment #1 from Austin English austinenglish@gmail.com 2011-11-03 15:27:23 CDT --- A compiler bug, I filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50987.
I'd like to leave this bug open until the gcc bug is fixed, after that I'll close this as invalid.
http://bugs.winehq.org/show_bug.cgi?id=28981
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh@gmail.com See Also| |http://gcc.gnu.org/bugzilla | |/show_bug.cgi?id=50987
http://bugs.winehq.org/show_bug.cgi?id=28981
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID
--- Comment #2 from Jerome Leclanche adys.wh@gmail.com 2011-11-04 07:19:14 CDT --- Pebkac according to gcc ;)
http://bugs.winehq.org/show_bug.cgi?id=28981
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Jerome Leclanche adys.wh@gmail.com 2011-11-04 07:19:27 CDT --- Closing
http://bugs.winehq.org/show_bug.cgi?id=28981
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|gdi32 |-unknown
http://bugs.winehq.org/show_bug.cgi?id=28981
--- Comment #4 from André H. nerv@dawncrow.de 2011-11-04 11:46:51 CDT --- Created attachment 37300 --> http://bugs.winehq.org/attachment.cgi?id=37300 -m32 on powerpc64
@Austin: Maybe something like that could help? (If so, then for sparc64 too...?)
http://bugs.winehq.org/show_bug.cgi?id=28981
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|INVALID |
--- Comment #5 from Austin English austinenglish@gmail.com 2011-11-04 12:03:20 CDT --- (In reply to comment #4)
Created attachment 37300 [details] -m32 on powerpc64
@Austin: Maybe something like that could help? (If so, then for sparc64 too...?)
@Andre, I tried that already, needs some 32-bit development libraries that I'm getting Laurent to install.
According to AJ, we need to define _WIN64 on 64-bit archs. I've got a patch for that, but needs more work, since build fails on 64-bit RPC stuff.
http://bugs.winehq.org/show_bug.cgi?id=28981
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
--- Comment #6 from André H. nerv@dawncrow.de 2011-11-28 11:05:04 CST --- isn't that fixed?
http://bugs.winehq.org/show_bug.cgi?id=28981
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |d67275fed84e74072d202fc98c2 | |05f40c6d18b63 Status|REOPENED |RESOLVED Resolution| |FIXED
--- Comment #7 from André H. nerv@dawncrow.de 2011-11-29 09:06:01 CST --- (In reply to comment #5)
According to AJ, we need to define _WIN64 on 64-bit archs. I've got a patch for that, but needs more work, since build fails on 64-bit RPC stuff.
d67275fed84e74072d202fc98c205f40c6d18b63 is in, but it needs much more work to get sparc64/powerpc64 to work. i doubt that we want that. Debian/sparc64 has a 32-bit userland anyway and you need -m64 to tell gcc you don't want to compile for 32-bit. i'm not sure about powerpc64, but as you ran accidently into that bug i guess it has a 64-bit userland.
http://bugs.winehq.org/show_bug.cgi?id=28981
--- Comment #8 from Austin English austinenglish@gmail.com 2011-11-29 12:23:35 CST --- (In reply to comment #7)
(In reply to comment #5)
According to AJ, we need to define _WIN64 on 64-bit archs. I've got a patch for that, but needs more work, since build fails on 64-bit RPC stuff.
d67275fed84e74072d202fc98c205f40c6d18b63 is in, but it needs much more work to get sparc64/powerpc64 to work. i doubt that we want that. Debian/sparc64 has a 32-bit userland anyway and you need -m64 to tell gcc you don't want to compile for 32-bit. i'm not sure about powerpc64, but as you ran accidently into that bug i guess it has a 64-bit userland.
PowerPC has a 64-bit userland, yeah (or at least that gcc farm machine does).
http://bugs.winehq.org/show_bug.cgi?id=28981
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2011-12-02 13:33:50 CST --- Closing bugs fixed in 1.3.34.