Mesa 7.11 compile requires unwanted libdrm nouveau

I am on a machine with 11.1 and modified kernel.

uname -a
Linux linux-2c5j 3.1.0-desktop #1 SMP PREEMPT Thu Nov 3 16:26:25 CET 2011 i686 i686 i386 GNU/Linux

While trying to compile Mesa 7.11 in order to install the newest Intel video drivers for my 915i chipset the ./configure coplains as follows:

No package 'libdrm_nouveau' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables NOUVEAU_CFLAGS
and NOUVEAU_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Now I would like to avoid to install libdrm-nouveau because this is a laptop with intel only chipset. I looked at the manpage but I am not sure which flags I should set (c-flags??) and how the right sintax would be.
Thanks for every suggestion.

Hi
Run the configure command with the help option;


../configure --help

There is probably an option to disable the driver eg;


../configure --disable-nouveau


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 3 days 22:20, 5 users, load average: 0.00, 0.05, 0.08
GPU GeForce 8600 GTS Silent - Driver Version: 285.05.09

Thank you Malcolm, sorry for turning on this only now. I tried to launch

~/Software/Intel_Graphix/Mesa-7.11> ./configure --disable-nouveau
configure: WARNING: unrecognized options: --disable-nouveau

So I tried ./configure --help in the respective directory and found out by try and error the right (hope) syntax:

./configure --help
`configure' configures Mesa 7.11.0 to adapt to many kinds of systems. 

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

I had success with:

./configure NOUVEAU_CFLAGS=disable NOUVEAU_LIBS=disable

Sorry for writing this down but if some crazy like me wants to do the same at least he does not have to search for all this. Now it runs through up to the following:

configure: error: LLVM is required to build Gallium R300 on x86 and x86_64

So I try to find out if I need Gallium R300 support on a x86 Intel laptop (maybe I can flag it out too).
Thank you for your help, made some advances. Great.

Edit: which I did overcome by installing the LLVM from the repos. Now it is through and says run make to build MESA. One question to whoever knows this: I did run ./configure on mesa without “prefix”. Does opensuse use standard directories for MESA or do I have to specify a specific prefix when compiling it?

Hi
You better to look at a rpm spec file on OBS (as well as checking for
any security patches).

See here
https://build.opensuse.org/package/files?package=Mesa&project=openSUSE%3AFactory

All you actually need to do is use the spec file from here and drop the
gallium drivers.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 7 days 0:40, 4 users, load average: 0.19, 0.17, 0.13
GPU GeForce 8600 GTS Silent - Driver Version: 285.05.09

Forgive me my ignorance. I am compiling from the source of Mesa (since 11.1 does not have any support any more and I need to have the newest Intel driver running). The spec file that I did well open is the program running within the rpm install, right?

In what step would I use this information. For (after) running make? Or within the ./configure step.

Have patience, the learning curve is steep in this point. So taking into account that I am not working in IT but I am more a “well minded kamikaze with excellent suicidal attitude”, I will need slightly more “hints” to understand.
BTW, the config.log says the following up to now:
MESA config.log - Pastebin.com
Which seems quite O.K. to me, but the errors about confdefs.h.
or am I wrong?

Hi
Just download the src rpm from Factory and rebuild, since your on 11.1
it will exclude the newer drivers;


wget http://download.opensuse.org/factory/repo/src-oss/suse/src/Mesa-7.11-12.4.src.rpm
rpmbuild --rebuild Mesa-7.11-12.4.src.rpm


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 7 days 2:15, 4 users, load average: 0.00, 0.04, 0.09
GPU GeForce 8600 GTS Silent - Driver Version: 285.05.09

O.K. But since the end of the whole exercise will be to be able to install the latest intel 915 driver, will this be possible? Sorry for bothering, thank you for your help.

Hi
If you need the Mesa 7.11 version, and it’t builds ok, then it should
work fine.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 7 days 3:14, 4 users, load average: 0.09, 0.12, 0.15
GPU GeForce 8600 GTS Silent - Driver Version: 285.05.09

error: Failed build dependencies:
        libtalloc-devel is needed by Mesa-7.11-12.4.i586
        libudev-devel is needed by Mesa-7.11-12.4.i586

oops. the system is old. I am running into dependency problems :open_mouth:
edit:
you never know. I tried now and installed the 11.1 repo versions, found them. Will report.

After a long runs this ends with:

In file included from ../../../../src/gbm/main/common.h:31,
                 from gbm_driint.h:33,
                 from gbm_dri.c:42:
/usr/include/libudev.h:28:2: error: #error "#define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE is needed to usethis experimental library version"
gmake[4]: *** [gbm_dri.o] Error 1
gmake[4]: Leaving directory `/usr/src/packages/BUILD/Mesa-7.11/src/gbm/backends/dri'
gmake[3]: *** [default] Error 1
gmake[3]: Leaving directory `/usr/src/packages/BUILD/Mesa-7.11/src/gbm/backends'
gmake[2]: *** [default] Error 1
gmake[2]: Leaving directory `/usr/src/packages/BUILD/Mesa-7.11/src/gbm'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/Mesa-7.11/src'
make: *** [default] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.31032 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.31032 (%install)

