Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50562 - x11-base/xorg-x11-6.7.0 install fails: No rule to make target `riva128.o', needed by `install.sdk'
Summary: x11-base/xorg-x11-6.7.0 install fails: No rule to make target `riva128.o', ne...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-05-09 11:11 UTC by David Holm (RETIRED)
Modified: 2004-07-08 02:52 UTC (History)
2 users (show)

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


Attachments
emerge info (nfo,2.66 KB, text/plain)
2004-05-09 11:12 UTC, David Holm (RETIRED)
Details
Proposed patch to xf86.rules (gentoo-bug-50562-xf86-rules-SDK.patch,476 bytes, patch)
2004-06-11 20:43 UTC, Howard B. Golden
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Holm (RETIRED) gentoo-dev 2004-05-09 11:11:34 UTC
Emerging fails during install with the following error:

nstall -c -m 0444 nv_xaa.c /var/tmp/portage/xorg-x11-6.7.0/image//usr/X11R6/lib/Server/drivers/nv
install -c -m 0444 nv_hw.c /var/tmp/portage/xorg-x11-6.7.0/image//usr/X11R6/lib/Server/drivers/nv
install -c nv_drv.so /var/tmp/portage/xorg-x11-6.7.0/image//usr/X11R6/lib/Server/modules/drivers
make[6]: *** No rule to make target `riva128.o', needed by `install.sdk'.  Stop.
make[6]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0/work/xc/programs/Xserver/hw/xfree86/drivers/nv'
make[5]: *** [install.sdk] Error 2
make[5]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0/work/xc/programs/Xserver/hw/xfree86/drivers'
make[4]: *** [install.sdk] Error 2
make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0/work/xc/programs/Xserver/hw/xfree86'
make[3]: *** [install.sdk] Error 2
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0/work/xc/programs/Xserver'
make[2]: *** [install.sdk] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0/work/xc/programs'
make[1]: *** [install.sdk] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0/work/xc'
make: *** [install.sdk] Error 2
Comment 1 David Holm (RETIRED) gentoo-dev 2004-05-09 11:12:28 UTC
Created attachment 31065 [details]
emerge info
Comment 2 Elton Algera 2004-05-15 08:21:05 UTC
I had the exact same error, which in my case was caused by the use flag "sdk".
When you exclude the flag, it compiles cleanly.
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-10 21:22:27 UTC
I am experiencing the same problem on amd64, so it's not ppc specific.
Comment 4 Howard B. Golden 2004-06-11 18:00:45 UTC
I believe I know the fix, as follows:

Refer to this directory:

  /var/tmp/portage/xorg-x11-6.7.0-r1/work/xc/config/cf/

On line 191 of xf86.rules:

  InstallDriverSDKDynamicModule(Concat(module,.o),dest,subdir)

Should be:

  InstallDriverSDKDynamicModule(Concat(module,.so),dest,subdir)

(i.e., change .o to .so)

