Xserver/fb not compilable with gcc-4

Javier Marcet javier-ml-xorg at marcet.info
Thu Apr 21 11:40:19 PDT 2005


Hi guys,
I was compiling xorg 6.8.99.3 with gcc-4 and found a blocker on fbmmx.c

At first try I had applied the patches which were included in the
'render optimization' thread. but backing them didn't change anything.
The thing is that I really don't understand what the error given by gcc
is:

making all in programs/Xserver/fb...
make[5]: Entering directory `/usr/src/portage/xorg-x11-6.8.99.3/work/xc/programs/Xserver/fb'
i686-pc-linux-gnu-gcc -c -march=athlon-xp -O2 -pipe -ansi -pedantic -Wno-return-type -w  -fPIC  -I../../../programs/Xserver/fb -I../../../programs/Xserver/mi -I../../../programs/Xserver/include 	      -I../../../exports/include/X11 	      -I../../../include/fonts -I../../../programs/Xserver/hw/xfree86/common  	      -I../../../programs/Xserver/render -I../../../include/extensions -I../../../programs/Xserver/Xext  -I../../.. -I../../../exports/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE 				 -D_GNU_SOURCE 				 -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP 	-DXCSECURITY -DTOGCUP  	-DXF86BIGFONT -DDPMSExtension 	 -DPIXPRIV -DPANORAMIX 	 -DRENDER -DRANDR 	-DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE 	 -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH 				-DXFreeXDGA -DXvExtension 				-DXFree86LOADER -DDLOPEN_HACK -DXFree86Server 				-DXF86VIDMODE 				-DXvMCExtension 				-DSMART_SCHEDULE 				 -DXResExtension 				-DX_BYTE_ORDER=X_LITTLE_ENDIAN 				-DXORG_VERSION_CURRENT="(((6) * 10000000) + ((8) * 100000) + ((99) * 1000) + 3)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module   -mmmx -Winline --param inline-unit-growth=10000 	--param large-function-growth=10000 -DUSE_MMX fbpict.c
rm -f fbmmx.o
i686-pc-linux-gnu-gcc -c -march=athlon-xp -O2 -pipe -ansi -pedantic -Wno-return-type -w  -fPIC  -I../../../programs/Xserver/fb -I../../../programs/Xserver/mi -I../../../programs/Xserver/include 	      -I../../../exports/include/X11 	      -I../../../include/fonts -I../../../programs/Xserver/hw/xfree86/common  	      -I../../../programs/Xserver/render -I../../../include/extensions -I../../../programs/Xserver/Xext  -I../../.. -I../../../exports/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L 				-D_POSIX_SOURCE -D_XOPEN_SOURCE 				-D_BSD_SOURCE -D_SVID_SOURCE 				 -D_GNU_SOURCE 				 -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP 	-DXCSECURITY -DTOGCUP  	-DXF86BIGFONT -DDPMSExtension 	 -DPIXPRIV -DPANORAMIX 	 -DRENDER -DRANDR 	-DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE 	 -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH 				-DXFreeXDGA -DXvExtension 				-DXFree86LOADER -DDLOPEN_HACK -DXFree86Server 				-DXF86VIDMODE 				-DXvMCExtension 				-DSMART_SCHEDULE 				 -DXResExtension 				-DX_BYTE_ORDER=X_LITTLE_ENDIAN 				-DXORG_VERSION_CURRENT="(((6) * 10000000) + ((8) * 100000) + ((99) * 1000) + 3)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module   -mmmx -Winline --param inline-unit-growth=10000 	--param large-function-growth=10000 -DUSE_MMX fbmmx.c
fbmmx.c: In function 'fbCompositeSolid_nx8888mmx':
fbmmx.c:374: error: syntax error before 'CARD32'
fbmmx.c: In function 'fbCompositeSolid_nx0565mmx':
fbmmx.c:453: error: syntax error before 'CARD16'
fbmmx.c: In function 'fbCompositeSolidMask_nx8888x8888Cmmx':
fbmmx.c:539: error: syntax error before 'CARD32'
fbmmx.c:540: error: syntax error before 'CARD32'
fbmmx.c: In function 'fbCompositeSrc_8888x8x8888mmx':
fbmmx.c:639: error: syntax error before 'CARD32'
fbmmx.c:640: error: syntax error before 'CARD32'
fbmmx.c:641: error: syntax error before 'CARD8'
fbmmx.c: In function 'fbCompositeSrc_x888x8x8888mmx':
fbmmx.c:724: error: syntax error before 'CARD32'
fbmmx.c:725: error: syntax error before 'CARD32'
fbmmx.c:726: error: syntax error before 'CARD8'
fbmmx.c: In function 'fbCompositeSolidMask_nx8x8888mmx':
fbmmx.c:866: error: syntax error before 'CARD32'
fbmmx.c:867: error: syntax error before 'CARD8'
fbmmx.c: In function 'fbCompositeSolidMaskSrc_nx8x8888mmx':
fbmmx.c:984: error: syntax error before 'CARD32'
fbmmx.c:985: error: syntax error before 'CARD8'
fbmmx.c: In function 'fbCompositeSolidMask_nx8x0565mmx':
fbmmx.c:1098: error: syntax error before 'CARD16'
fbmmx.c:1099: error: syntax error before 'CARD8'
fbmmx.c: In function 'fbCompositeSrc_8888RevNPx0565mmx':
fbmmx.c:1218: error: syntax error before 'CARD16'
fbmmx.c:1219: error: syntax error before 'CARD32'
fbmmx.c: In function 'fbCompositeSrc_8888RevNPx8888mmx':
fbmmx.c:1336: error: syntax error before 'CARD32'
fbmmx.c:1337: error: syntax error before 'CARD32'
fbmmx.c: In function 'fbCompositeSolidMask_nx8888x0565Cmmx':
fbmmx.c:1439: error: syntax error before 'CARD16'
fbmmx.c:1440: error: syntax error before 'CARD32'
fbmmx.c: In function 'fbCompositeSrcAdd_8000x8000mmx':
fbmmx.c:1541: error: syntax error before 'CARD8'
fbmmx.c:1542: error: syntax error before 'CARD8'
fbmmx.c: In function 'fbCompositeSrcAdd_8888x8888mmx':
fbmmx.c:1611: error: syntax error before 'CARD32'
fbmmx.c:1612: error: syntax error before 'CARD32'
make[5]: *** [fbmmx.o] Error 1
make[5]: Leaving directory `/usr/src/portage/xorg-x11-6.8.99.3/work/xc/programs/Xserver/fb'
make[4]: *** [fb] Error 2
make[4]: Leaving directory `/usr/src/portage/xorg-x11-6.8.99.3/work/xc/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/portage/xorg-x11-6.8.99.3/work/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/portage/xorg-x11-6.8.99.3/work/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/usr/src/portage/xorg-x11-6.8.99.3/work/xc'
make: *** [World] Error 2

!!! ERROR: x11-base/xorg-x11-6.8.99.3 failed.
!!! Function build, Line 969, Exitcode 2
!!! make World failed
!!! If you need support, post the topmost build error, NOT this status message.

I even tried to compile only Xserver/fb with gcc-3.4.3 and I got the
same error, hence I guess the error might come from somewhere else
rather than fbmmx.c itself...

Any help would be appreciated :)

P.S. Is there any progress on getting render acceleration in the open
source radeon driver? (for older Radeon cards, like 9000/9200 at least)


-- 
I have not yet begun to byte!

Javier Marcet <javier at marcet.info>



More information about the xorg mailing list