Re: [Mesa-dev] [PATCH 4/4] Fix build with gcc 3.3.

2010-04-18 Thread Owain Ainsworth
On Mon, Apr 19, 2010 at 07:34:04AM +0200, Matthieu Herrb wrote: > On Sun, Apr 18, 2010 at 05:03:51PM -0700, Jeremy Huddleston wrote: > > This one looks broken... > > > > > #if defined(__GNUC__) && ((__GNUC__ == 3 && __GNUC__ >= 4) || __GNUC__ >= > > > 4) > > > > > > (__GNUC__ == 3 && __GNUC__ >

Re: [Mesa-dev] [PATCH 4/4] Fix build with gcc 3.3.

2010-04-18 Thread Jeremy Huddleston
This one looks broken... > #if defined(__GNUC__) && ((__GNUC__ == 3 && __GNUC__ >= 4) || __GNUC__ >= 4) (__GNUC__ == 3 && __GNUC__ >= 4) you forgot _MINOR... And I think your '__GNUC_MINOR__ >= 3' might need to be >= 4 On Apr 18, 2010, at 16:55, Owain G. Ainsworth wrote: > From: Matthieu Her

[Mesa-dev] [PATCH 4/4] Fix build with gcc 3.3.

2010-04-18 Thread Owain G. Ainsworth
From: Matthieu Herrb The builtins used here only appeard in gcc 3.4. --- src/mesa/main/imports.c |3 ++- src/mesa/main/imports.h |4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 1ae0853..65fd476 100644 --- a/s

[Mesa-dev] [PATCH 3/4] Let this build with gcc 3.3

2010-04-18 Thread Owain G. Ainsworth
From: Matthieu Herrb Declaring the loop index inside for () is not supported by this version. --- src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c b/src/mesa/drivers/

[Mesa-dev] [PATCH 2/4] Fix command type for DRM_RADEON_IRQ_EMIT ioctl.

2010-04-18 Thread Owain G. Ainsworth
From: Owain Ainsworth This should be drmCommandWriteRead to avoid an EINVAL error on systems that strictly check ioctl args. This command has been r/w for ever. Discussion with airlied agreed that this was the correct course. --- src/mesa/drivers/dri/radeon/radeon_cs_legacy.c |2 +- 1 files

[Mesa-dev] [PATCH 1/4] Use __OpenBSD__ to check for OpenBSD.

2010-04-18 Thread Owain G. Ainsworth
From: Matthieu Herrb --- src/mesa/drivers/dri/common/xmlconfig.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c index de4500a..738b1ae 100644 --- a/src/mesa/drivers/dri/common/xmlconfig.

[Mesa-dev] OpenBSD fixes from mesa 7.8

2010-04-18 Thread Owain G. Ainsworth
The following patches are the patches that were required to make mesa 7.8.1 build and work on OpenBSD. Mostly it is fixing build issues, and one problem where the incorrect drmCommand type was used in radeon. Cheers, -0- ___ mesa-dev mailing list mesa-d

Re: [Mesa-dev] failed to compile mesa

2010-04-18 Thread Jakob Bornecrantz
On Sun, Apr 18, 2010 at 6:40 PM, CSJ wrote: > Hi, Dan > > This patch works with > ./autogen.sh --prefix="$PREFIX" --enable-xcb --with-dri-drivers=i915 > --disable-gallium --without-demos > > if I use > ./autogen.sh --prefix="$PREFIX" --enable-xcb --with-dri-drivers=i915 > --disable-gallium > it fa

Re: [Mesa-dev] failed to compile mesa

2010-04-18 Thread CSJ
Hi, Dan This patch works with ./autogen.sh --prefix="$PREFIX" --enable-xcb --with-dri-drivers=i915 --disable-gallium --without-demos if I use ./autogen.sh --prefix="$PREFIX" --enable-xcb --with-dri-drivers=i915 --disable-gallium it failed as attached with-demos.log. if I use ./autogen.sh --prefi

Re: [Mesa-dev] failed to compile mesa