(I still have to learn how to make patch files, so I don't have a patch yet.)
Comment 5 Howard B. Golden 2004-06-11 20:43:15 UTC
Created attachment 33114 [details, diff]
Proposed patch to xf86.rules

Here is my patch described above.
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-12 02:02:07 UTC
I haven't tested the patch, and I can't really at the moment as I've got about 200 packages left to emerge for my system... I'll try to verify it soon...
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-13 14:45:48 UTC
Are you trying to build it with USE="pie sdk"? Please provide output of `emerge info` for those of you who have not.

The two USE flags are not compatible at the moment, although a patch would be welcome. And by a patch, I mean one that works either way. I've committed a temporary workaround for this that prevents a pie+sdk build.

donnie@supernova donnie $ qpkg -l xorg-x11 | grep riva128
/usr/X11R6/lib/modules/drivers/riva128.o
/usr/X11R6/lib/Server/modules/drivers/riva128.o
/usr/X11R6/lib/modules/drivers/riva128.o
/usr/X11R6/lib/Server/modules/drivers/riva128.o
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-13 15:08:18 UTC
Yes, I am building with USE="pie sdk"

Portage 2.0.50-r8 (gcc34-amd64-2004.1, gcc-3.4.0, glibc-2.3.3_pre20040529-r0, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 x86_64 4
Gentoo Base System version 1.4.16
distcc 2.13 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/raid0/gentoo/distfiles"
FEATURES="autoaddcvs ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/mnt/raid0/gentoo/packages-amd64"
PORTAGE_TMPDIR="/mnt/raid0/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync17.us.gentoo.org/gentoo-portage"
USE="3ds S3TC X X509 Xaw3d aac aalib accessibility acl acpi activefilter afs aim alsa altivec amd amd64 apache2 apm ardour-ksi arts artswrappersuid atlas audiofile autofs avantgo avi berkdb bidi bindist caps cdr chroot clamav clanJavaScript clanVoice clearpasswd clisp cmucl crypt cscope cups curl dbcp dedicated dga directfb divx4linux dnd doc dv dvd dvdr eim emacs emacs-w3 encode esd ethereal evms2 evo expat ext-png ext-zlib f77 faac faad fam fax fbcon fbdev ffmpeg flac flash fltk fluidsynth foomaticdb freetype fs fullrpc gb gcj gcl gd gd-external gdbm ggi gif gimp gimpprint glade glut gmp gmtfull gmthigh gmtsuppl gmttria gnome gnomedb gnuplot gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile hbci icq idl image imagemagick imap imlib imlib2 innodb ipalias ipv6 jabber jack jack-caps java javacomm javamail javascript jbig jikes joystick jp2 jpeg js junit justify kde ladcca lcd lcms libdsk libg libg++ libgda libwww lids lmtp log4j ltsp lua lucid lzw lzw-tiff maildir make-busybox-symlinks makecheck mcal md5sum menu mikmod milter mixer mng mono motif mozcalendar mozctl mozilla mozinterfaceinfo mozp3p mozsvg mozxmlterm mpeg mpeg4 mpi mplayer msn mule multilib music mysql nas native ncurses neXt nls nogcj nptl nvidia nviz oav objc oci8 odbc offensive ofx oggvorbis oldworld openal opengl oscar oss pam parse-clocks passfile pcap pcmcia pcre pda pdflib perl php pic pie plotutils png pnp portaudio ppds prelude propolice psyco python qhull qt quicktime readline regexp rplay ruby samba sasl sdk sdl skey slang slp sndfile socks5 sox speex spell sqlite src ssl svg tcltk tcpd tetex theora tiff timidity transcode transparent-proxy truetype trusted type1 ucs2 usb v4l v4l2 vda vhosts videos vim-with-x virus-scan wmf wsconvert wxwin wxwindows xchattext xemacs xface xforms xfs xine xinerama xml xml2 xmms xosd xprint xv xvid yahoo zeo zlib"


and

Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.5-gentoo-r1)                                                                     =================================================================               System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) 64 Processor 2800+            Gentoo Base System version 1.4.16                                               Autoconf: sys-devel/autoconf-2.59-r3                                            Automake: sys-devel/automake-1.8.3                                              ACCEPT_KEYWORDS="x86"                                                           AUTOCLEAN="yes"                                                                 CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"                             CHOST="i686-pc-linux-gnu"                                                       COMPILER="gcc3"                                                                 CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/raid0/gentoo/distfiles"
FEATURES="autoaddcvs ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/mnt/raid0/gentoo/packages-i686"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync17.us.gentoo.org/gentoo-portage"
USE="3ds S3TC X X509 Xaw3d aac aalib accessibility acl acpi activefilter afs aim alsa altivec amd apache2 apm ardour-ksi arts artswrappersuid atlas audiofile autofs avantgo avi berkdb bidi bindist caps cdr chroot clamav clanJavaScript clanVoice clearpasswd clisp cmucl crypt cscope cups curl dbcp dedicated dga directfb divx4linux dnd doc dv dvd dvdr eim emacs emacs-w3 encode esd ethereal evms2 evo expat ext-png ext-zlib f77 faac faad fam fax fbcon fbdev ffmpeg flac flash fltk fluidsynth foomaticdb freetype fs fullrpc gb gcj gcl gd gd-external gdbm ggi gif gimp gimpprint glade glut gmp gmtfull gmthigh gmtsuppl gmttria gnome gnomedb gnuplot gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile hbci icq idl image imagemagick imap imlib imlib2 innodb ipalias ipv6 jabber jack jack-caps java javacomm javamail javascript jbig jikes joystick jp2 jpeg js junit justify kde ladcca lcd lcms libdsk libg libg++ libgda libwww lids lmtp log4j ltsp lua lucid lzw lzw-tiff mad maildir make-busybox-symlinks makecheck mcal md5sum menu mikmod milter mixer mmx mng mono motif mozcalendar mozctl mozilla mozinterfaceinfo mozp3p mozsvg mozxmlterm mpeg mpeg4 mpi mplayer msn mule multilib music nas native ncurses neXt nls nptl nvidia nviz oav objc oci8 odbc offensive ofx oggvorbis oldworld openal opengl oscar oss pam parse-clocks passfile pcap pcmcia pcre pda pdflib perl php pic pie plotutils png pnp portaudio ppds prelude propolice psyco python qhull qt quicktime readline regexp rplay ruby samba sasl sdk sdl skey slang slp sndfile socks5 sox speex spell sqlite src sse ssl svg svga tcltk tcpd tetex theora tiff timidity transcode transparent-proxy truetype trusted type1 ucs2 usb v4l v4l2 vda vhosts videos vim-with-x virus-scan wmf wsconvert wxwin wxwindows x86 xchattext xemacs xface xforms xfs xine xinerama xml xml2 xmms xosd xprint xv xvid yahoo zeo zlib"
Comment 9 Howard B. Golden 2004-06-13 15:21:18 UTC
Re: Comment #7: Donnie, I experienced the problem with USE="pie sdk" (as you surmised). My patch in Comment #5 fixed it for me (with USE="pie sdk"). I haven't tested it with other USE flags.

