Xserver tree and AMD64

Jan Kreuzer kontrollator at gmx.de
Fri Jan 28 05:42:22 PST 2005


Hi

I wanted to try the Xglx server of the standalone Xserver tree.
My System is an DebianPure64 with Xorg-packages from Ubuntu.
I followed the instructions from this page
http://freedesktop.org/wiki/Software_2fXserver_2fInstallGuide
In the first run the script failed when compiling the xserver:

make[1]: Entering directory `/usr/local/src/xgl/xserver/fb'
if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../mi -I../Xext
-I../render -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations         -Wnested-externs
-fno-strict-aliasing -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-I/opt/fdo/include -I/opt/fdo/include/X11/fonts
-I/opt/fdo/include/X11/Xtrans   -D_BSD_SOURCE -I../include -I../Xext
-g -O2 -MT fb24_32.o -MD -MP -MF ".deps/fb24_32.Tpo" -c -o fb24_32.o
fb24_32.c; \
then mv -f ".deps/fb24_32.Tpo" ".deps/fb24_32.Po"; else rm -f
".deps/fb24_32.Tpo"; exit 1; fi
In file included from fb24_32.c:34:
fb.h:66:2: #error "GLYPHPADBYTES must be 4"
fb.h:69:2: #error "GETLEFTBITS_ALIGNMENT must be 1"
make[1]: *** [fb24_32.o] Error 1
make[1]: Leaving directory `/usr/local/src/xgl/xserver/fb'
make: *** [all-recursive] Error 1

By looking at the source i found out, that GLYPHADBYTES and others get
defined when __AMD64__ is defined, so i added CFLAGS="-D__AMD64__" to
the build-script and rerun it. Now everything compiled ok. However when
i try to start the Xglx server (and the Xnest server) and try to attach
an application to it (eg simple xterm) i get the following error:

with fglrx:

/opt/fdo/bin/Xglx -ac -display :0 :1 & xterm -display :1
[2] 13819
Visual: 0x0 (n) - r/g/b/a: 8/8/8/8  db: 1
Initialized 800x600 back buffer offscreen area
X Error of failed request:  BadValue (integer parameter out of range for
operation)
  Major opcode of failed request:  55 (X_CreateGC)
  Value in failed request:  0x20001b
  Serial number of failed request:  62
  Current serial number in output stream:  71
Visual: 0x0 (n) - r/g/b/a: 8/8/8/8  db: 1
Initialized 800x600 back buffer offscreen area

and:

/opt/fdo/bin/Xnest -ac -display :0 :1 & xterm -display :1
[3] 13862
X Error of failed request:  BadValue (integer parameter out of range for
operation)
  Major opcode of failed request:  55 (X_CreateGC)
  Value in failed request:  0x20000f
  Serial number of failed request:  31
  Current serial number in output stream:  33
[2]   Exit 234                /opt/fdo/bin/Xglx -ac -display :0 :1

with radeon:

/opt/fdo/bin/Xglx -ac -display :0 :1 & xterm -display :1
[1] 5841
Visual: 0x0 (n) - r/g/b/a: 8/8/8/8  db: 1
Initialized 800x600 back buffer offscreen area
X Error of failed request:  BadValue (integer parameter out of range for
operation)
  Major opcode of failed request:  55 (X_CreateGC)
  Value in failed request:  0x20000c
  Serial number of failed request:  27
  Current serial number in output stream:  29
Visual: 0x0 (n) - r/g/b/a: 8/8/8/8  db: 1
Initialized 800x600 back buffer offscreen area

and:

/opt/fdo/bin/Xnest -ac -display :0 :1 & xterm -display :1
[1] 5855
X Error of failed request:  BadValue (integer parameter out of range for
operation)
  Major opcode of failed request:  55 (X_CreateGC)
  Value in failed request:  0x20000f
  Serial number of failed request:  31
  Current serial number in output stream:  33


So i am able to start the Xglx server (and Xnest ...), but i am not able
to attach an application to it. So what am i doing wrong ?

I tried both with the propietary fglrx (V 8.8.25) and the radeon driver
included in Ubuntus xorg-package.

Thank you for your time 

Jan Kreuzer

P.S.: There was once a page on freedesktop on howto debug the xserver
(http://freedesktop.org/XOrg/DebuggingTheXserver), however i am not able
to find it anymore, has it moved ?





More information about the xorg mailing list