Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236845 - x11-libs/libdrm-2.3.1 test failures
Summary: x11-libs/libdrm-2.3.1 test failures
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-06 08:52 UTC by Alexis Ballier
Modified: 2009-02-05 13:45 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
x11-libs/libdrm-2.4.4 build log (build.log,38.18 KB, text/plain)
2009-02-02 21:58 UTC, Jakub Januszkiewicz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2008-09-06 08:52:06 UTC
x86_64-pc-linux-gnu-gcc -I ../shared-core -I ../libdrm -march=core2 -O2 -pipe -mssse3 -msse4.1 -g -ggdb -ftree-vectorize -ftree-vectorizer-verbose=2 -Wno-pointer-sign -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -o .libs/updatedraw updatedraw.o  ./.libs/libdrmtest.a /var/tmp/portage/x11-libs/libdrm-2.3.1/work/libdrm-2.3.1/libdrm/.libs/libdrm.so 
creating updatedraw
Couldn't find an un-controlled DRM device
/bin/sh: line 4: 14382 Aborted                 ${dir}$tst
FAIL: auth
/bin/sh: line 4: 14409 Aborted                 ${dir}$tst
FAIL: openclose
/bin/sh: line 4: 14435 Aborted                 ${dir}$tst
FAIL: getversion
/bin/sh: line 4: 14461 Aborted                 ${dir}$tst
FAIL: getclient
/bin/sh: line 4: 14487 Aborted                 ${dir}$tst
FAIL: getstats
Couldn't find an un-controlled DRM device
/bin/sh: line 4: 14513 Aborted                 ${dir}$tst
FAIL: lock
Couldn't find an un-controlled DRM device
/bin/sh: line 4: 14540 Aborted                 ${dir}$tst
FAIL: setversion
Couldn't find an un-controlled DRM device
/bin/sh: line 4: 14566 Aborted                 ${dir}$tst
FAIL: updatedraw
================================================
8 of 8 tests failed
Please report to dri-devel@lists.sourceforge.net
================================================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-libs/libdrm-2.3.1/work/libdrm-2.3.1/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/x11-libs/libdrm-2.3.1/work/libdrm-2.3.1/tests'
make: *** [check-recursive] Error 1


emerge --info
Portage 2.2_rc8 (default/linux/amd64/2008.0/developer, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26.3 x86_64)
=================================================================
System uname: Linux-2.6.26.3-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-glibc2.2.5
Timestamp of tree: Unknown
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -mssse3 -msse4.1 -g -ggdb -ftree-vectorize -ftree-vectorizer-verbose=2  -Wno-pointer-sign"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -mssse3 -msse4.1 -g -ggdb -ftree-vectorize -ftree-vectorizer-verbose=2"
DISTDIR="/share/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="buildpkg buildsyspkg collision-protect cvs distcc distlocks fixpackages multilib-strict parallel-fetch preserve-libs sandbox sfperms sign splitdebug strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu"
LINGUAS="en fr en_US"
MAKEOPTS="-j8"
PKGDIR="/share/gentoo/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage_cvs/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage /share/overlay /share/bsdoverlay/gentoo-bsd /share/official-overlay/aballier/texlive-overlay"
SYNC="cvs://aballier@cvs.gentoo.org:/var/cvsroot"
USE="X a52 aac aalib acl acpi alsa amd64 amr amrnb amrwb apache2 audiofile bash-completion berkdb bidi bluetooth bzip2 cairo caps cdaudio cdda cddb cdio cdparanoia cdr cegui chardet cjk cli clisp cpufreq cracklib crypt css cups curl cvs dbus devil dga dirac djvu doc dri dssi dts dv dvb dvd dvdr dvdread dvi emboss enca encode evo exif expat fam fame fbcon fbcondecor ffmpeg fftw firefox flac fluidsynth fontconfig fortran gd gdbm gif glep glib glitz glsa glut gmp gnomecanvas gnutls gpac gpg gpm graphviz gs gstreamer gtk hal hddtemp icecast iconv icu id3tag ieee1394 imagemagick imap imlib ipv6 isdnlog ithreads jack javascript jbig jpeg jpeg2k kdehiddenvisibility kpathsea ladspa lame lapack lash latex lcms ldap libcaca libnotify libsamplerate live lm_sensors lua lv2 lzo mad mailwrapper matroska mbox md5sum midi mikmod mjpeg mmx mmxext mng modplug motif mp2 mp3 mp4 mpeg mudflap multilib musepack musicbrainz mysql ncurses network nls nntp nodrm nptl nptlonly nsplugin ocaml offensive ogg ogm openexr opengl openmp pam pcre pdf perl pgf png pnm pop portaudio postgres ppds pppd pstricks python qa qt3 qt3support qt4 quicktime radio rar readline reflection rle rtc rtsp rubberband ruby schroedinger scrobbler sdl session shorten shout slang smp smtp sndfile snmp soundtouch sox speex spell spl sqlite sqlite3 srt sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs t1lib taglib tcl tcpd teletext test tetex tga theora threads threadsafe tiff timidity tk truetype tse3 tta twolame unicode usb v4l v4l2 vamp vcd vim-syntax visibility vorbis wavpack wma wmf wxwindows x264 xcb xcomposite xft xine xml xorg xpm xspf xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="usb-umt usb-dib0700 dibusb-usb2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr en_US" USERLAND="GNU" VIDEO_CARDS="vesa radeon radeonhd ati"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Xake 2009-01-08 16:43:08 UTC
This one is really really annoying since it hangs my portage (confirmed on two machines running ~arch), forces you to kill the process to regain bash and breaks --keep-going and/or scripts.
Comment 2 Jakub Januszkiewicz 2009-02-02 21:57:49 UTC
I confirm this issue (test failures + hangind processes) for x11-libs/libdrm-2.4.4 on x86.

