[Intel-gfx] Problems Compiling from Git

Mike Lothian mike at fireburn.co.uk
Thu Feb 18 23:36:20 CET 2010


I'm experiencing 3 issues at the moment

xorg-server master isn't compiling I get the error:

../doltcompile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I../include -I../hw/xfree86/os-support -I../hw/xfree86/os-support/bus
-I../hw/xfree86/common -I../hw/xfree86/dri -I../mi
-I../hw/xfree86/dri2   -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wformat=2
-Wold-style-definition -Wdeclaration-after-statement  -D_BSD_SOURCE
-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/freetype2
-I/usr/include/pixman-1   -I../include -I../include -I../Xext
-I../composite -I../damageext -I../xfixes -I../Xi -I../mi
-I../miext/shadow  -I../miext/damage -I../render -I../randr -I../fb
-fvisibility=hidden -I/usr/include/drm -I/usr/include/drm
-I/usr/include/drm -I/usr/include/X11/dri -DXFree86Server
-DGLX_USE_TLS -DPTHREADS -D__GLX_ALIGN64 -march=native -O2 -pipe -w
-MT glxdri2.lo -MD -MP -MF .deps/glxdri2.Tpo -c -o glxdri2.lo
glxdri2.c
glxdri2.c: In function '__glXDRIdrawableSwapBuffers':
glxdri2.c:221: error: '__DRI2flushExtension' has no member named
'flushInvalidate'

mesa wont compile. I have no idea what's happening

gmake[5]: Entering directory
`/var/tmp/portage/media-libs/mesa-9999/work/Mesa-9999/src/mesa/drivers/dri/swrast'
running /usr/bin/makedepend
gmake[5]: Leaving directory
`/var/tmp/portage/media-libs/mesa-9999/work/Mesa-9999/src/mesa/drivers/dri/swrast'
gmake[5]: Entering directory
`/var/tmp/portage/media-libs/mesa-9999/work/Mesa-9999/src/mesa/drivers/dri/swrast'
gmake[6]: Entering directory
`/var/tmp/portage/media-libs/mesa-9999/work/Mesa-9999/src/mesa/drivers/dri/swrast'
x86_64-pc-linux-gnu-gcc -c -I.
-I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm    -march=native -O2 -pipe -w -ffast-math -Wall
-Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden
-fno-strict-aliasing  -fPIC   -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_USE_TLS -DPTHREADS
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS  ../common/utils.c -o
../common/utils.o
x86_64-pc-linux-gnu-gcc -c -I.
-I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm    -march=native -O2 -pipe -w -ffast-math -Wall
-Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden
-fno-strict-aliasing  -fPIC   -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_USE_TLS -DPTHREADS
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS  swrast.c -o swrast.o
x86_64-pc-linux-gnu-gcc -c -I.
-I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm    -march=native -O2 -pipe -w -ffast-math -Wall
-Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden
-fno-strict-aliasing  -fPIC   -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_USE_TLS -DPTHREADS
-DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS  swrast_span.c -o swrast_span.o
/bin/sh ../../../../../bin/mklib -o swrast_dri.so -noprefix -linker
'x86_64-pc-linux-gnu-gcc' -ldflags '-Wl,-O1 -Wl,--hash-style=gnu
-Wl,--as-needed' \
                ../../common/driverfuncs.o ../common/utils.o swrast.o
swrast_span.o   ../../../../../src/mesa/libmesa.a   \
                  -ldrm   -lexpat -lm -lpthread -ldl
mklib: Making Linux shared library:  swrast_dri.so
gmake[6]: *** [swrast_dri.so] Error 1
gmake[6]: Leaving directory
`/var/tmp/portage/media-libs/mesa-9999/work/Mesa-9999/src/mesa/drivers/dri/swrast'
gmake[5]: *** [lib] Error 2
gmake[5]: Leaving directory
`/var/tmp/portage/media-libs/mesa-9999/work/Mesa-9999/src/mesa/drivers/dri/swrast'
gmake[4]: *** [subdirs] Error 1
gmake[4]: Leaving directory
`/var/tmp/portage/media-libs/mesa-9999/work/Mesa-9999/src/mesa/drivers/dri'
gmake[3]: *** [default] Error 1


And lastly the latest intel DRM code from drm-intel-next has the
following issue too:

  CC      drivers/gpu/drm/i915/intel_display.o
drivers/gpu/drm/i915/intel_display.c: In function 'i9xx_update_wm':
drivers/gpu/drm/i915/intel_display.c:2778: error: 'IS_I915GM'
undeclared (first use in this function)
drivers/gpu/drm/i915/intel_display.c:2778: error: (Each undeclared
identifier is reported only once
drivers/gpu/drm/i915/intel_display.c:2778: error: for each function it
appears in.)
make[4]: *** [drivers/gpu/drm/i915/intel_display.o] Error 1

Sorry to spam the mailing lists with this but my guess is the people
who introduced these bugs are either using different branches or have
fixes already in their local trees

Cheers

Mike



More information about the Intel-gfx mailing list