[Bugs] [Bug 122] New: xorg-server build fails with -dri

bugzilla-daemon at exherbo.org bugzilla-daemon at exherbo.org
Fri Oct 10 21:28:13 BST 2008


https://bugs.exherbo.org/show_bug.cgi?id=122

           Summary: xorg-server build fails with -dri
           Product: Arbor
           Version: unspecified
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Packages
        AssignedTo: kloeri at exherbo.org
        ReportedBy: voroskoi at gmail.com
           Package: x11-server/xorg-server


paludis -i xorg-server gives the following error:

/bin/sh ../libtool --tag=CC   --mode=compile i686-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../hw/xfree86/dri2 -I../mi   -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/freetype2
-I/usr/include/pixman-1 -I/usr/include/hal -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include     -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 -DXFree86Server  -march=i686
-pipe -O2 -g -MT glxdricommon.lo -MD -MP -MF .deps/glxdricommon.Tpo -c -o
glxdricommon.lo glxdricommon.c
In file included from glxdriswrast.c:39:
/usr/include/GL/internal/dri_interface.h:45:17: error: drm.h: No such file or
directory
In file included from glxdriswrast.c:39:
/usr/include/GL/internal/dri_interface.h:285: error: expected declaration
specifiers or '...' before 'drm_clip_rect_t'
/usr/include/GL/internal/dri_interface.h:287: error: expected declaration
specifiers or '...' before 'drm_clip_rect_t'
/usr/include/GL/internal/dri_interface.h:341: error: expected declaration
specifiers or '...' before 'drm_clip_rect_t'
/usr/include/GL/internal/dri_interface.h:603: error: expected declaration
specifiers or '...' before 'drm_drawable_t'
/usr/include/GL/internal/dri_interface.h:611: error: expected declaration
specifiers or '...' before 'drm_context_t'
make[1]: *** [glxdriswrast.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
 i686-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../hw/xfree86/dri2 -I../mi
-DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs
-fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT
-DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/freetype2 -I/usr/include/pixman-1
-I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-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 -DXFree86Server -march=i686 -pipe -O2 -g -MT glxdricommon.lo -MD -MP
-MF .deps/glxdricommon.Tpo -c glxdricommon.c  -fPIC -DPIC -o
.libs/glxdricommon.o
In file included from glxdricommon.c:35:
/usr/include/GL/internal/dri_interface.h:45:17: error: drm.h: No such file or
directory
In file included from glxdricommon.c:35:
/usr/include/GL/internal/dri_interface.h:285: error: expected declaration
specifiers or '...' before 'drm_clip_rect_t'
/usr/include/GL/internal/dri_interface.h:287: error: expected declaration
specifiers or '...' before 'drm_clip_rect_t'
/usr/include/GL/internal/dri_interface.h:341: error: expected declaration
specifiers or '...' before 'drm_clip_rect_t'
/usr/include/GL/internal/dri_interface.h:603: error: expected declaration
specifiers or '...' before 'drm_drawable_t'
/usr/include/GL/internal/dri_interface.h:611: error: expected declaration
specifiers or '...' before 'drm_context_t'
make[1]: *** [glxdricommon.lo] Error 1
make[1]: Leaving directory
`/var/tmp/paludis/build/x11-server-xorg-server-1.5.1/work/xorg-server-1.5.1/glx'
make: *** [all-recursive] Error 1

!!! ERROR in x11-server/xorg-server-1.5.1:
!!! In /usr/libexec/paludis/utils/emake at line 25
!!! emake returned error 2

!!! Call stack:
!!!    * paludis_die_or_error_func (/usr/libexec/paludis/die_functions.bash:67)
!!!    * main (/usr/libexec/paludis/utils/emake:25)

diefunc: making ebuild PID 24846 exit with error
die trap: exiting with error.

Install error:
  * In program paludis -1i xorg-server:
  * When performing install action from command line:
  * When executing install task:
  * When installing 'x11-server/xorg-server-1.5.1:0::x11':
  * When running an ebuild command on 'x11-server/xorg-server-1.5.1:0::x11':
  * Install error: Install failed for 'x11-server/xorg-server-1.5.1:0::x11'



Summary of failures:

* x11-server/xorg-server-1.5.1:0::x11: failure

Total: 1 package, 0 successes, 0 skipped, 1 failure, 0 unreached

Resume command: paludis --log-level qa --preserve-world --install --serialised
0.25 'package;=x11-server/xorg-server-1.5.1:0::x11;installed;has_all_deps;P'

 * No unread news items found

 * Searching for configuration files requiring action...
 * No configuration file updates required

exherbo ~ #

exherbo ~ # paludis -ip xorg-server
Building target list... 
Building dependency list...

These packages will be installed:

* x11-server/xorg-server::x11 [R 1.5.1] <target>
    Reasons: x11-drivers/xf86-input-evdev-2.0.6:0::installed,
x11-drivers/xf86-input-keyboard-1.3.1:0::installed, 3 more
    dbus -debug -dmx -doc -dri hal -kdrive -kdrive-vesa -record -xdmcp -xephyr
-xfake -xfbdev -xinerama -xprint -xsdl input_driver: -acecad -aiptek -evdev
-joystick keyboard -magictouch mouse -synaptics -vmmouse -void platform: x86
video_driver: -apm -ark -ast -ati -chips -cirrus -cyrix -dummy -fbdev -glint
-i128 -i740 -intel -mga -neomagic -newport -nsc -nv -radeon -radeonhd
-rendition -s3 -s3virge savage -siliconmotion -sis -sisusb -sunbw2 -suncg14
-suncg3 -suncg6 -sunffb -sunleo -suntcx -tdfx -tga -trident -tseng -v4l vesa
-vga -via -vmware -voodoo

Total: 1 package (1 rebuild)

 * No unread news items found

exherbo ~ #

exherbo ~ # paludis --info xorg-server
paludis 0.31.0 git 2dcdbcafdb4da4f80c43f18605aa60ccb5db9cf3
Paludis build information:
    Compiler:
        CXX:                   i686-pc-linux-gnu-g++ 4.3.2
        CXXFLAGS:              -march=i686 -pipe -O2
        LDFLAGS:               
        DATE:                  2008-10-07T18:26:08+0000

    Libraries:
        C++ Library:           GNU libstdc++ 20080827

    Reduced Privs:
        reduced_uid:           103
        reduced_uid->name:     paludisbuild
        reduced_uid->dir:      /
        reduced_gid:           443
        reduced_gid->name:     paludisbuild

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc
        PYTHONINSTALLDIR:      
        RUBYINSTALLDIR:        

Environment:
    Format:                    paludis
    Config dir:                /etc/paludis
    World file:                /var/db/paludis/repositories/installed/world

Repository unavailable:
    format:                    unavailable
    location:                  /var/db/paludis/repositories/unavailable
    sync:                     
tar+http://git.exherbo.org/exherbo_repositories.tar.bz2
    sync_options:              

Repository unavailable-unofficial:
    format:                    unavailable
    location:                 
/var/db/paludis/repositories/unavailable-unofficial
    sync:                     
tar+http://git.exherbo.org/exherbo_unofficial_repositories.tar.bz2
    sync_options:              

Repository unwritten:
    format:                    unwritten
    location:                  /var/db/paludis/repositories/unwritten
    sync:                      git://git.exherbo.org/unwritten.git
    sync_options:              

Repository arbor:
    format:                    ebuild
    location:                  /var/db/paludis/repositories/arbor
    append_repository_name_to_write_cache: true
    binary_destination:        false
    binary_keywords:           
    binary_uri_prefix:         
    builddir:                  /var/tmp/paludis/build
    cache:                     /var/empty
    distdir:                   /var/cache/paludis/distfiles
    eapi_when_unknown:         exheres-0
    eapi_when_unspecified:     exheres-0
    eclassdirs:                /var/db/paludis/repositories/arbor/eclass
    ignore_deprecated_profiles: false
    layout:                    exheres
    names_cache:               /var/cache/paludis/names
    newsdir:                   /var/db/paludis/repositories/arbor/metadata/news
    profile_eapi:              exheres-0
    profiles:                 
/var/db/paludis/repositories/arbor/profiles/default-linux/x86/2007.0
    securitydir:               /var/db/paludis/repositories/arbor/metadata/glsa
    setsdir:                   /var/db/paludis/repositories/arbor/sets
    sync:                      git://git.exherbo.org/arbor.git
    sync_options:              
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

    Package information:
        sys-apps/paludis:      scm
        sys-apps/sandbox:      1.2.18.1-r3
        sys-devel/autoconf:    2.63
        sys-devel/automake:    1.10.1 1.9.6
        sys-devel/binutils:    2.18-r2
        sys-devel/gcc:         4.3.2
        sys-devel/libtool:     2.2.6a
        sys-kernel/linux-headers: 2.6.25
        sys-libs/glibc:        2.8

Repository mozilla:
    format:                    ebuild
    location:                  /var/db/paludis/repositories/mozilla
    append_repository_name_to_write_cache: true
    binary_destination:        false
    binary_keywords:           
    binary_uri_prefix:         
    builddir:                  /var/tmp/paludis/build
    cache:                     /var/empty
    distdir:                   /var/cache/paludis/distfiles
    eapi_when_unknown:         exheres-0
    eapi_when_unspecified:     exheres-0
    eclassdirs:                /var/db/paludis/repositories/arbor/eclass
/var/db/paludis/repositories/mozilla/eclass
    ignore_deprecated_profiles: false
    layout:                    exheres
    master_repository:         arbor
    names_cache:               /var/cache/paludis/names
    newsdir:                  
/var/db/paludis/repositories/mozilla/metadata/news
    profile_eapi:              exheres-0
    profiles:                 
/var/db/paludis/repositories/arbor/profiles/default-linux/x86/2007.0
    securitydir:              
/var/db/paludis/repositories/mozilla/metadata/glsa
    setsdir:                   /var/db/paludis/repositories/mozilla/sets
    sync:                      git://git.exherbo.org/mozilla.git
    sync_options:              
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

Repository rbrown:
    format:                    ebuild
    location:                  /var/db/paludis/repositories/dev/rbrown
    append_repository_name_to_write_cache: true
    binary_destination:        false
    binary_keywords:           
    binary_uri_prefix:         
    builddir:                  /var/tmp/paludis/build
    cache:                     /var/empty
    distdir:                   /var/cache/paludis/distfiles
    eapi_when_unknown:         exheres-0
    eapi_when_unspecified:     exheres-0
    eclassdirs:                /var/db/paludis/repositories/arbor/eclass
/var/db/paludis/repositories/dev/rbrown/eclass
    ignore_deprecated_profiles: false
    layout:                    exheres
    master_repository:         arbor
    names_cache:               /var/cache/paludis/names
    newsdir:                  
/var/db/paludis/repositories/dev/rbrown/metadata/news
    profile_eapi:              exheres-0
    profiles:                 
/var/db/paludis/repositories/arbor/profiles/default-linux/x86/2007.0
    securitydir:              
/var/db/paludis/repositories/dev/rbrown/metadata/glsa
    setsdir:                   /var/db/paludis/repositories/dev/rbrown/sets
    sync:                      git://git.exherbo.org/dev/rbrown.git
    sync_options:              
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

Repository voroskoi:
    format:                    ebuild
    location:                  /var/db/paludis/repositories/voroskoi
    append_repository_name_to_write_cache: true
    binary_destination:        false
    binary_keywords:           
    binary_uri_prefix:         
    builddir:                  /var/tmp/paludis/build
    cache:                     /var/empty
    distdir:                   /var/cache/paludis/distfiles
    eapi_when_unknown:         exheres-0
    eapi_when_unspecified:     exheres-0
    eclassdirs:                /var/db/paludis/repositories/arbor/eclass
/var/db/paludis/repositories/voroskoi/eclass
    ignore_deprecated_profiles: false
    layout:                    exheres
    master_repository:         arbor
    names_cache:               /var/cache/paludis/names
    newsdir:                  
/var/db/paludis/repositories/voroskoi/metadata/news
    profile_eapi:              exheres-0
    profiles:                 
/var/db/paludis/repositories/arbor/profiles/default-linux/x86/2007.0
    securitydir:              
/var/db/paludis/repositories/voroskoi/metadata/glsa
    setsdir:                   /var/db/paludis/repositories/voroskoi/sets
    sync:                      file:///home/voroskoi/git/voroskoi
    sync_options:              
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

Repository x11:
    format:                    ebuild
    location:                  /var/db/paludis/repositories/x11
    append_repository_name_to_write_cache: true
    binary_destination:        false
    binary_keywords:           
    binary_uri_prefix:         
    builddir:                  /var/tmp/paludis/build
    cache:                     /var/empty
    distdir:                   /var/cache/paludis/distfiles
    eapi_when_unknown:         exheres-0
    eapi_when_unspecified:     exheres-0
    eclassdirs:                /var/db/paludis/repositories/arbor/eclass
/var/db/paludis/repositories/x11/eclass
    ignore_deprecated_profiles: false
    layout:                    exheres
    master_repository:         arbor
    names_cache:               /var/cache/paludis/names
    newsdir:                   /var/db/paludis/repositories/x11/metadata/news
    profile_eapi:              exheres-0
    profiles:                 
/var/db/paludis/repositories/arbor/profiles/default-linux/x86/2007.0
    securitydir:               /var/db/paludis/repositories/x11/metadata/glsa
    setsdir:                   /var/db/paludis/repositories/x11/sets
    sync:                      git://git.exherbo.org/x11.git
    sync_options:              
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

Repository installed:
    format:                    vdb
    location:                  /var/db/paludis/repositories/installed
    builddir:                  /var/tmp/paludis/build
    root:                      /

Repository installed-unpackaged:
    format:                    installed_unpackaged
    location:                  /var/db/paludis/repositories/unpackaged
    root:                      /

Package x11-server/xorg-server-1.5.1::installed:

        === Running ebuild phase killoldmisc as paludisbuild:paludisbuild...
        bunzip2 <
/var/db/paludis/repositories/installed/data/x11-server---xorg-server/1.5.1:0:C.3557.1223648764.537916.C/environment.bz2
> /var/tmp/paludis/build/environment-x11-server-xorg-server-1.5.1-12187
        ebuild_scrub_environment
/var/tmp/paludis/build/environment-x11-server-xorg-server-1.5.1-12187
        ebuild_safe_source
/var/tmp/paludis/build/environment-x11-server-xorg-server-1.5.1-12187
        rm
/var/tmp/paludis/build/environment-x11-server-xorg-server-1.5.1-12187
        === Starting builtin_killoldmisc
        === Done builtin_killoldmisc
        === Completed ebuild phase killoldmisc
        === Running ebuild phases initmisc infovars info as
paludisbuild:paludisbuild...
        bunzip2 <
/var/db/paludis/repositories/installed/data/x11-server---xorg-server/1.5.1:0:C.3557.1223648764.537916.C/environment.bz2
> /var/tmp/paludis/build/environment-x11-server-xorg-server-1.5.1-12241
        ebuild_scrub_environment
/var/tmp/paludis/build/environment-x11-server-xorg-server-1.5.1-12241
        ebuild_safe_source
/var/tmp/paludis/build/environment-x11-server-xorg-server-1.5.1-12241
        rm
/var/tmp/paludis/build/environment-x11-server-xorg-server-1.5.1-12241
        === Starting builtin_initmisc
        === Done builtin_initmisc
        === Starting builtin_infovars
        CBUILD=i686-pc-linux-gnu
        CFLAGS= -march=i686 -pipe -O2 -g
        CHOST=i686-pc-linux-gnu
        CTARGET=
        CXXFLAGS= -march=i686 -pipe -O2 -g
        ENCODING=
        INPUT_DRIVER=
        LANG=
        LC_ALL=C
        LDFLAGS=
        MAKEOPTS=-j2
        OPTIONS=dbus hal input_driver:keyboard input_driver:mouse platform:x86
video_driver:savage video_driver:vesa 
        PLATFORM=
        VIDEO_DRIVER=
        === Done builtin_infovars
        === Starting pkg_info
        No additional information available
        === Done pkg_info
        === Completed ebuild phases initmisc infovars info
        === Running ebuild phase tidyupmisc as paludisbuild:paludisbuild...
        bunzip2 <
/var/db/paludis/repositories/installed/data/x11-server---xorg-server/1.5.1:0:C.3557.1223648764.537916.C/environment.bz2
> /var/tmp/paludis/build/environment-x11-server-xorg-server-1.5.1-12318
        ebuild_scrub_environment
/var/tmp/paludis/build/environment-x11-server-xorg-server-1.5.1-12318
        ebuild_safe_source
/var/tmp/paludis/build/environment-x11-server-xorg-server-1.5.1-12318
        rm
/var/tmp/paludis/build/environment-x11-server-xorg-server-1.5.1-12318
        === Starting builtin_tidyupmisc
        rm -fr /var/tmp/paludis/build/x11-server-xorg-server-1.5.1-misc
        === Done builtin_tidyupmisc
        === Completed ebuild phase tidyupmisc

Package x11-server/xorg-server-1.5.1:0::x11:

        === Running ebuild phase killoldmisc as paludisbuild:paludisbuild...
        === Starting builtin_killoldmisc
        === Done builtin_killoldmisc
        === Completed ebuild phase killoldmisc
        === Running ebuild phases initmisc infovars info as
paludisbuild:paludisbuild...
        === Starting builtin_initmisc
        === Done builtin_initmisc
        === Starting builtin_infovars
        CBUILD=i686-pc-linux-gnu
        CFLAGS=-march=i686 -pipe -O2
        CHOST=i686-pc-linux-gnu
        CTARGET=
        CXXFLAGS=-march=i686 -pipe -O2
        ENCODING=
        INPUT_DRIVER=
        LANG=
        LC_ALL=C
        LDFLAGS=
        MAKEOPTS=-j2
        OPTIONS=dbus hal input_driver:keyboard input_driver:mouse platform:x86
video_driver:savage video_driver:vesa 
        PLATFORM=
        VIDEO_DRIVER=
        === Done builtin_infovars
        === Starting pkg_info
        No additional information available
        === Done pkg_info
        === Completed ebuild phases initmisc infovars info
        === Running ebuild phase tidyupmisc as paludisbuild:paludisbuild...
        === Starting builtin_tidyupmisc
        rm -fr /var/tmp/paludis/build/x11-server-xorg-server-1.5.1-misc
        === Done builtin_tidyupmisc
        === Completed ebuild phase tidyupmisc

exherbo ~ # 

This is reported in gentoo bugzilla too,
http://bugs.gentoo.org/show_bug.cgi?id=236851
Modifying Cflags: -I${includedir} to Cflags: -I${includedir}/drm in
/usr/lib/pkgconfig/gl.pc fixes xorg-server build, but I would not call that a
proper solution.
Let me know if I've forgot to add something!


-- 
Configure bugmail: https://bugs.exherbo.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Bugs mailing list