You are not logged in.

#1 2010-08-11 15:34:14

Kosmonavt
Member
Registered: 2010-02-15
Posts: 100

[Solved] xf86-video-intel building error - missing header

Hi all,

Today I was trying to build xf86-video-intel-newest from AUR with yaourt. But configure script failed with absence of linux/limits.h. It was strange, since I succesfully compiled this package in end of June (when the latest 2.12.0-1 version was released). I checked pacman.log and haven't found that any critical packages were removed, gcc's and glibc's only releases were upgraded. Downgrading gcc and glibc gave the same result. Googling gave only cases, where simply kernel header install was required. I also tried to make a symlink from /usr/src/linux-2.6.34-ARCH/include/linux to /usr/include/linux, but compiling failed on other headers (after all, it's a dirty hack).

Here's an output of configure:

checking how to run the C preprocessor... /lib/cpp
configure: error: in `/tmp/yaourt-tmp-yl3gdy/aur-xf86-video-intel-newest/src/xf86-video-intel-2.12.0':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details. 

Looking into config.log gave the following:

...
configure:4249: /lib/cpp  conftest.c
In file included from /usr/include/bits/posix1_lim.h:157:0,
                 from /usr/include/limits.h:145,
                 from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include-fixed/limits.h:169,
                 from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/include-fixed/limits.h:34,
                 from conftest.c:12:
/usr/include/bits/local_lim.h:39:26: fatal error: linux/limits.h: No such file or directory
compilation terminated.
configure:4249: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "xf86-video-intel"
| #define PACKAGE_TARNAME "xf86-video-intel"
| #define PACKAGE_VERSION "2.12.0"
| #define PACKAGE_STRING "xf86-video-intel 2.12.0"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg"
| #define PACKAGE_URL ""
| #define PACKAGE "xf86-video-intel"
| #define VERSION "2.12.0"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error
configure:4279: error: in `/tmp/yaourt-tmp-yl3gdy/aur-xf86-video-intel-newest/src/xf86-video-intel-2.12.0':
configure:4282: error: C preprocessor "/lib/cpp" fails sanity check
...

Also running simple echo "#include <limits.h>" > /tmp/test.c ; gcc /tmp/test.c gives this error (obviously). I checked presence of header files:

$ pacman -Qs kernel26
local/kernel26 2.6.34.3-1 (base)
    The Linux Kernel and modules
local/kernel26-headers 2.6.34.3-1
    Header files and scripts for building modules for kernel26
local/linux-firmware 20100623-2
    Firmware files for Linux

$ pacman -Qs glibc
local/glibc 2.12-4 (base)                                                                     
    GNU C Library
local/kdesdk-kmtrace 4.4.5-1 (kde kdesdk)
    A KDE tool to assist with malloc debugging using glibc´s "mtrace" functionality
local/lib32-glibc 2.12-5 (lib32)
    GNU C Library (32 Bit)

$ pacman -Qs gcc
local/colorgcc 1.3.2-6
    A Perl wrapper to colorize the output of compilers with warning/error messages matching
    the gcc output format
local/gcc 4.5.0-7 (base-devel)
    The GNU Compiler Collection
local/gcc-fortran 4.5.0-7
    Fortran front-end for GCC
local/gcc-libs 4.5.0-7 (base)
    Runtime libraries shipped by GCC for C and C++ languages
local/gcc43 4.3.4-3
    The GNU Compiler Collection
local/lib32-gcc-libs 4.5.0-6 (lib32)
    The GNU Compiler Collection

Also checked the presence of limits.h file:

$ find /usr -name limits.h 2> /dev/null | grep "linux/limits.h"
/usr/src/linux-2.6.34-ARCH/include/linux/limits.h

How this problem can be solved?

Last edited by Kosmonavt (2010-08-12 10:48:09)

Offline

#2 2010-08-12 10:47:49

Kosmonavt
Member
Registered: 2010-02-15
Posts: 100

Re: [Solved] xf86-video-intel building error - missing header

Sorry, it was "wrong alert". I tried pacman -Qk | grep -v "0 missing", and it gave nice

linux-api-headers: 652 total files, 649 missing file(s)

Btw, the whole /usr/include/linux/ contents were in the missing list. Quite strange, why it was deleted, because I use root carefully and very rarely.

Offline

Board footer

Powered by FluxBB