See emerge log below (please excuse the line numbers): 000001 *** emerge -u --nospinner media-sound/alsa-driver *** 000002 Calculating dependencies ...done! 000003 >>> emerge (1 of 1) media-sound/alsa-driver-1.0.3 to / 000004 >>> md5 src_uri ;-) alsa-driver-1.0.3.tar.bz2 000005 /usr/sbin/ebuild.sh: line 13: rm: command not found 000006 /usr/sbin/ebuild.sh: line 13: rm: command not found 000007 >>> Unpacking source... 000008 >>> Unpacking alsa-driver-1.0.3.tar.bz2 to /var/tmp/portage/alsa-driver-1.0.3/work 000009 * Applying makefile.patch... 000010 [ ok ] 000011 * Applying alsa-driver-0.9.8-au-fix.patch... 000012 [ ok ] 000013 * /usr/src/linux is a symbolic link 000014 * Determining the real directory of the Linux kernel source code 000015 * Building for Linux 2.4.20-gaming-r3 found in /usr/src/linux 000016 * /usr/src/linux is a symbolic link 000017 * Determining the real directory of the Linux kernel source code 000018 * Building for Linux 2.4.20-gaming-r3 found in /usr/src/linux 000019 >>> Source unpacked. 000020 /usr/sbin/ebuild.sh: line 13: rm: command not found 000021 configure: WARNING: If you wanted to set the --build type, don't use --host. 000022 If a cross compiler is detected then cross compile mode will be used. 000023 checking for i686-pc-linux-gnu-gcc... gcc 000024 checking for C compiler default output file name... a.out 000025 checking whether the C compiler works... yes 000026 checking whether we are cross compiling... no 000027 checking for suffix of executables... 000028 checking for suffix of object files... o 000029 checking whether we are using the GNU C compiler... yes 000030 checking whether gcc accepts -g... yes 000031 checking for gcc option to accept ANSI C... none needed 000032 checking for i686-pc-linux-gnu-ranlib... no 000033 checking for ranlib... ranlib 000034 checking for a BSD-compatible install... /bin/install -c 000035 checking how to run the C preprocessor... gcc -E 000036 checking for egrep... grep -E 000037 checking for ANSI C header files... yes 000038 checking for an ANSI C-conforming const... yes 000039 checking for inline... inline 000040 checking whether time.h and sys/time.h may both be included... yes 000041 checking whether gcc needs -traditional... no 000042 checking for current directory... /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3 000043 checking cross compile... 000044 checking for directory with kernel source... /usr/src/linux 000045 checking for kernel version... 2.4.20-gaming-r3 000046 checking for GCC version... Kernel compiler: Used compiler: gcc (GCC) 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) 000047 000048 *** NO PREDEFINED KERNEL COMPILER IS DETECTED 000049 *** Assuming the same compiler is used with the current system compiler. 000050 000051 *** Please make sure that the same compiler version was used for building kernel. 000052 000053 checking for built-in ALSA... "no" 000054 checking for existing ALSA module... "no" 000055 checking for Red Hat kernel... "auto" 000056 checking for Red Hat kernel... "no" 000057 checking to modify of kernel linux/kmod.h... "no" 000058 Removing a dummy linux/kmod.h. 000059 checking for kernel linux/compiler.h... "yes" 000060 Removing a dummy linux/compiler.h. 000061 checking for kernel linux/pm.h... "yes" 000062 checking for kernel linux/spinlock.h... "yes" 000063 checking for kernel linux/irq.h... "yes" 000064 Removing a dummy linux/irq.h. 000065 checking for kernel linux/threads.h... "yes" 000066 Removing a dummy linux/threads.h. 000067 checking for kernel linux/rwsem.h... "yes" 000068 Removing a dummy linux/rwsem.h. 000069 checking for kernel linux/gameport.h... "yes" 000070 Removing a dummy linux/gameport.h. 000071 checking for kernel linux/devfs_fs_kernel.h... "yes" 000072 checking for kernel linux/highmem.h... "yes" 000073 Removing a dummy linux/highmem.h. 000074 checking for kernel linux/workqueue.h... "no" 000075 checking for kernel asm/hw_irq.h... "yes" 000076 Removing a dummy asm/hw_irq.h. 000077 checking for kernel linux/device.h... "no" 000078 checking for kernel linux/jiffies.h... "no" 000079 checking for kernel linux/compat.h... "no" 000080 checking for kernel linux/adb.h... "yes" 000081 Removing a dummy linux/adb.h. 000082 checking for kernel linux/cuda.h... "yes" 000083 Removing a dummy linux/cuda.h. 000084 checking for kernel linux/pmu.h... "yes" 000085 Removing a dummy linux/pmu.h. 000086 checking for exported symbol dump_stack... "yes" 000087 checking for kernel module symbol versions... "yes" 000088 checking for PCI support in kernel... "yes" 000089 checking for SGI/MIPS (HAL2) architecture... "no" 000090 checking for directory to store kernel modules... /lib/modules/2.4.20-gaming-r3/kernel/sound 000091 checking for verbose printk... on 000092 checking for debug level... none 000093 checking for ISA support in kernel... "yes" 000094 checking for processor type... i586 000095 checking for SMP... "no" 000096 checking for Video device support in kernel... "no" 000097 checking for ISA PnP driver in kernel... yes 000098 checking for PnP driver in kernel... no 000099 checking for Kernel ISA-PnP support... "yes" 000100 checking for ISA PnP support... yes 000101 checking for strlcpy... "no" 000102 checking for snprintf... "yes" 000103 checking for scnprintf... "no" 000104 checking for vmalloc_to_page... "yes" 000105 checking for old kmod... "yes" 000106 checking for PDE... "no" 000107 checking for pci_set_consistent_dma_mask... "no" 000108 checking for tty->count is the atomic type... "no" 000109 Removing local linux/isapnp.h. 000110 checking for driver version... 1.0.3 000111 checking for sequencer support... yes 000112 checking for OSS/Free emulation... yes 000113 checking for RTC callback support in kernel... "no" 000114 checking for USB support... "yes" 000115 checking for kernel PCMCIA 000116 checking for PCMCIA support... "no" 000117 checking for PCMCIA module support... "no" 000118 checking for PC9800 support in kernel... "no" 000119 checking for which soundcards to compile driver for... all 000120 configure: creating ./config.status 000121 config.status: creating version 000122 config.status: creating Makefile.conf 000123 config.status: creating snddevices 000124 config.status: creating utils/alsa-driver.spec 000125 config.status: creating utils/buildrpm 000126 config.status: creating toplevel.config 000127 config.status: creating utils/alsasound 000128 config.status: creating utils/alsasound.posix 000129 config.status: creating include/config.h 000130 config.status: creating include/config1.h 000131 config.status: creating include/version.h 000132 config.status: include/version.h is unchanged 000133 config.status: creating include/autoconf-extra.h 000134 config.status: include/autoconf-extra.h is unchanged 000135 if [ ! -d include/sound -a ! -L include/sound ]; then \ 000136 ln -sf ../alsa-kernel/include include/sound ; \ 000137 fi 000138 make dep 000139 cp -auvf include/version.h include/sound/version.h 000140 make[1]: Entering directory `/var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3' 000141 make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. 000142 if [ ! -d include/sound -a ! -L include/sound ]; then \ 000143 ln -sf ../alsa-kernel/include include/sound ; \ 000144 fi 000145 `include/version.h' -> `include/sound/version.h' 000146 cp -auvf include/version.h include/sound/version.h 000147 make[2]: Entering directory `/var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/acore' 000148 make -C ioctl32 fastdep 000149 make[3]: Entering directory `/var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/acore/ioctl32' 000150 /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/sndversions.h was updated 000151 make[3]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/acore/ioctl32' 000152 make -C oss fastdep 000153 make[3]: Entering directory `/var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/acore/oss' 000154 /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/sndversions.h was not updated 000155 copying file alsa-kernel/core/oss/mixer_oss.c 000156 patching file mixer_oss.c 000157 Hunk #1 succeeded at 381 (offset 5 lines). 000158 copying file alsa-kernel/core/oss/pcm_oss.c 000159 patching file pcm_oss.c 000160 Hunk #1 succeeded at 2211 (offset 130 lines). 000161 Hunk #2 succeeded at 2389 (offset 138 lines). 000162 Hunk #3 succeeded at 2537 (offset 138 lines). 000163 gcc -D__KERNEL__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include -I/usr/src/linux/include -O2 -mpreferred-stack-boundary=2 -march=i586 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include -I/var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/alsa-kernel/core/oss -fno-omit-frame-pointer -E -D__GENKSYMS__ mixer_oss.c 000164 | /sbin/genksyms -k 2.4.20 > /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/modules/acore-oss__mixer_oss.ver.tmp 000165 mv /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/modules/acore-oss__mixer_oss.ver.tmp /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/modules/acore-oss__mixer_oss.ver 000166 gcc -M -D__KERNEL__ -D__isapnp_now__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include -I/usr/src/linux/include -O2 -mpreferred-stack-boundary=2 -march=i586 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include -I/var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/alsa-kernel/core/oss -fno-omit-frame-pointer mixer_oss.c pcm_oss.c pcm_plugin.c io.c copy.c linear.c mulaw.c route.c rate.c > .depend 000167 In file included from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/sound/driver.h:42, 000168 from mixer_oss.c:22: 000169 /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/adriver.h:42:31: linux/modversions.h: No such file or directory 000170 In file included from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/sound/driver.h:42, 000171 from pcm_oss.c:29: 000172 /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/adriver.h:42:31: linux/modversions.h: No such file or directory 000173 In file included from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/sound/driver.h:42, 000174 from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/alsa-kernel/core/oss/pcm_plugin.c:27, 000175 from pcm_plugin.c:2: 000176 /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/adriver.h:42:31: linux/modversions.h: No such file or directory 000177 In file included from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/sound/driver.h:42, 000178 from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/alsa-kernel/core/oss/io.c:22, 000179 from io.c:2: 000180 /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/adriver.h:42:31: linux/modversions.h: No such file or directory 000181 In file included from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/sound/driver.h:42, 000182 from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/alsa-kernel/core/oss/copy.c:22, 000183 from copy.c:2: 000184 /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/adriver.h:42:31: linux/modversions.h: No such file or directory 000185 In file included from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/sound/driver.h:42, 000186 from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/alsa-kernel/core/oss/linear.c:23, 000187 from linear.c:2: 000188 /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/adriver.h:42:31: linux/modversions.h: No such file or directory 000189 In file included from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/sound/driver.h:42, 000190 from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/alsa-kernel/core/oss/mulaw.c:24, 000191 from mulaw.c:2: 000192 /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/adriver.h:42:31: linux/modversions.h: No such file or directory 000193 In file included from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/sound/driver.h:42, 000194 from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/alsa-kernel/core/oss/route.c:22, 000195 from route.c:2: 000196 /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/adriver.h:42:31: linux/modversions.h: No such file or directory 000197 In file included from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/sound/driver.h:42, 000198 from /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/alsa-kernel/core/oss/rate.c:22, 000199 from rate.c:2: 000200 /var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/include/adriver.h:42:31: linux/modversions.h: No such file or directory 000201 make[3]: *** [fastdep] Error 1 000202 make[3]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/acore/oss' 000203 make[2]: *** [_sfdep_oss] Error 2 000204 make[2]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3/acore' 000205 make[1]: *** [dep] Error 1 000206 make[1]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.3/work/alsa-driver-1.0.3' 000207 make: *** [include/sndversions.h] Error 2 000208 000209 !!! ERROR: media-sound/alsa-driver-1.0.3 failed. 000210 !!! Function src_compile, Line 85, Exitcode 2 000211 !!! Parallel Make Failed Reproducible: Always Steps to Reproduce: 1. emerge -u --nospinner media-sound/alsa-driver 2. 3. Actual Results: !!! ERROR: media-sound/alsa-driver-1.0.3 failed. !!! Function src_compile, Line 85, Exitcode 2 !!! Parallel Make Failed
000214 *** emerge info *** 000215 Portage 2.0.50-r3 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gaming-r3) 000216 ================================================================= 000217 System uname: 2.4.20-gaming-r3 i686 AMD Athlon(tm) Processor 000218 Gentoo Base System version 1.4.3.13 000219 Autoconf: sys-devel/autoconf-2.58-r1 000220 Automake: sys-devel/automake-1.8.3 000221 ACCEPT_KEYWORDS="x86" 000222 AUTOCLEAN="yes" 000223 CFLAGS="-O2 -march=athlon -fomit-frame-pointer -mmmx -m3dnow -pipe" 000224 CHOST="i686-pc-linux-gnu" 000225 COMPILER="gcc3" 000226 CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 000227 CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 000228 CXXFLAGS="-O2 -march=athlon -fomit-frame-pointer -mmmx -m3dnow -pipe" 000229 DISTDIR="/usr/portage/distfiles" 000230 FEATURES="autoaddcvs ccache notitles sandbox" 000231 GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo rsync://mirrors.tds.net/gentoo" 000232 MAKEOPTS="-j2" 000233 PKGDIR="/packages" 000234 PORTAGE_TMPDIR="/var/tmp" 000235 PORTDIR="/usr/portage" 000236 PORTDIR_OVERLAY="/usr/local/portage" 000237 SYNC="rsync://rsync.gentoo.org/gentoo-portage" 000238 USE="X alsa apm arts avi berkdb bonobo cdr crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg ldap libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python quicktime readline sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"
make sure /usr/src/linux points to your current kernel do you have linux-headers installed ? if so, reinstall
I can't reproduce this... alsa-driver doesn't use linux-headers... it grabs the ones in /usr/src/linux... did you actually build that kernel yet?
Yes ... I've been using it for months. I rebuilt ALSA because I picked up a new version when I did an emerge sync
Please do: ls /usr/src/linux/include/linux/modversions.h
That directory does not exist. In fact I searched from / and there is no file by that name. The closest named file was /usr/src/linux-2.4.20-gaming-r3/include/linux/modsetver.h (see below) /* Symbol versioning nastiness. */ #define __SYMBOL_VERSION(x) __ver_ ## x #define __VERSIONED_SYMBOL2(x,v) x ## _R ## v #define __VERSIONED_SYMBOL1(x,v) __VERSIONED_SYMBOL2(x,v) #define __VERSIONED_SYMBOL(x) __VERSIONED_SYMBOL1(x,__SYMBOL_VERSION(x)) #ifndef _set_ver #define _set_ver(x) __VERSIONED_SYMBOL(x) #endif Now what?
it is created when you do your 'make dep' when you build your kernel. This is not a bug with the package. It is a problem with your system. You don't have a valid kernel tree. How did you compile your kernel?
no response. setting 'worksforme'. Please reopen if you have further information...
I am in exactly the same situation as the original reporter. I built my system over Xmas from a stage 2 install following the instructions in the manual, including compiling my kernel (several times ;-)). I too have a /usr/src/linux/include/linux directory, but no modversions.h This isn't something that's changed in 2.6 is it? I notice that the original reporter is running 2.4 and so am I. The other comment I have is that there are lines in the log which read: 000048 *** NO PREDEFINED KERNEL COMPILER IS DETECTED 000049 *** Assuming the same compiler is used with the current system compiler. 000051 *** Please make sure that the same compiler version was used for building kernel. When I build my kernel at Xmas I believe I would have been using gcc 3.2. I'm now on 3.3 ...
Paul, how did you compile your kernel? Did youu do it by hand or genkernel? That file is created by 'make dep' on 2.4 kernels.
Using genkernel.
livewire: can youu look at this. is it a genkernel problem?
I believe modversions.h moved locations in 2.6 Plasmaroo is maintainer of genkernel. Adding him as cc
Hm; as far as I know that file should simply be generated automatically by the kernel build system when you build your bzImage or modules. Can you run "make bzImage modules" manually in the kernel tree? If that does not solve it; try backing up your .config and do a "make mrproper" in the tree, restore your .config, and try that again. Thanks!
I know on 2.4 systems, it gets made by make dep. Does genkernel do cleanup after the compile/install?
No; only before compilation unless --no-clean is set.
I did a 'make bzImage modules' in /usr/src/linux and a modversions.h appeared very quickly so I then started an 'emerge -u alsa-driver'. That completed successfully. Hurrah! I'm still not clear why I didn't have a modversions.h before mind you.
ps. Plasmaroo, please update the metadata.xml to reflect your maintainership. I'm reassigning to youu becasue this looks like genkernel relatedness: /usr/portage/sys-kernel/genkernel $ cat metadata.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>x86-kernel</herd> <maintainer> <email>livewire@gentoo.org</email> </maintainer> </pkgmetadata>
Closing bug as FIXED since this seems to be solved and I can't reproduce it here on various kernels since genkernel runs "make bzImage" as the last build operation before the modules which makes the header file; so feel free to reopen it if you have any more issues with. Thanks!