The processes that are left hanging after tests are:
portage  14540  0.0  0.0   1780   196 pts/0    S+   22:29   0:00 /var/tmp/portage/x11-libs/libdrm-2.4.4/work/libdrm-2.4.4/tests/.libs/lt-auth
portage  14709  0.0  0.0   1784   200 pts/0    S+   22:29   0:00 /var/tmp/portage/x11-libs/libdrm-2.4.4/work/libdrm-2.4.4/tests/.libs/lt-lock

# emerge --info
Portage 2.2_rc23 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.9_p20081201-r1, 2.6.28-gentoo i686)
=================================================================
System uname: Linux-2.6.28-gentoo-i686-AMD_Phenom-tm-_8450_Triple-Core_Processor-with-glibc2.0
Timestamp of tree: Mon, 02 Feb 2009 19:45:01 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=amdfam10 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --jobs 2 --load-average 2.00"
FEATURES="collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://src.gentoo.pl/ http://gentoo.prz.rzeszow.pl/ http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/vmware /usr/local/portage/layman/roslin /usr/local/portage/overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amarok apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr cisco cjk cli cracklib crypt cups curl dbus dri dv dvd dvdr dvdread emboss encode evo exif fam fbcon ffmpeg firefox flac foomaticdb fortran gdbm gif glitz gphoto2 gpm gstreamer hal htmlhandbook iconv ieee1394 inotify irmc isdnlog jabber java java5 javascript jpeg kde kdehiddenvisibility kipi ldap libnotify lm_sensors mad matroska midi mikmod mime mmx mng mp3 mpeg mplayer mtp mudflap musepack ncurses network networkmanager njb nls nptl nptlonly nsplugin offensive ogg openal opengl openmp pam pcre pdf perl plasma png ppds pppd python qt qt3 qt3support qt4 quicktime rdesktop readline realmedia reflection samba sdl semantic-desktop session solver spell spl sse sse2 ssl startup-notification subversion svg sysfs tcpd theora threads tiff truetype unicode usb utempter vcd videos vnc vorbis win32codecs x264 x86 xattr xcomposite xine xml xorg xprint xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" NETBEANS_MODULES="*" USERLAND="GNU" VIDEO_CARDS="none radeonhd"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Jakub Januszkiewicz 2009-02-02 21:58:44 UTC
Created attachment 180750 [details]
x11-libs/libdrm-2.4.4 build log
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2009-02-03 00:00:16 UTC
Looks like the test suite expects an unopened DRM device. Could you try reemerging libdrm without X running?

Thanks
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2009-02-04 04:01:27 UTC
Sorry, same error without X.
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2009-02-04 10:41:53 UTC
Please file a bug upstream then :)

Don't forget to CC "remi@gentoo.org" so I can track it.

Thanks
Comment 7 Xake 2009-02-04 18:01:36 UTC
This is a bit of everything in this bug I am afraid...

FEATURES="userpriv" makes sure you do not have RW-access to the /dev/dri/card* which the tests require.

And next question is: what are your gfx-cards?
Without X running, running "make check" by hand from a useraccount with RW-access gives me diffrent errors (two, and no error about uncontrolled device) depending on if I have i915 from the kernel version 2.6.28 loaded or if I am trying with my nvidia-card running nouveau (diffrent computer, four errors, "Couldn't find un-controlled DRM device").
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2009-02-04 18:09:19 UTC
(In reply to comment #7)
> This is a bit of everything in this bug I am afraid...
> 
> FEATURES="userpriv" makes sure you do not have RW-access to the /dev/dri/card*
> which the tests require.

Should work if you put the portage user into the video group.
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2009-02-04 22:28:14 UTC
or add RESTRICT=test since there's no way this can pass without user intervention. 
Comment 10 Xake 2009-02-04 22:53:36 UTC
(In reply to comment #9)
> or add RESTRICT=test since there's no way this can pass without user
> intervention. 
> 

...and the same should go for x11-drm in that case as it tries the same testsuit...
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2009-02-05 13:45:46 UTC
Fixed in all 4 ebuilds (portage and overlay).

Thanks