Well, this brings the next question: how do I define “libudev”, or better where? :\ (if you are still knowledgeable about this error).

stakanov wrote:

>
> Code:
> --------------------
> error: Failed build dependencies:
> libtalloc-devel is needed by Mesa-7.11-12.4.i586
> libudev-devel is needed by Mesa-7.11-12.4.i586
> --------------------
>
> oops. the system is old. I am running into dependency problems :open_mouth:
>
Install the dependencies, you have access to the old repos here
ftp://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/11.1/repo/oss/suse
Look at the complete list on Evergreen for 11.1
(http://en.opensuse.org/openSUSE:Evergreen)


PC: oS 11.4 (dual boot 12.1 RC2) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

Thanks, I did. Stuck now with the error as of above. But up to that it runs fine (for a lifetime though…)

stakanov wrote:

>
> After a long runs this ends with:
>
>
> Code:
> --------------------
> In file included from …/…/…/…/src/gbm/main/common.h:31,
> from gbm_driint.h:33,
> from gbm_dri.c:42:
> /usr/include/libudev.h:28:2: error: #error#define
> LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE is needed to usethis
> experimental library version” gmake[4]: *** [gbm_dri.o] Error 1
> gmake[4]: Leaving directory
> `/usr/src/packages/BUILD/Mesa-7.11/src/gbm/backends/dri’ gmake[3]: ***

[default] Error 1 gmake[3]: Leaving directory
/usr/src/packages/BUILD/Mesa-7.11/src/gbm/backends' gmake[2]: *** > [default] Error 1 gmake[2]: Leaving directory > /usr/src/packages/BUILD/Mesa-7.11/src/gbm’ make[1]: *** [subdirs] Error
1 make[1]: Leaving directory `/usr/src/packages/BUILD/Mesa-7.11/src’
> make: *** [default] Error 1 error: Bad exit status from
> /var/tmp/rpm-tmp.31032 (%install)
>
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.31032 (%install)
>
> --------------------
>
> Well, this brings the next question: how do I define “libudev”, or
> better where? :\ (if you are still knowledgeable about this error).
>
I have no idea if that is really the right thing to do here but what about
#define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE
just before the
#include <libudev.h>
in the files which include libudev.h


PC: oS 11.4 (dual boot 12.1 RC2) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
ION | 3GB Ram

To come back on this project, since I have the original source code…and it compiles without errors, I might use this one. Question to anyone: if I do uninstall Mesa and then do the make, make install, in case it does NOT write in the right directory, would a manual elimination of the new directory and a reinstall of the rpm work?
Just to know how much risk I am taking right now.
Thank you.
P.S. note that the compile.log talks about a “build-in spec file for suse” and seems to write to these directories:




  1. Using built-in specs.     
  1. Target: i586-suse-linux   
  1. Configured with: ../configure  --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man  --libdir=/usr/lib --libexecdir=/usr/lib  --enable-languages=c,c++,objc,fortran,obj-c++,java,ada  --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3  --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/  --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap  --with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit  --enable-libstdcxx-allocator=new --disable-libstdcxx-pch  --enable-version-specific-runtime-libs --program-suffix=-4.3  --enable-linux-futex --without-system-libunwind --with-cpu=generic  --build=i586-suse-linux      




So wonder whether someone sees an evident error in this.

Hello. I hope that Malcolmlevis or Martin are around to give an hand to this question. Or naturally whoever sees this.
I tried to do the last step after ./configure, make = make install. The install goes up to a point where it complains about a wrong version (what I understand of gmake but I am not 100% sure). I would like to print out the error message but substantially … i do not know how.
While installing I am in Init 1 (I thought this would be a convenient idea, you can tell me if I am wrong). I do not know however how to log the error message from init 1 in the command line. Is there any way to protocol an install done via “make install”? How would I do this?
A lot of questions, even if you know only one answer, do not hesitate to post.
Thank you.

(as this is Evergreen 11.1, I departure from Mesa 7.2).

 glxinfo | grep OpenGL
OpenGL vendor string: Mesa Project
OpenGL renderer string: Software Rasterizer
OpenGL version string: 2.1 Mesa 7.2
OpenGL extensions:

 gmake --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-pc-linux-gnu


Pipe the output into a file.
Something like


make install 2> error.txt >output.txt


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram

Forgive my ignorance but would this be equivalent to say:

make install | error txt | outpubt.tx 

Just to understand the syntax you employ.
If not, how are

>

and

2>

called? Still “pipe” or does this command have another name?
Thank you.

Am 26.11.2011 17:56, schrieb stakanov:
>
> Code:
> --------------------
> make install | error txt | outpubt.tx
> --------------------
This will not redirect the error output stream and will result in an
error itself.

“>” redirects stdout to a file
“2>” redirects stderr to a file

You can inspect the bash man page or this
http://www.cyberciti.biz/faq/redirecting-stderr-to-stdout/


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram


man -Tps bash | ps2pdf - bash.pdf

will give you a pdf which is friendly for the eyes and searchable, read
the REDIRECTION section.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram