Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 381771

Summary: x11-base/xorg-server-1.11.0[minimal,-xorg] build fails: No rule to make target `../hw/xfree86/sdksyms.c'
Product: Gentoo Linux Reporter: Robin Bankhead <gentoo>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: heroxbd, vapier
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: xorg-server-9999 for testing the patch with current git tree
xorg-server-1.11-disable-tests-without-ddx.patch

Description Robin Bankhead 2011-09-04 11:05:19 UTC
x11-base/xorg-server-1.11.0 build fails with the following output:

make[2]: Entering directory `/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0_build/test'
make[2]: *** No rule to make target `../hw/xfree86/sdksyms.c', needed by `sdksyms.lo'.  Stop.
make[2]: *** Waiting for unfinished jobs....
  CC     xkb.o
i686-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/test -I../include  -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/hw/xfree86/parser -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/miext/cw -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/hw/xfree86/ddc -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/hw/xfree86/i2c -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/hw/xfree86/modes -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/hw/xfree86/ramdac  -I/var/tmp/portage/x11-base/xorg-server-1.11.0/temp/mesa-symlinks -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -Wbad-function-cast -Wformat=2 -Wold-style-definition -Wdeclaration-after-statement -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/pixman-1 -I/usr/include/freetype2   -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/include -I../include -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/Xext -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/composite -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/damageext -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/xfixes -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/Xi -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/mi -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/miext/sync -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/miext/shadow  -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/miext/damage -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/render -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/randr -I/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/fb  -O2 -pipe -march=pentium3 -mmmx -msse -mfpmath=sse -c /var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0/test/xkb.c
make[2]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0_build/test'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.11.0/work/xorg-server-1.11.0_build/test'
make: *** [all-recursive] Error 1
 * ERROR: x11-base/xorg-server-1.11.0 failed (compile phase):
 *   emake failed

revdep-rebuild has had no effect.


Reproducible: Always




Flags for emerge:
[ebuild     U  ] x11-base/xorg-server-1.11.0 [1.10.4] USE="minimal nptl udev -dmx -doc -ipv6 -kdrive -static-libs -tslib -xnest -xorg -xvfb" 0 kB

Note: reason for USE="-xorg" is that this is on a headless server and only installed to provide a few files needed to run xdm and fluxbox with tigervnc.


emerge --info:
Portage 2.1.10.11 (default/linux/x86/10.0/server, gcc-4.5.3, glibc-2.13-r4, 3.0.4-gentoo i686)
=================================================================
System uname: Linux-3.0.4-gentoo-i686-Pentium_III_-Coppermine-with-gentoo-2.0.3
Timestamp of tree: Sat, 03 Sep 2011 19:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.7-r2, 2.7.2-r2, 3.1.4-r2, 3.2-r2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo belak standard-overlay
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium3 -mmmx -msse -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/make.conf /usr/lib/X11/xdm/Xsetup_0 /usr/share/gnupg/qualified.txt"
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=pentium3 -mmmx -msse -mfpmath=sse"
DISTDIR="/var/cache/http-replicator"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages news nodoc noinfo parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="-j8 -l5.2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/belak /usr/local/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="X509 a52 aac accessibility acl acpi apache2 bash-completion berkdb bzip2 clamav cli consolekit cracklib crypt cups curl curlwrappers cxx dbm dbus dbx dri dv enca encode exif fastcgi ffmpeg foomaticdb fortran ftp gd gd-external gdbm gnutls gpm hardened iconv imagemagick imap innodb java javascript jpeg lcms ldap libwww mad matroska minimal mmx mmxext modules mp3 mudflap mysql ncurses nls nptl nptlonly offensive ogg openmp optimized-qmake pam pcre php png policykit posix pppd qt4 raw readline rtmp samba scanner session sharedmem snmp soap sse ssl sysfs tcpd theora threads tidy tiff tokenizer tordns truetype udev unicode usb vhosts win32codecs x264 x86 xinetd xml xmlrpc xorg xsl xvid zip zlib" 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 proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp net" USERLAND="GNU" VIDEO_CARDS="ati fbdev vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-11-20 02:07:34 UTC
Please also report this bug upstream at https://bugs.freedesktop.org/
For the upstream report, give the exact configure options that are mentioned at the beginning of build.log
Comment 2 Benda Xu gentoo-dev 2011-11-28 04:06:11 UTC
It it because of this commit 5 years ago:

http://webcvs.freedesktop.org/xorg/xserver/xorg/include/Makefile.am?revision=1.5&view=markup

Does it imply xvfb cannot be built without xorg?
Comment 3 Benda Xu gentoo-dev 2011-11-29 04:12:42 UTC
Reported to upstream at https://bugs.freedesktop.org/show_bug.cgi?id=43320
Comment 4 Benda Xu gentoo-dev 2011-11-29 07:35:26 UTC
got an upstream patch from Alan Coopersmith[1], which needs to be applied to the xorg git master branch. Tested to work on my setup.

