Bug 72707 - xf86-video-intel-2.99.901 or later fail to build on Gentoo/FreeBSD. sys/timerfd.h does not exist.
Summary: xf86-video-intel-2.99.901 or later fail to build on Gentoo/FreeBSD. sys/timer...
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: Other FreeBSD
: medium normal
Assignee: Chris Wilson
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-14 13:10 UTC by Yuta SATOH
Modified: 2013-12-16 11:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
sample patch for configure.ac (661 bytes, patch)
2013-12-14 13:17 UTC, Yuta SATOH
no flags Details | Splinter Review

Description Yuta SATOH 2013-12-14 13:10:17 UTC
tools/virtual.c requires sys/timerfd.h
However, sys/timerfd.h does not exist on Gentoo/FreeBSD.

On Gentoo/FreeBSD)
$ equery b timerfd.h
 * Searching for timerfd.h ...
$

On Gentoo/Linux)
$ equery b timerfd.h
 * Searching for timerfd.h ...
sys-libs/glibc-2.15-r3 (/usr/include/sys/timerfd.h)
$

Original bug is here.
https://bugs.gentoo.org/493436
Comment 1 Yuta SATOH 2013-12-14 13:17:20 UTC
Created attachment 90770 [details] [review]
sample patch for configure.ac

Added check for sys/timerfd.h


FYI, build error log.

gmake[2]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.906/work/xf86-video-intel-2.99.906_build/src'
Making all in tools
gmake[2]: Entering directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.906/work/xf86-video-intel-2.99.906_build/tools'
x86_64-gentoo-freebsd10.0-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.906/work/xf86-video-intel-2.99.906/tools -I..    -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wcast-qual -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -D_THREAD_SAFE -I/usr/include/pixman-1 -Wno-cast-qual -Wno-redundant-decls -Wno-maybe-uninitialized  -O2 -pipe -ggdb  -c /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.906/work/xf86-video-intel-2.99.906/tools/virtual.c
/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.906/work/xf86-video-intel-2.99.906/tools/virtual.c:52:25: fatal error: sys/timerfd.h: No such file or directory
 #include <sys/timerfd.h>
                         ^
compilation terminated.
Makefile:423: recipe for target 'virtual.o' failed
gmake[2]: *** [virtual.o] Error 1
gmake[2]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.906/work/xf86-video-intel-2.99.906_build/tools'
Makefile:384: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.906/work/xf86-video-intel-2.99.906_build'
Makefile:315: recipe for target 'all' failed
gmake: *** [all] Error 2
Comment 2 Chris Wilson 2013-12-14 15:20:23 UTC
Do you know if anything provides equivalent functionality to timerfd on *BSD?
Comment 3 Yuta SATOH 2013-12-15 07:38:14 UTC
(In reply to comment #2)
> Do you know if anything provides equivalent functionality to timerfd on *BSD?

I don't know a thing about it...
Comment 4 Chris Wilson 2013-12-16 11:29:50 UTC
commit 989198f3ddc763000702bd1eaeb54002e18a8f04
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Dec 15 09:45:24 2013 +0000

    intel-virtual-output: Disable build if timerfd is not present
    
    Otherwise the build breaks on *BSD.
    
    Reported-by: Yuta SATOH <nigoro.gentoo@0x100.com>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72707
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.