lm_sensors try to access "/usr/src/linux/include" in addition to /usr/include/linux/if_infiniband.h from sys-kernel/linux-headers. With FEATURES=userpriv this can give the following error (a lot of them): make -j1 CC=x86_64-pc-linux-gnu-gcc LINUX=/usr/src/linux I2C_HEADERS=/usr/src/linux/include user cc1: error: /usr/src/linux/include: Permission denied Reproducible: Always Steps to Reproduce: chown -R myfancyuser:et /usr/src/linux FEATURES="userpriv" emerge lm_sensors Actual Results: cc1: error: /usr/src/linux/include: Permission denied Expected Results: either lm_sensor should disable userpriv or, if possible && better, avoid looking at "/usr/src/linux/" at all
Please post your `emerge --info' and attach the entire build log.
Created attachment 172067 [details] terminal output of sudo emerge -B lm_sensors A question: is it correct to look into kernel sources include directory ? emerge --info * Overlay eclasses override eclasses from PORTDIR: * * '/g/ovl/kde-crazy/eclass/kde4-base.eclass' * '/g/ovl/kde-crazy/eclass/kde4-functions.eclass' * '/g/ovl/kde-crazy/eclass/kde4-meta.eclass' * * It is best to avoid overriding eclasses from PORTDIR because it will * trigger invalidation of cached ebuild metadata that is distributed with * the portage tree. If you must override eclasses from PORTDIR then you * are advised to add FEATURES="metadata-transfer" to /etc/make.conf and to * run `emerge --regen` after each time that you run `emerge --sync`. Set * PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf if you would like to * disable this warning. Portage 2.2_rc14 (selinux/2007.0/amd64, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27 x86_64) ================================================================= System uname: Linux-2.6.27-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-glibc2.2.5 Timestamp of tree: Mon, 17 Nov 2008 02:15:01 +0000 distcc 3.0 x86_64-pc-linux-gnu [disabled] ccache version 2.4 [disabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=nocona -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config /var/lib/hsqldb" 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/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=nocona -pipe" DISTDIR="/g/distfiles" FEATURES="distlocks loadpolicy metadata-transfer parallel-fetch protect-owned sandbox selinux sesandbox sfperms sign strict unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.datapipe.net/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.linux.ee/pub/gentoo/distfiles/ http://128.213.5.34/gentoo/ http://ftp.gentoo.skynet.be/pub/gentoo/ http://gentoo.tiscali.nl/gentoo/ http://gentoo.inode.at/" LANG="it_IT.UTF-8" LC_ALL="it_IT.UTF-8" LDFLAGS="-Wl,--hash-style=both" LINGUAS="it" MAKEOPTS="-j1" PKGDIR="/g/packages" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" 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="/g/tmp" PORTDIR="/home/portage/portage" PORTDIR_OVERLAY="/g/ovl/mysql /g/ovl/tmp /g/ovl/kde-crazy" SYNC="rsync://sources.pnpitalia.it/gentoo-portage" USE="3dnow X a52 aac alsa amd64 amr apache2 apm asf automount avahi avi bash-completion berkdb bitmap-fonts bluetooth browserplugin bzip2 cairo caps captury cdda cddb chm cjk cli compositor cracklib crypt cups curl dbus decibel dedicated device-mapper djvu dri dvdread emboss encode engines erandom exif exiv2 extrafilters fam fame ffmpeg firefox flac foomaticdb fortran gdbm geos gif glitz gpm gstreamer gtk2 hal hdf hdf5 hpn htmlhandbook iconv idn imagemagick imlib iproute2 ipv6 isdnlog ithreads jack java jingle jpeg jpeg2k justify kde kdeenablefinal kdehiddenvisibility kdepim kdeprefix kontact latex libg++ libwww lua lzo mad messenger midi mikmod mjpeg mmx mng motif mp3 mpeg mplayer mudflap mysql ncurses nepomuk newxkb nls nptl nptlonly odbc ogdi ogg openexr opengl openmp pam pam_chroot pcre perl plasma plugins png pppd pulseaudio python qt qt3 qt3support qt4 quicktime rdesktop readline reflection reiserfs samba sasl schroedinger screen sdl selinux server session skey slang spell spl sqlite3 sse sse2 ssl svg taglib tcltk tcpd telepathy theora threads tiff tls truetype truetype-fonts ucs2 udev unicode urandom usb userlocales utempter utils vnc vorbis xcb xcomposite xine xinerama xml xorg xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="prefork" CAMERAS="directory" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
That looks weird. Could you print `ls -l /usr/src' as well, please?
/bin/ls -l /usr/src/ totale 52 drwxr-xr-x+ 5 vivo users 4096 14 ott 13:15 build lrwxrwxrwx+ 1 vivo users 12 14 ott 15:03 linux -> linux-2.6.27 drwxr-xr-x+ 21 vivo users 4096 13 ott 14:21 linux-2.6.25.18 drwxr-xr-x+ 21 vivo users 4096 13 ott 14:33 linux-2.6.26.6 drwxr-xr-x+ 22 vivo users 4096 14 ott 16:11 linux-2.6.27 drwxr-xr-x+ 7 root root 4096 29 mar 2007 rpm drwxr-xr-x+ 2 vivo root 4096 13 ott 14:30 tmp vivo@desktop-monfi ~ $ /bin/ls -ld /usr/src/linux/include/ drwxr-xr-x+ 30 vivo users 4096 14 ott 16:11 /usr/src/linux/include/
The problem is caused by having FEATURES="userpriv" and drwxr-xr-x+ 22 vivo users 4096 14 ott 16:11 linux-2.6.27 You can solve the problem by either setting FEATURES=-userpriv (not adviseable) or by doing `chown -R root:root' the lot of it and perhaps setting sane access rights per file (which is a bit trickier than a one-liner as directories need to be treated separately from the files in them. As such, this isn't a Gentoo bug, unless you can make a claim that these kernel sources were installed exactly like that through sys-apps/portage...