There seems to be a problem with the rfswitch-0.1-r1 ebuild. src_unpack seems to work fine, but after the linux-mod_src_install, all the files from the workdir are gone and, naturally, gcc complains about not finding a Makefile. emerge info: ---------------------- Gentoo Base System version 1.6.15 Portage 2.1-r1 (default-linux/x86/no-nptl, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r12 i686) ================================================================= System uname: 2.6.16-gentoo-r12 i686 Genuine Intel(R) CPU T2300 @ 1.66GHz app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.mirror.icd.hu/ http://ftp.easynet.nl/mirror/gentoo/" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac acpi alsa apm avi bitmap-fonts bluetooth bzip2 cdr cli crypt cups divx4linux dlloader dri dts dvd dvdr emboss encode foomaticdb fortran freetype gd gif gimp gimpprint gpm gstreamer gtk gtk2 imlib ipv6 isdnlog jpeg libg++ libwww mad matroska mikmod mmx mmxext motif mp3 mpeg msn musepack musicbrainz ncurses nls ogg oggvorbis opengl oscar pam pcre pdflib perl png ppds pppd python quicktime readline real reflection scanner sdl session spell spl sse sse2 ssl svga symlink tcltk tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vcd vorbis wifi win32codecs wma wxwindows xml xorg xosd xprint xscreensaver xv xvid yahoo zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_en userland_GNU video_cards_i810" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Erm, just post the errors and attach the build log, we can't guess. MAKEOPTS="-j1" emerge rfswitch &> emerge.log
sorry, didn't think of that... shame on me ------------- Calculating dependencies ... done! >>> Emerging (1 of 1) net-wireless/rfswitch-0.1-r1 to / >>> checking ebuild checksums ;-) >>> checking auxfile checksums ;-) >>> checking miscfile checksums ;-) >>> checking rfswitch-0.1.tgz ;-) * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.17-gentoo-r2 >>> Unpacking source... >>> Unpacking rfswitch-0.1.tgz to /var/tmp/portage/rfswitch-0.1-r1/work * Converting rfswitch-0.1/Makefile to use M= instead of SUBDIRS= ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/rfswitch-0.1-r1/work/rfswitch-0.1 ... * Preparing av5100 module make -C /usr/src/linux M=/var/tmp/portage/rfswitch-0.1-r1/work/rfswitch-0.1 MODVERDIR=/var/tmp/portage/rfswitch-0.1-r1/work/rfswitch-0.1 modules make[1]: Entering directory `/usr/src/linux-2.6.17-gentoo-r2' scripts/Makefile.build:17: /var/tmp/portage/rfswitch-0.1-r1/work/rfswitch-0.1/Makefile: No such file or directory make[2]: *** No rule to make target `/var/tmp/portage/rfswitch-0.1-r1/work/rfswitch-0.1/Makefile'. Stop. make[1]: *** [_module_/var/tmp/portage/rfswitch-0.1-r1/work/rfswitch-0.1] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.17-gentoo-r2' make: *** [modules] Error 2 !!! ERROR: net-wireless/rfswitch-0.1-r1 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile rfswitch-0.1-r1.ebuild, line 37: Called linux-mod_src_compile linux-mod.eclass, line 515: Called die !!! Unable to make KSRC=/usr/src/linux modules. !!! If you need support, post the topmost build error, and the call stack if relevant.
after my latest emerge --sync (23:35 GMT), the merge went well and without problems (just complaining about my patched 80211 stack) so this may have been caused by a previous broken sync.. In that case I apologize for the bug report (although we checked the ebuild and the merge process quite thouroughly)
Ok, it wasn't the sync, seems rather to be the kernel version. It doesn't build against 2.6.17-r2, but fine against 2.6.16-r12
Created attachment 96093 [details, diff] patch to make the Makefile use a different value for MODVERDIR The crmodverdir rule of linux-2.6.17*/Makefile has gained a line to clear the $(MODVERDIR) directory. Passing $(PWD) as $(MODVERDIR), as is done in the rfswitch 0.1 Makefile, is therefore a problem. This patch fixes the issue for me when compiling for linux-2.6.17-gentoo-r7 and is unlikely to break stuff, but I would appreciate it if somebody considered updating the ebuild for the 1.1 release of rfswitch, where the issue is already fixed, as well.