A xorg-server-9999 ebuild testing the patch is submitted for review. 

BTW, xorg git source needs >=inputproto-2.0.99, I also made one just by renaming, thanks to the coolest xorg-2.eclass.

1. http://patchwork.freedesktop.org/patch/8013/
Comment 5 Benda Xu gentoo-dev 2011-11-29 07:38:07 UTC
Created attachment 294131 [details]
xorg-server-9999 for testing the patch with current git tree
Comment 6 Robin Bankhead 2011-12-06 16:35:55 UTC
(In reply to comment #5)
> Created attachment 294131 [details]
> xorg-server-9999 for testing the patch with current git tree

Failed Patch: xorg-server-disable-acpi.patch !

Am I doing it wrong?
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-12-06 17:28:10 UTC
xorg-server-disable-acpi.patch is obsolete and no longer applies.
Comment 8 Robin Bankhead 2011-12-08 01:31:44 UTC
Got it eventually (the nouveau patch should also be taken out). It builds successfully on my system.
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-12-08 09:08:25 UTC
I don't know where you got that ebuild from, but it is not what is currently in the x11 overlay.
Comment 10 Robin Bankhead 2011-12-14 14:25:03 UTC
(In reply to comment #9)
> I don't know where you got that ebuild from, but it is not what is currently in
> the x11 overlay.

It's the one attached above in comment #5. Though it's not from the overlay, it does demonstrate that the patch works, no?
Comment 11 Ivan Kasatenko 2011-12-24 14:14:18 UTC
Building with the ebuild attached already requires even newer inputproto. Since I've got it on a production server, I have no will to live on the bleeding edge.

So I've managed to compile it by creating a portage overlay from the stock xorg-server-1.11.2-r2.ebuild and adding "--disable-unit-tests" to XORG_CONFIGURE_OPTIONS. 

Might work as a temporary fix.
Comment 12 Benda Xu gentoo-dev 2012-01-01 05:46:48 UTC
the patch is merged into xorg git and gentoo version xorg-server-1.11.99.2 verified on amd64 to work.

Please test and we can close this bug soon.
Comment 13 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-01-01 12:21:16 UTC
Marking as fixed per comment 12.
Comment 14 SpanKY gentoo-dev 2012-01-01 17:56:28 UTC
this is broken in stable :(.  any chance of getting that fixed ?
Comment 15 Benda Xu gentoo-dev 2012-01-01 23:46:38 UTC
(In reply to comment #14)
> this is broken in stable :(.  any chance of getting that fixed ?

Pass --disable-unit-tests via XORG_CONFIGURE_OPTIONS as per comment 11 or just wait ;)
Comment 16 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-01-02 00:40:59 UTC
Created attachment 297589 [details, diff]
xorg-server-1.11-disable-tests-without-ddx.patch

The upstream patch does not apply cleanly against xorg-server-1.11. See if the attached patch helps (needs eautoreconf). It causes the following warning though, which I don't know how to fix:

 * Running elibtoolize in: xorg-server-1.11.3/
 *   We've already been run in this tree; you should
 *   avoid this if possible (perhaps by filing a bug)
Comment 17 SpanKY gentoo-dev 2012-01-15 00:28:07 UTC
(In reply to comment #16)

yes, this patch fixes my stable build.  that elibtoolize warning is due to failings in the autotools-utils eclass.
Comment 18 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-01-16 00:44:41 UTC
Patch applied to xorg-server-1.11.2-r2 and 1.11.3 too.
Comment 19 Robin Bankhead 2012-04-02 18:47:12 UTC
Just had a build of xorg-server-1.12.0-r1 fail on another box (~amd64, same USE flags) with this message:

*** No rule to make target `ddxstubs.c', needed by `ddxstubs.lo'. Stop.

Is this related by any chance? Wanted to check before starting a separate bug.
Comment 20 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-04-02 20:07:22 UTC
(In reply to comment #19)
That is https://bugs.freedesktop.org/show_bug.cgi?id=47975 , a totally different issue.
Comment 21 Benda Xu gentoo-dev 2012-04-03 02:35:41 UTC
I remember I have also tested xorg-server-9999, ddxstubs failed in another way at linking stage.

Just wondering how about just disabling test without xorg,

econf
    ....
    $(use_enable xorg unit-tests)
    ....

Upstream seems do not test before release if their code could compile with xorg disabled, this kind of bug would happen yet again.
Comment 22 Robin Bankhead 2012-04-08 13:14:03 UTC
(In reply to comment #20)
> (In reply to comment #19)
> That is https://bugs.freedesktop.org/show_bug.cgi?id=47975 , a totally
> different issue.

Thanks for that.  Should I file it here too, or just wait til upstream fix it?