Problems Compiling from Git
Mike Lothian
mike at fireburn.co.uk
Thu Feb 18 14:52:55 PST 2010
On 18 February 2010 22:46, Dan Nicholson <dbn.lists at gmail.com> wrote:
> On Thu, Feb 18, 2010 at 2:36 PM, Mike Lothian <mike at fireburn.co.uk> wrote:
>> 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
>
> For this one, you should revert commit
> d6f55492af3cb82b0113fe6beac0f3494b6e2956. trap and exit on ERR
> shouldn't be used blindly since it's entirely possible there are
> commands that safely fail in mklib. Not to mention that it's not
> portable.
>
> --
> Dan
>
Thanks Dan
Does any one have access to get this reverted on master?
More information about the xorg
mailing list