I believe the code I patched in xf86.rules is incorrect, but it may only be triggered when USE="pie sdk" is set.
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-13 15:36:01 UTC
Howard,
you're right about that. If the patch was conditionally applied, it would work. But I want something that's clean, so we can submit it upstream. If you can test for whether it'll be building .so's in there, it would probably work both ways.
Comment 11 Howard B. Golden 2004-06-13 16:27:35 UTC
Re: Comment #10: Donnie, I will test the proposed patch with USE="sdk" but without USE="pie" and report if it works correctly. Do you need any additional tests that that? (I believe this code is only used if USE="sdk" is present. Is that correct?)
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-13 16:43:48 UTC
Howard,
what I need is a patch to xf86.rules that addresses the problem of installing the SDK either with or without USE=pie, which results in a MakeDllModules YES #define in xc/config/cf/host.def.

You ought to be able to do something like

#ifdef MakeDllModules
do the .so
#else
do the .o
Comment 13 Howard B. Golden 2004-06-13 17:02:44 UTC
Re: Comment #12: Donnie,

I believe the code in xf86.rules was correct except on line 191, where it referenced .o and it should have referenced .so:

Here are lines 185-197 (after the change to line 191):

185 #ifndef InstallDriverSDKObjectSubModule
186 #if !DoLoadableServer
187 #define InstallDriverSDKObjectSubModule(module,dest,subdir)		/**/
188 #else
189 #if MakeDllModules
190 #define InstallDriverSDKObjectSubModule(module,dest,subdir)		@@\
191 InstallDriverSDKDynamicModule(Concat(module,.so),dest,subdir)
192 #else
193 #define InstallDriverSDKObjectSubModule(module,dest,subdir)		@@\
194 InstallDriverSDKDynamicModule(Concat(module,.o),dest,subdir)
195 #endif
196 #endif
197 #endif

1. Note that the code only runs if InstallDriverSDKObjectSubModule is not already defined (line 185).

2. Lines 190-191 only execute if MakeDllModules is true. Otherwise, lines 193-194 execute.

3. This seems to match what you asked for in comment #12.
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-13 18:25:04 UTC
Ah, I didn't realize they already had that logic in the file, albeit faulty. I'll get this into the next patchset.

Thanks for looking into it, Howard.
Comment 15 Donnie Berkholz (RETIRED) gentoo-dev 2004-07-08 02:52:55 UTC
Added to xorg-x11-6.7.0-r1 patchset 1.1.1.