[Bug 16861] New: ntdll/tests: size of array is negative
http://bugs.winehq.org/show_bug.cgi?id=16861 Summary: ntdll/tests: size of array is negative Product: Wine Version: 1.1.12 Platform: Macintosh OS/Version: Linux Status: NEW Keywords: source, testcase Severity: normal Priority: P2 Component: build-env AssignedTo: wine-bugs(a)winehq.org ReportedBy: austinenglish(a)gmail.com ccache gcc -c -I. -I. -I../../../include -I../../../include -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith -g -O2 -o generated.o generated.c generated.c: In function ‘test_pack_CCHAR’: generated.c:388: error: size of array ‘__C_ASSERT__’ is negative generated.c: In function ‘test_pack_CHAR’: generated.c:396: error: size of array ‘__C_ASSERT__’ is negative make[2]: *** [generated.o] Error 1 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=16861 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |critical --- Comment #1 from Austin English <austinenglish(a)gmail.com> 2009-08-30 15:16:22 --- Still present, and breaks build. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=16861 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Platform|Macintosh |ppc32 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=16861 Andrey Turkin <andrey.turkin(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrey.turkin(a)gmail.com --- Comment #2 from Andrey Turkin <andrey.turkin(a)gmail.com> 2010-07-04 14:57:01 --- This is failed static assertion on CHAR and CCHAR type being signed types. There are several possible ways to fix this: 1) either remove sign checks (by modifying tools/winapi/... to generate different code) - but maybe those must be signed for some reason 2) or make sure include/winnt.h defines CHAR and CCHAR as "signed char", contrary to default "char" in PSDK You can probably work this one with "./configure CFLAGS=-signed-char" to force compiler make chars signed by default. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=16861 --- Comment #3 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2010-07-05 00:26:37 --- If default 'char' type is unsigned under ppc32 then this is a compiler bug. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=16861 --- Comment #4 from Andrey Turkin <andrey.turkin(a)gmail.com> 2010-07-31 17:52:07 ---
If default 'char' type is unsigned under ppc32 then this is a compiler bug.
ISO/IEC 9899:1999, 6.2.5.15: "The three types char, signed char, and unsigned char are collectively called the character types. The implementation shall define char to have the same range, representation, and behavior as either signed char or unsigned char." char is explicitly permitted to be unsigned, and IIRC MSVC compiler has an option to treat char as unsigned. CHAR and CCHAR should be compatible with "char", and any Wine code which depends on signedness of any of these types should be fixed anyway. I vote to remove signedness checks for these two. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=16861 --- Comment #5 from Alexandre Julliard <julliard(a)winehq.org> 2010-08-01 02:25:53 --- Yes, the check doesn't make sense and should be removed. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=16861 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Austin English <austinenglish(a)gmail.com> 2010-12-02 16:13:10 CST --- Fixed by http://source.winehq.org/git/wine.git/?a=commitdiff;h=fc4d5393a5c589b7a509c8... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=16861 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #7 from Alexandre Julliard <julliard(a)winehq.org> 2010-12-10 13:45:34 CST --- Closing bugs fixed in 1.3.9. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org