Subject: pkg/23268: devel/SDL breaks with GCC 3.2.2-nb1
To: None <gnats-bugs@gnats.netbsd.org>
From: Gary Duzan <gary@duzan.org>
List: netbsd-bugs
Date: 10/25/2003 12:59:02
>Number: 23268
>Category: pkg
>Synopsis: devel/SDL breaks with GCC 3.2.2-nb1
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Oct 25 17:00:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Gary Duzan
>Release: NetBSD 1.6ZD
>Organization:
None
>Environment:
System: NetBSD capo 1.6ZD NetBSD 1.6ZD (CAPO) #5: Thu Oct 23 22:49:38 EDT 2003 gary@capo:/usr2/src/sys/arch/i386/compile/obj/CAPO i386
Architecture: i386
Machine: i386
>Description:
Under current/i386, with gcc 3.2.2-nb1, when I build devel/SDL
from pkgsrc I get:
===========================================================================
cc -DPACKAGE=\"SDL\" -DVERSION=\"1.2.6\" -DHAVE_ALLOCA=1 -I. -I. -DGLX_GLXEXT_LEGACY -I/usr2/pkgsrc/devel/SDL/work/.buildlink/include -I/usr2/pkgsrc/devel/SDL/work/.buildlink-x11/include -O2 -DGLX_GLXEXT_LEGACY -I/usr2/pkgsrc/devel/SDL/work/.buildlink/include -I/usr2/pkgsrc/devel/SDL/work/.buildlink-x11/include -Wall -DENABLE_DUMMYVIDEO -DDISKAUD_SUPPORT -DUSE_DLOPEN -DUSE_ASMBLIT -I./hermes -I../../src/hermes -DOSS_SUPPORT -I/usr2/pkgsrc/devel/SDL/work/.buildlink-x11/include -DENABLE_X11 -DXTHREADS -I./include -I./src/video -DXFREE86_VM -DXFREE86_VMGAMMA -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE -DXFREE86_XV -DHAVE_XINERAMA -Isrc/video -DENABLE_DGA -DENABLE_AALIB -DHAVE_OPENGL -D_REENTRANT -DSDL_USE_PTHREADS -DPTHREAD_NO_RECURSIVE_MUTEX -DHAVE_USBHID_H -DUSBHID_UCR_DATA -DUSBHID_NEW -DOPENBSD_AUDIO_SUPPORT -Dunix -I../../include -I../../include/SDL -I../../src -I../../src/netbsd -I../../src/main -I../../src/audio -I../../src/video -I../../src/video/XFree86/extensions -I../../src/events -I../../src/joystick -I../../src/cdrom -I../../src/thread -I../../src/timer -I../../src/endian -I../../src/file -c SDL_RLEaccel.c -fPIC -DPIC -o .libs/SDL_RLEaccel.o
SDL_RLEaccel.c: In function `RLEClipBlit':
SDL_RLEaccel.c:845: error: invalid `asm': invalid expression as operand
SDL_RLEaccel.c:845: error: invalid `asm': invalid expression as operand
SDL_RLEaccel.c:845: error: invalid `asm': invalid expression as operand
gmake[3]: *** [SDL_RLEaccel.lo] Error 1
===========================================================================
Removing -O2 or changing it to -O3 allows it to compile normally. -O
generates a similar message, but with only two "invalid `asm'" messages.
>How-To-Repeat:
cd /usr/pkg/devel/SDL ; make
>Fix:
Delivery-Date: Fri Oct 24 06:25:18 2003
Delivery-Date: Fri, 24 Oct 2003 06:24:47 -0400
by wheel.duzan.org (8.11.6p3/8.11.6) with SMTP id h9OAOk611388
for <gary@duzan.org>; Fri, 24 Oct 2003 06:24:46 -0400 (EDT)
(clamscan: 0.60. spamassassin: 2.60. Clear:RC:1:.
Processed in 1.596453 secs); 24 Oct 2003 10:24:44 -0000
by p10089345.pureserver.de with SMTP; 24 Oct 2003 10:24:42 -0000
Date: Fri, 24 Oct 2003 12:24:30 +0200
From: Marc Recht <recht@netbsd.org>
To: gary@duzan.org
cc: tech-toolchain@netbsd.org
Subject: Re: Compiler bug building SDL
Message-ID: <56690000.1066991070@leeloo.intern.geht.de>
In-Reply-To: <20031024100604.GE21993@dmath5.geometrie.tuwien.ac.at>
References: <20031024100604.GE21993@dmath5.geometrie.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature";
boundary="==========B420124A8E38194CEF21=========="
--==========B420124A8E38194CEF21==========
Content-Type: multipart/mixed;
boundary="==========DECAA2E9D8008CC58AFA=========="
--==========DECAA2E9D8008CC58AFA==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
> Removing -O2 or changing it to -O3 allows it to compile normally. -O
> generates a similar message, but with only two "invalid `asm'" messages.
>
> Is this a known problem? Should I send-pr it or report it to the
> gcc folks?
This is a known problem with SDL and gcc >=3D 3.3.1. See the discussion at:
http://www.libsdl.org/pipermail/sdl/2003-September/056163.html
Patches can be found here: (also attached to this mail)
http://www.libsdl.org/pipermail/sdl/2003-September/056168.html
HTH,
Marc
--==========DECAA2E9D8008CC58AFA==========
Content-Type: application/octet-stream; name="constraintfix.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="constraintfix.patch"; size=863
LS0tIG1teC5oLm9sZAkyMDAzLTA5LTAyIDAxOjIzOjUxLjAwMDAwMDAwMCArMDIwMAorKysgbW14
LmgJMjAwMy0wOS0wMiAwMTozMDozOC4wMDAwMDAwMDAgKzAyMDAKQEAgLTM0OCwxNiArMzQ4LDE2
IEBACiAjZGVmaW5lCW1teF9pMnIob3AsIGltbSwgcmVnKSBcCiAJX19hc21fXyBfX3ZvbGF0aWxl
X18gKCNvcCAiICUwLCAlJSIgI3JlZyBcCiAJCQkgICAgICA6IC8qIG5vdGhpbmcgKi8gXAotCQkJ
ICAgICAgOiAiWCIgKGltbSkgKQorCQkJICAgICAgOiAiaSIgKGltbSkgKQogCiAjZGVmaW5lCW1t
eF9tMnIob3AsIG1lbSwgcmVnKSBcCiAJX19hc21fXyBfX3ZvbGF0aWxlX18gKCNvcCAiICUwLCAl
JSIgI3JlZyBcCiAJCQkgICAgICA6IC8qIG5vdGhpbmcgKi8gXAotCQkJICAgICAgOiAiWCIgKG1l
bSkpCisJCQkgICAgICA6ICJtIiAobWVtKSkKIAogI2RlZmluZQltbXhfcjJtKG9wLCByZWcsIG1l
bSkgXAogCV9fYXNtX18gX192b2xhdGlsZV9fICgjb3AgIiAlJSIgI3JlZyAiLCAlMCIgXAotCQkJ
ICAgICAgOiAiPVgiIChtZW0pIFwKKwkJCSAgICAgIDogIj1tIiAobWVtKSBcCiAJCQkgICAgICA6
IC8qIG5vdGhpbmcgKi8gKQogCiAjZGVmaW5lCW1teF9yMnIob3AsIHJlZ3MsIHJlZ2QpIFwKQEAg
LTM2Nyw4ICszNjcsOCBAQAogCV9fYXNtX18gX192b2xhdGlsZV9fICgibW92cSAlMCwgJSVtbTBc
blx0IiBcCiAJCQkgICAgICAjb3AgIiAlMSwgJSVtbTBcblx0IiBcCiAJCQkgICAgICAibW92cSAl
JW1tMCwgJTAiIFwKLQkJCSAgICAgIDogIj1YIiAobWVtZCkgXAotCQkJICAgICAgOiAiWCIgKG1l
bXMpKQorCQkJICAgICAgOiAiPW0iIChtZW1kKSBcCisJCQkgICAgICA6ICJtIiAobWVtcykpCiAK
ICNlbmRpZgo=
--==========DECAA2E9D8008CC58AFA==========
Content-Type: application/octet-stream; name="longlongfix.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="longlongfix.patch"; size=3318
LS0tIFNETF9ibGl0X0EuYy5vbGQJMjAwMy0wOS0wMiAwMToxNzoxOS4wMDAwMDAwMDAgKzAyMDAK
KysrIFNETF9ibGl0X0EuYwkyMDAzLTA5LTAyIDAxOjE0OjAwLjAwMDAwMDAwMCArMDIwMApAQCAt
MjIwLDExICsyMjAsMTEgQEAKIAlpbnQgZHN0c2tpcCA9IGluZm8tPmRfc2tpcCA+PiAyOwogICAg
ICAgICBVaW50OCBsb2FkWzhdOwogICAKLSAgICAgICAgKihVaW50NjQgKilsb2FkID0gMHgwMGZl
ZmVmZTAwZmVmZWZlOy8qIGFscGhhMTI4IG1hc2sgKi8KKyAgICAgICAgKihVaW50NjQgKilsb2Fk
ID0gMHgwMGZlZmVmZTAwZmVmZWZlVUxMOy8qIGFscGhhMTI4IG1hc2sgKi8KICAgICAgICAgbW92
cV9tMnIoKmxvYWQsIG1tNCk7IC8qIGFscG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gdGhlIDU1NSBjb2xvciBjaGFubmVsIG1hc2tzICovCi0JICAgICAg
ICAqKFVpbnQ2NCAqKWxvYWQgPSAweDdDMDA3QzAwN0MwMDdDMDA7CisJICAgICAgICAqKFVpbnQ2
NCAqKWxvYWQgPSAweDdDMDA3QzAwN0MwMDdDMDBVTEw7CiAJCW1vdnFfbTJyKCpsb2FkLCBtbTEp
OyAvKiBNQVNLUkVEIC0+IG1tMSAqLwotCQkqKFVpbnQ2NCAqKWxvYWQgPSAweDAzRTAwM0UwMDNF
MDAzRTA7CisJCSooVWludDY0ICopbG9hZCA9IDB4MDNFMDAzRTAwM0UwMDNFMFVMTDsKIAkJbW92
cV9tMnIoKmxvYWQsIG1tNCk7IC8qIE1BU0tHUkVFTiAtPiBtbTQgKi8KLQkJKihVaW50NjQgKils
b2FkID0gMHgwMDFGMDAxRjAwMUYwMDFGOworCQkqKFVpbnQ2NCAqKWxvYWQgPSAweDAwMUYwMDFG
MDAxRjAwMUZVTEw7CiAJCW1vdnFfbTJyKCpsb2FkLCBtbTcpOyAvKiBNQVNLQkxVRSAtPiBtbTcg
Ki8KIAkJd2hpbGUoaGVpZ2h0LS0pIHsKICAgICAgICAgICAgICAgICAgICAgICAgIERVRkZTX0xP
T1BfUVVBVFJPMigK
--==========DECAA2E9D8008CC58AFA==========--
--==========B420124A8E38194CEF21==========
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; size=186
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
iD8DBQE/mP3p7YQCetAaG3MRAuj8AJ9T57eWXe2+5LWWc3tg7LPB8DyPHACcDDgL
WYFqTUR4cp1/SnsfwhnP9NE=
=HrM5
-----END PGP SIGNATURE-----
--==========B420124A8E38194CEF21==========--
>Release-Note:
>Audit-Trail:
>Unformatted: