Since gentoo-sources-2.6.20-r8 I have been unable to emerge kernel modules like: emerge -Dv media-libs/svgalib sys-fs/fuse x11-base/x11-drm net-wireless/ndiswrapper net-dialup/ltmodem They all fail with: ============================================== # chown root plane # chmod u+s plane i686-pc-linux-gnu-gcc -Wall -Wstrict-prototypes -fPIC -DPIC -I../include -I. -I. ./src -O2 -march=pentium3 -fomit-frame-pointer -msse -mmmx -pipe -I../gl -c -o wrapdemo.o wrapdemo.c wrapdemo.c: In function 'main': wrapdemo.c:629: warning: 'return' with no value, in function returning non-void i686-pc-linux-gnu-gcc -Wall -Wstrict-prototypes -fPIC -DPIC -I../include -I. -I../src -O2 -march=pentium3 -fomit-frame-pointer -msse -mmmx -pipe -I../gl -L../sharedlib -o wrapdemo wrapdemo.c 3dinit.o 3dkit.o quickmath.o swtriangle.o triangl.o triangle.o wrapsurf.o wtriangle.o -lm -lvgagl -lvga wrapdemo.c: In function 'main': wrapdemo.c:629: warning: 'return' with no value, in function returning non-void # chown root wrapdemo # chmod u+s wrapdemo make[1]: Leaving directory `/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/threeDKit' * Preparing svgalib_helper module make -C /lib/modules/2.6.23-gentoo-r6/build SUBDIRS=/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper CLASS_CFLAGS= modules make: *** /lib/modules/2.6.23-gentoo-r6/build: Permission denied. Stop. make: *** [default] Error 2 * * ERROR: media-libs/svgalib-1.9.25 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * svgalib-1.9.25.ebuild, line 78: Called linux-mod_src_compile * linux-mod.eclass, line 519: Called die * The specific snippet of code: * emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \ * ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \ * || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}." * The die message: * Unable to make KDIR=/lib/modules/2.6.23-gentoo-r6/build default. ============================================== I noticed the same error with gentoo-sources-2.6.23-r3, but after a while newer module ebuilds came out that would compile and build without errors, at least for some/most of the list of modules shown above (x11-base/x11-drm never managed to emerge). If this report is not appropriate, please let me know if I need to submit separate bugs for each module. Reproducible: Always Steps to Reproduce: 1.module-rebuild rebuild 2. 3. # emerge --info Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r6 i686) ================================================================= System uname: 2.6.23-gentoo-r6 i686 Intel(R) Pentium(R) III Mobile CPU 1066MHz Timestamp of tree: Fri, 25 Jan 2008 13:16:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -msse -mmmx -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -msse -mmmx -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userlocales userpriv usersandbox" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://gentoo.tiscali.nl/ http://gentoo.mirror.solnet.ch http://gentoo.virginmedia.com/ http://ftp.heanet.ie/pub/gentoo/ http://gentoo.intergenia.de" LINGUAS="en_GB el" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi alsa asf berkdb bitmap-fonts bluetooth bzip2 cairo ccache cdparanoia cdr cli cpudetection cracklib crypt css cups curl dbus divx dri dts dvd dvdr dvdread emboss encode evo fam ffmpeg firefox flac fortran gdbm gif gpm gstreamer gtalk hal hpn iconv idea imagemagick imlib irda irmc isdnlog jabber jpeg kde kerberos ldap live lm_sensors logrotate mad matroska midi mikmod mjpeg mmx mng modplug mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin ntfs ogg opengl openmp oss pam pcmcia pcre pda pdf perl pmu png ppds pppd python qt3 qt3support qt4 quicktime readline real reflection reiserfs rt2500usb scanner sdl session smime speex spell spl sse ssl svg svga tcpd theora tidy tiff truetype truetype-fonts type1-fonts unicode usb vcd vidix vorbis vram wifi win32codecs wmf x264 x86 xcomposite xine xml xorg xv xvid xvmc yv12 zlib" ALSA_CARDS="maestro3" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB el" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
> /lib/modules/2.6.23-gentoo-r6/build: Permission denied. Uhm... maybe, don't mess with default umask?
(In reply to comment #1) > > /lib/modules/2.6.23-gentoo-r6/build: Permission denied. > > Uhm... maybe, don't mess with default umask? Oops! It seems that I have set up umask as 077 for root: =========================================== # /etc/skel/.bashrc: # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.8 2003/02/28 15:45:35 azarah Exp $ # 077 would be more secure, but 022 is generally quite realistic umask 077 =========================================== The thing is I can't even recall doing this . . . which means that it must be year(s) ago. I have only started having problems emerging kernel modules with the 2.6.23-rXX series. Has anything else changed? Sorry for the noise. -- Regards, Mick
(In reply to comment #2) > The thing is I can't even recall doing this . . . which means that it must be > year(s) ago. I have only started having problems emerging kernel modules with > the 2.6.23-rXX series. Has anything else changed? Nah, unless you had KBUILD_OUTPUT set to a directory with more appropriate permissions and now have unset it - and as you noticed in Comment #0, this isn't 2.6.23+ specific for sure :) Anyway, closing.