2010-04-18 Thread Dan Nicholson
On Mon, Apr 19, 2010 at 12:15:22AM +0800, CSJ wrote: > Sorry I am not familiar with Makefiles > But I modified src/egl/drivers/glx/Makefile and > src/egl/main/Makefile as attached patch file. > > and it can compiled passed when configured > --with-dri-drivers=i915 --disable-gallium --without-demos

Re: [Mesa-dev] failed to compile mesa

2010-04-18 Thread CSJ
Sorry I am not familiar with Makefiles But I modified src/egl/drivers/glx/Makefile and src/egl/main/Makefile as attached patch file. and it can compiled passed when configured --with-dri-drivers=i915 --disable-gallium --without-demos if gallium enabled or with demos, it still compiled failed that

Re: [Mesa-dev] failed to compile mesa

2010-04-18 Thread Dan Nicholson
On Sat, Apr 17, 2010 at 8:39 PM, CSJ wrote: > Hello, I am new to mesa, > and I am not sure if compiling issue could post here or not? > > I want to build xorg and follow this guide: > http://www.x.org/wiki/Development/BuildingX > > but when I build mesa, > It error at: > ../../../include/EGL/eglpl

Re: [Mesa-dev] failed to compile mesa

2010-04-18 Thread CSJ
oops, fixed typo PREFIX, but still failed on can not find X11/Xlib.h and X11/Xutil.h Thanks your correction :) and I also change configure options as ./autogen.sh --prefix="$PREFIX" --enable-xcb --with-dri-drivers=i915 --disable-gallium 2010/4/18 Joakim Sindholt > In your script, something cam

Re: [Mesa-dev] failed to compile mesa

2010-04-18 Thread Joakim Sindholt
In your script, something came to mind in: ./autogen.sh --prefix="$PREFX" --enable-xcb --enable-gallium-intel --with-dri-drivers=i915 That line actually compiles both classic AND gallium'ized drivers. The --with-dri-drivers flag is what you specify to compile classic mesa drivers. (also you wrote $

Re: [Mesa-dev] failed to compile mesa

2010-04-18 Thread CSJ
My build script is as attached named auto.sh, and run it as: auto.sh init auto.sh get_xorg_proto auto.sh build_xorg_proto auto.sh get_xorg_lib auto.sh build_xorg_lib and failed on build mesa lib. I'll try to patch Makefile to let it compile pass. Thanks :) 2010/4/18 Luca Barbieri > Normally th

Re: [Mesa-dev] failed to compile mesa

2010-04-18 Thread Luca Barbieri
Normally the X11 headers are available without needing any special -I options, since they are at /usr/include/X11/Xlib.h It's quite possible that the Mesa build system may be broken if you have them somewhere else, since possibly no one tested that. Just figure out how to fix it and send a patch

Re: [Mesa-dev] failed to compile mesa

2010-04-18 Thread Joakim Sindholt
You don't need a newer library. You're very simply missing the header files necessary to build the newest version of mesa (although I've no idea why it worked before, as those are very common headers). If you're using Fedora, you'll want to install libX11-devel. If you're running some other "modern

Re: [Mesa-dev] failed to compile mesa

2010-04-18 Thread CSJ
I've compiled and installed libX11 from git, and set below envs. PREFIX="/opt/xorg" export PKG_CONFIG_PATH="$PREFIX"/lib/ pkgconfig:"$PREFIX"/share/pkgconfig:${PKG_CONFIG_PATH} it's weird that I can compiled and installed mesa 7.7.1 successfully, but failed on 7.8 and later. Maybe I need to patc

Re: [Mesa-dev] failed to compile mesa

2010-04-18 Thread Joakim Sindholt
Install the X11/Xlib development headers with your distributions package manager. On Sun, 2010-04-18 at 11:39 +0800, CSJ wrote: > Hello, I am new to mesa, > and I am not sure if compiling issue could post here or not? > > I want to build xorg and follow this guide: > http://www.x.org/wiki/Develop