Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295029 - Emerge of sys-apps/lm_sensors-2.10.7 and lm_sensors-2.10.8 fails under kernel 2.6.31-gentoo-r6
Summary: Emerge of sys-apps/lm_sensors-2.10.7 and lm_sensors-2.10.8 fails under kernel...
Status: RESOLVED DUPLICATE of bug 282261
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on: 301474
Blocks:
  Show dependency tree
 
Reported: 2009-11-29 11:56 UTC by Alessandro Selli
Modified: 2010-01-24 21:53 UTC (History)
11 users (show)

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


Attachments
emerge lm_sensors log file (build.log,11.85 KB, text/plain)
2009-11-29 12:00 UTC, Alessandro Selli
Details
emerge lm_sensors environment file (environment,132.50 KB, text/plain)
2009-11-29 12:01 UTC, Alessandro Selli
Details
/var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/build.log (build.log,11.85 KB, text/plain)
2009-11-30 23:58 UTC, Álvaro Morais
Details
build log (sys-apps:lm_sensors-2.10.7:20091203-194732.log,11.59 KB, text/plain)
2009-12-03 14:36 UTC, dE
Details
ebuild patch (lm_sensors.diff,621 bytes, patch)
2009-12-09 21:37 UTC, Mikhail I. Izmestev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Selli 2009-11-29 11:56:49 UTC
After updating kernel to 2.6.31-gentoo-r6, re-emerging stable package lm_sensors fails with following messages:

>>> Emerging (4 of 4) sys-apps/lm_sensors-2.10.7
 * lm_sensors-2.10.7.tar.gz RMD160 SHA1 SHA256 size ;-) ...              [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.31-gentoo-r6/build
 * Found sources for kernel version:
 *     2.6.31-gentoo-r6
>>> Unpacking source...
>>> Unpacking lm_sensors-2.10.7.tar.gz to /var/tmp/portage/sys-apps/lm_sensors-2.10.7/work
 * Applying lm_sensors-2.10.7-sensors-detect-gentoo.patch ...             [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-apps/lm_sensors-2.10.7/work
>>> Compiling source in /var/tmp/portage/sys-apps/lm_sensors-2.10.7/work/lm_sensors-2.10.7 ...
 * 
 * You may safely ignore any errors from compilation
 * that contain "No such file or directory" references.
 * 
make -j2 CC=i686-pc-linux-gnu-gcc LINUX=/usr/src/linux I2C_HEADERS=/usr/src/linux/include user 
Makefile:298: kernel/include/sensors.hd: No such file or directory
Makefile:298: lib/data.ld: No such file or directory
Makefile:298: lib/general.ld: No such file or directory
Makefile:298: lib/error.ld: No such file or directory
Makefile:298: lib/chips.ld: No such file or directory
Makefile:298: lib/proc.ld: No such file or directory
Makefile:298: lib/access.ld: No such file or directory
Makefile:298: lib/init.ld: No such file or directory
Makefile:298: lib/sysfs.ld: No such file or directory
Makefile:298: lib/data.ad: No such file or directory
Makefile:298: lib/general.ad: No such file or directory
Makefile:298: lib/error.ad: No such file or directory
Makefile:298: lib/chips.ad: No such file or directory
Makefile:298: lib/proc.ad: No such file or directory
Makefile:298: lib/access.ad: No such file or directory
Makefile:298: lib/init.ad: No such file or directory
Makefile:298: lib/sysfs.ad: No such file or directory
Makefile:298: prog/detect/i2cdetect.rd: No such file or directory
Makefile:298: prog/dump/i2cdump.rd: No such file or directory
Makefile:298: prog/dump/i2cset.rd: No such file or directory
Makefile:298: prog/dump/i2cget.rd: No such file or directory
Makefile:298: prog/dump/i2cbusses.rd: No such file or directory
Makefile:298: prog/dump/util.rd: No such file or directory
Makefile:298: prog/dump/isadump.rd: No such file or directory
Makefile:298: prog/dump/isaset.rd: No such file or directory
Makefile:298: prog/dump/superio.rd: No such file or directory
Makefile:298: prog/sensors/main.rd: No such file or directory
Makefile:298: prog/sensors/chips.rd: No such file or directory
i686-pc-linux-gnu-gcc -M -MG -DETCDIR="\"/etc\"" -I. -Ikernel/include -I/usr/src/linux/include  -Wundef -Wall -O2 -O3 -march=pentium3 -pipe -fomit-frame-pointer prog/sensors/chips.c | \

[...]

        sed -e 's@^\(.*\)\.o:@lib/data.ld lib/data.lo: Makefile '`dirname lib/data.ld`/Module.mk' @' > lib/data.ld
( grep 'SENSORS SYSCTL START' /dev/null kernel/chips/*.c | \
          sed -e 's/:.*//' -e 's#^#kernel/include/sensors.h: #' ) > kernel/include/sensors.hd
cat kernel/include/sensors.h.template > kernel/include/sensors.h
make: *** No rule to make target `asm/bitsperlong.h', needed by `prog/dump/i2cbusses.rd'.  Stop.
make: *** Waiting for unfinished jobs....
awk '/SENSORS SYSCTL START/,/SENSORS SYSCTL END/' kernel/chips/*.c >> kernel/include/sensors.h
echo '#endif' >> kernel/include/sensors.h
 * 
 * ERROR: sys-apps/lm_sensors-2.10.7 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3430:  Called die
 * The specific snippet of code:
 *       emake CC=$(tc-getCC) LINUX=${KV_DIR} I2C_HEADERS=${KV_DIR}/include user || die "emake user failed"
 *  The die message:
 *   emake user failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/environment'.
 * 

>>> Failed to emerge sys-apps/lm_sensors-2.10.7, Log file:

>>>  '/var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/build.log'


  The same thing happens while attempting to emerge unstable lm_sensors-2.10.8 with:
ACCEPT_KEYWORDS='~x86' emerge =sys-apps/lm_sensors-2.10.8

However, emerging unstable lm_sensors-3.0.2 does work:
ACCEPT_KEYWORDS='~x86' emerge =sys-apps/lm_sensors-3.0.2



Reproducible: Always

Steps to Reproduce:
1. emerge lm_sensors

Actual Results:  
Emerge stops with error message:
make: *** No rule to make target `asm/bitsperlong.h', needed by `prog/dump/i2cbusses.rd'.  Stop.


Expected Results:  
emerge should have built package with no errors.

emerge --info

Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Pentium_III_-Coppermine-with-gentoo-1.12.13
Timestamp of tree: Sun, 29 Nov 2009 10:15:02 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://marana/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.inode.at/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gentoo.inode.at/source/ http://gentoo.lagis.at/ ftp://gentoo.lagis.at/ http://gentoo.wetzlmayr.com/ http://mirror.bih.net.ba/gentoo/ ftp://mirror.bih.net.ba/gentoo/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://mirror.ovh.net/gentoo-distfiles/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirrors.ipv6.linuxant.fr/distfiles.gentoo.org/ http://mirrors.ipv6.linuxant.fr/distfiles.gentoo.org/ ftp://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://de-mirror.org/distro/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://mirror.netcologne.de/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.ntua.gr/pub/linux/gentoo/ http://files.gentoo.gr ftp://files.gentoo.gr ftp://ftp.unina.it/pub/linux/distributions/gentoo "
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apm audiofile avi berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt dbus dga directfb dri dts dvd dvdr emboss encode evo fam fbcon ffmpeg firefox flac foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 hal iconv id3 imlib ipv6 jikes jpeg ldap lesstif libnotify mad mbox mikmod mmx modules mp3 mp4 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support quicktime readline reflection rtc scanner sdl seamonkey session spell spl sse ssl startup-notification svg sysfs tcpd threads thunar tiff truetype unicode usb v4l2 vcd vorbis win32codecs x264 x86 xinetd xml xorg xulrunner xv xvid zlib" ALSA_CARDS="es1938 usb-audio" 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 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="fbdev i740 mga r128 s3 s3virge savage"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Full log /var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/build.log (12KB) and /var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/environment (133KB) files will be enclosed in a follow-up.
Comment 1 Alessandro Selli 2009-11-29 12:00:52 UTC
Created attachment 211509 [details]
emerge lm_sensors log file

Full log file /var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/build.log
Comment 2 Alessandro Selli 2009-11-29 12:01:55 UTC
Created attachment 211511 [details]
emerge lm_sensors environment file

Full /var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/environment file
Comment 3 Álvaro Morais 2009-11-30 23:54:09 UTC
Same problem here.

Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 30 Nov 2009 19:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/ ftp://darkstar.ist.utl.pt/pub/gentoo/ http://ftp.rnl.ist.utl.pt/pub/gentoo/gentoo-distfiles/ ftp://ftp.rnl.ist.utl.pt/pub/gentoo/gentoo-distfiles/ http://cesium.di.uminho.pt/pub/gentoo/ ftp://cesium.di.uminho.pt/pub/gentoo/ http://ftp.dei.uc.pt/pub/linux/gentoo/ ftp://ftp.dei.uc.pt/pub/linux/gentoo/ "
LANG="pt_PT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pt pt_PT en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 artworkextra autoipd automount avahi bash-completion beagle berkdb bonjour bookmarks bzip2 cdda cddax cdr cdrom cleartype cli consolekit cracklib crypt cups dbus desktopglobe dirac directfb disk-partition dri dvd dvdr emerald encode esd eselect ext4 fbcon fbcondecor flac floppy fortran fusion gdbm gif gnome gnomecd gpm gstreamer gtk hal howl-compat iconv id3tag imagemagick ipv6 ithreads java jbig jpeg jpeg2k kde kde4 lame laptop libcaca libnotify libtiger lzo mad matroska mdnsresponder-compat mmx mng modules mp3 mpeg mudflap multilib mysql nautilus ncurses nls nptl nptlonly nsplugin ntfs ogg opengl openmp pam pch pcre pdf perl phonon plasma png policykit pppd pulseaudio python qt qt3support qt4 quicktime rar readline reflection reiserfs samba schroedinger semantic-desktop session spell spl sql sse sse2 ssl ssse3 startup-notification svg swat sysfs syslog tcpd tga theora threads thumbnail tiff truetype twolame ufs unicode usb v4l v4l2 vdpau vhook vim-syntax vorbis wav wavpack webkit wicd wmf x264 xorg xulrunner xv xvid zeroconf 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 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt pt_PT en" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #0)
> After updating kernel to 2.6.31-gentoo-r6, re-emerging stable package
> lm_sensors fails with following messages:
> 
> >>> Emerging (4 of 4) sys-apps/lm_sensors-2.10.7
>  * lm_sensors-2.10.7.tar.gz RMD160 SHA1 SHA256 size ;-) ...              [ ok ]
>  * checking ebuild checksums ;-) ...                                     [ ok ]
>  * checking auxfile checksums ;-) ...                                    [ ok ]
>  * checking miscfile checksums ;-) ...                                   [ ok ]
>  * Determining the location of the kernel source code
>  * Found kernel source directory:
>  *     /usr/src/linux
>  * Found kernel object directory:
>  *     /lib/modules/2.6.31-gentoo-r6/build
>  * Found sources for kernel version:
>  *     2.6.31-gentoo-r6
> >>> Unpacking source...
> >>> Unpacking lm_sensors-2.10.7.tar.gz to /var/tmp/portage/sys-apps/lm_sensors-2.10.7/work
>  * Applying lm_sensors-2.10.7-sensors-detect-gentoo.patch ...             [ ok
> ]
> >>> Source unpacked in /var/tmp/portage/sys-apps/lm_sensors-2.10.7/work
> >>> Compiling source in /var/tmp/portage/sys-apps/lm_sensors-2.10.7/work/lm_sensors-2.10.7 ...
>  * 
>  * You may safely ignore any errors from compilation
>  * that contain "No such file or directory" references.
>  * 
> make -j2 CC=i686-pc-linux-gnu-gcc LINUX=/usr/src/linux
> I2C_HEADERS=/usr/src/linux/include user 
> Makefile:298: kernel/include/sensors.hd: No such file or directory
> Makefile:298: lib/data.ld: No such file or directory
> Makefile:298: lib/general.ld: No such file or directory
> Makefile:298: lib/error.ld: No such file or directory
> Makefile:298: lib/chips.ld: No such file or directory
> Makefile:298: lib/proc.ld: No such file or directory
> Makefile:298: lib/access.ld: No such file or directory
> Makefile:298: lib/init.ld: No such file or directory
> Makefile:298: lib/sysfs.ld: No such file or directory
> Makefile:298: lib/data.ad: No such file or directory
> Makefile:298: lib/general.ad: No such file or directory
> Makefile:298: lib/error.ad: No such file or directory
> Makefile:298: lib/chips.ad: No such file or directory
> Makefile:298: lib/proc.ad: No such file or directory
> Makefile:298: lib/access.ad: No such file or directory
> Makefile:298: lib/init.ad: No such file or directory
> Makefile:298: lib/sysfs.ad: No such file or directory
> Makefile:298: prog/detect/i2cdetect.rd: No such file or directory
> Makefile:298: prog/dump/i2cdump.rd: No such file or directory
> Makefile:298: prog/dump/i2cset.rd: No such file or directory
> Makefile:298: prog/dump/i2cget.rd: No such file or directory
> Makefile:298: prog/dump/i2cbusses.rd: No such file or directory
> Makefile:298: prog/dump/util.rd: No such file or directory
> Makefile:298: prog/dump/isadump.rd: No such file or directory
> Makefile:298: prog/dump/isaset.rd: No such file or directory
> Makefile:298: prog/dump/superio.rd: No such file or directory
> Makefile:298: prog/sensors/main.rd: No such file or directory
> Makefile:298: prog/sensors/chips.rd: No such file or directory
> i686-pc-linux-gnu-gcc -M -MG -DETCDIR="\"/etc\"" -I. -Ikernel/include
> -I/usr/src/linux/include  -Wundef -Wall -O2 -O3 -march=pentium3 -pipe
> -fomit-frame-pointer prog/sensors/chips.c | \
> 
> [...]
> 
>         sed -e 's@^\(.*\)\.o:@lib/data.ld lib/data.lo: Makefile '`dirname
> lib/data.ld`/Module.mk' @' > lib/data.ld
> ( grep 'SENSORS SYSCTL START' /dev/null kernel/chips/*.c | \
>           sed -e 's/:.*//' -e 's#^#kernel/include/sensors.h: #' ) >
> kernel/include/sensors.hd
> cat kernel/include/sensors.h.template > kernel/include/sensors.h
> make: *** No rule to make target `asm/bitsperlong.h', needed by
> `prog/dump/i2cbusses.rd'.  Stop.
> make: *** Waiting for unfinished jobs....
> awk '/SENSORS SYSCTL START/,/SENSORS SYSCTL END/' kernel/chips/*.c >>
> kernel/include/sensors.h
> echo '#endif' >> kernel/include/sensors.h
>  * 
>  * ERROR: sys-apps/lm_sensors-2.10.7 failed.
>  * Call stack:
>  *               ebuild.sh, line   49:  Called src_compile
>  *             environment, line 3430:  Called die
>  * The specific snippet of code:
>  *       emake CC=$(tc-getCC) LINUX=${KV_DIR} I2C_HEADERS=${KV_DIR}/include
> user || die "emake user failed"
>  *  The die message:
>  *   emake user failed
>  * 
>  * If you need support, post the topmost build error, and the call stack if
> relevant.
>  * A complete build log is located at
> '/var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/build.log'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/environment'.
>  * 
> 
> >>> Failed to emerge sys-apps/lm_sensors-2.10.7, Log file:
> 
> >>>  '/var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/build.log'
> 
> 
>   The same thing happens while attempting to emerge unstable lm_sensors-2.10.8
> with:
> ACCEPT_KEYWORDS='~x86' emerge =sys-apps/lm_sensors-2.10.8
> 
> However, emerging unstable lm_sensors-3.0.2 does work:
> ACCEPT_KEYWORDS='~x86' emerge =sys-apps/lm_sensors-3.0.2
> 
> 
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. emerge lm_sensors
> 
> Actual Results:  
> Emerge stops with error message:
> make: *** No rule to make target `asm/bitsperlong.h', needed by
> `prog/dump/i2cbusses.rd'.  Stop.
> 
> 
> Expected Results:  
> emerge should have built package with no errors.
> 
> emerge --info
> 
> Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4,
> glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 i686)
> =================================================================
> System uname:
> Linux-2.6.31-gentoo-r6-i686-Pentium_III_-Coppermine-with-gentoo-1.12.13
> Timestamp of tree: Sun, 29 Nov 2009 10:15:02 +0000
> app-shells/bash:     4.0_p28
> dev-java/java-config: 2.1.9-r1
> dev-lang/python:     2.6.2-r1
> sys-apps/baselayout: 1.12.13
> sys-apps/sandbox:    1.6-r2
> sys-devel/autoconf:  2.13, 2.63-r1
> sys-devel/automake:  1.9.6-r2, 1.10.2
> sys-devel/binutils:  2.18-r3
> sys-devel/gcc-config: 1.4.1
> sys-devel/libtool:   2.2.6a
> virtual/os-headers:  2.6.27-r2
> ACCEPT_KEYWORDS="x86"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer"
> CHOST="i686-pc-linux-gnu"
> CONFIG_PROTECT="/etc /var/bind"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
> /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d
> /etc/terminfo /etc/udev/rules.d"
> CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms
> strict unmerge-orphans userfetch"
> GENTOO_MIRRORS="ftp://marana/ http://gd.tuwien.ac.at/opsys/linux/gentoo/
> http://gentoo.inode.at/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/
> ftp://gentoo.inode.at/source/ http://gentoo.lagis.at/ ftp://gentoo.lagis.at/
> http://gentoo.wetzlmayr.com/ http://mirror.bih.net.ba/gentoo/
> ftp://mirror.bih.net.ba/gentoo/ ftp://gentoo.imj.fr/pub/gentoo/
> ftp://mirror.ovh.net/gentoo-distfiles/
> http://mirrors.linuxant.fr/distfiles.gentoo.org/
> http://mirror.ovh.net/gentoo-distfiles/
> ftp://ftp.free.fr/mirrors/ftp.gentoo.org/
> ftp://mirrors.ipv6.linuxant.fr/distfiles.gentoo.org/
> http://mirrors.ipv6.linuxant.fr/distfiles.gentoo.org/
> ftp://mirrors.linuxant.fr/distfiles.gentoo.org/
> ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/
> http://mirror.netcologne.de/gentoo/
> ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
> ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
> http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/
> ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
> ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
> http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/
> ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/
> ftp://de-mirror.org/distro/gentoo/
> http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
> http://ftp6.uni-erlangen.de/pub/mirrors/gentoo
> ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
> ftp://mirror.netcologne.de/gentoo/
> ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo
> ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo
> ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
> http://ftp.uni-erlangen.de/pub/mirrors/gentoo
> http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/
> ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo
> http://ftp.cc.uoc.gr/mirrors/linux/gentoo/
> ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/
> ftp://ftp.ntua.gr/pub/linux/gentoo/ http://files.gentoo.gr
> ftp://files.gentoo.gr ftp://ftp.unina.it/pub/linux/distributions/gentoo "
> LANG="it_IT.utf8"
> LDFLAGS="-Wl,-O1"
> LINGUAS="it"
> MAKEOPTS="-j2"
> PKGDIR="/usr/portage/packages"
> PORTAGE_CONFIGROOT="/"
> 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="/var/tmp"
> PORTDIR="/usr/portage"
> SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
> USE="X a52 aac acl acpi alsa apm audiofile avi berkdb bluetooth branding bzip2
> cairo cdda cddb cdr cli consolekit cracklib crypt dbus dga directfb dri dts dvd
> dvdr emboss encode evo fam fbcon ffmpeg firefox flac foomaticdb fortran gdbm
> gif gpm gstreamer gtk gtk2 hal iconv id3 imlib ipv6 jikes jpeg ldap lesstif
> libnotify mad mbox mikmod mmx modules mp3 mp4 mpeg mplayer mudflap ncurses nls
> nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png ppds pppd
> python qt3support quicktime readline reflection rtc scanner sdl seamonkey
> session spell spl sse ssl startup-notification svg sysfs tcpd threads thunar
> tiff truetype unicode usb v4l2 vcd vorbis win32codecs x264 x86 xinetd xml xorg
> xulrunner xv xvid zlib" ALSA_CARDS="es1938 usb-audio" 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 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz
> cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it"
> SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="fbdev i740 mga r128 s3 s3virge
> savage"
> Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL,
> PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
> PORTDIR_OVERLAY
> 
> 
> Full log /var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/build.log (12KB) and
> /var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/environment (133KB) files will
> be enclosed in a follow-up.
> 

Comment 4 Álvaro Morais 2009-11-30 23:58:58 UTC
Created attachment 211640 [details]
/var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/build.log
Comment 5 dE 2009-12-03 14:35:19 UTC
Confirming bug, though I'm not sure if it's specific to 2.6.31-r6

-Wall -O2 -march=athlon64 -O2 -pipe lib/chips.c | \

	sed -e 's@^\(.*\)\.o:@lib/chips.ad lib/chips.ao: Makefile '`dirname lib/chips.ad`/Module.mk' @' > lib/chips.ad

x86_64-pc-linux-gnu-gcc -M -MG -I. -Ikernel/include -I/usr/src/linux/include  -DSYSFS_SUPPORT -Wall -O2 -march=athlon64 -O2 -pipe lib/error.c | \

	sed -e 's@^\(.*\)\.o:@lib/error.ad lib/error.ao: Makefile '`dirname lib/error.ad`/Module.mk' @' > lib/error.ad

x86_64-pc-linux-gnu-gcc -M -MG -I. -Ikernel/include -I/usr/src/linux/include  -DSYSFS_SUPPORT -Wall -O2 -march=athlon64 -O2 -pipe lib/general.c | \

	sed -e 's@^\(.*\)\.o:@lib/general.ad lib/general.ao: Makefile '`dirname lib/general.ad`/Module.mk' @' > lib/general.ad

x86_64-pc-linux-gnu-gcc -M -MG -I. -Ikernel/include -I/usr/src/linux/include  -DSYSFS_SUPPORT -Wall -O2 -march=athlon64 -O2 -pipe lib/data.c | \

	sed -e 's@^\(.*\)\.o:@lib/data.ad lib/data.ao: Makefile '`dirname lib/data.ad`/Module.mk' @' > lib/data.ad

x86_64-pc-linux-gnu-gcc -M -MG -I. -Ikernel/include -I/usr/src/linux/include  -DSYSFS_SUPPORT -fpic -D_REENTRANT -Wall -O2 -march=athlon64 -O2 -pipe lib/sysfs.c | \

	sed -e 's@^\(.*\)\.o:@lib/sysfs.ld lib/sysfs.lo: Makefile '`dirname lib/sysfs.ld`/Module.mk' @' > lib/sysfs.ld

x86_64-pc-linux-gnu-gcc -M -MG -I. -Ikernel/include -I/usr/src/linux/include  -DSYSFS_SUPPORT -fpic -D_REENTRANT -Wall -O2 -march=athlon64 -O2 -pipe lib/init.c | \

	sed -e 's@^\(.*\)\.o:@lib/init.ld lib/init.lo: Makefile '`dirname lib/init.ld`/Module.mk' @' > lib/init.ld

x86_64-pc-linux-gnu-gcc -M -MG -I. -Ikernel/include -I/usr/src/linux/include  -DSYSFS_SUPPORT -fpic -D_REENTRANT -Wall -O2 -march=athlon64 -O2 -pipe lib/access.c | \

	sed -e 's@^\(.*\)\.o:@lib/access.ld lib/access.lo: Makefile '`dirname lib/access.ld`/Module.mk' @' > lib/access.ld

x86_64-pc-linux-gnu-gcc -M -MG -I. -Ikernel/include -I/usr/src/linux/include  -DSYSFS_SUPPORT -fpic -D_REENTRANT -Wall -O2 -march=athlon64 -O2 -pipe lib/proc.c | \

	sed -e 's@^\(.*\)\.o:@lib/proc.ld lib/proc.lo: Makefile '`dirname lib/proc.ld`/Module.mk' @' > lib/proc.ld

x86_64-pc-linux-gnu-gcc -M -MG -I. -Ikernel/include -I/usr/src/linux/include  -DSYSFS_SUPPORT -fpic -D_REENTRANT -Wall -O2 -march=athlon64 -O2 -pipe lib/chips.c | \

	sed -e 's@^\(.*\)\.o:@lib/chips.ld lib/chips.lo: Makefile '`dirname lib/chips.ld`/Module.mk' @' > lib/chips.ld

x86_64-pc-linux-gnu-gcc -M -MG -I. -Ikernel/include -I/usr/src/linux/include  -DSYSFS_SUPPORT -fpic -D_REENTRANT -Wall -O2 -march=athlon64 -O2 -pipe lib/error.c | \

	sed -e 's@^\(.*\)\.o:@lib/error.ld lib/error.lo: Makefile '`dirname lib/error.ld`/Module.mk' @' > lib/error.ld

x86_64-pc-linux-gnu-gcc -M -MG -I. -Ikernel/include -I/usr/src/linux/include  -DSYSFS_SUPPORT -fpic -D_REENTRANT -Wall -O2 -march=athlon64 -O2 -pipe lib/general.c | \

	sed -e 's@^\(.*\)\.o:@lib/general.ld lib/general.lo: Makefile '`dirname lib/general.ld`/Module.mk' @' > lib/general.ld

x86_64-pc-linux-gnu-gcc -M -MG -I. -Ikernel/include -I/usr/src/linux/include  -DSYSFS_SUPPORT -fpic -D_REENTRANT -Wall -O2 -march=athlon64 -O2 -pipe lib/data.c | \

	sed -e 's@^\(.*\)\.o:@lib/data.ld lib/data.lo: Makefile '`dirname lib/data.ld`/Module.mk' @' > lib/data.ld

( grep 'SENSORS SYSCTL START' /dev/null kernel/chips/*.c | \

	  sed -e 's/:.*//' -e 's#^#kernel/include/sensors.h: #' ) > kernel/include/sensors.hd

cat kernel/include/sensors.h.template > kernel/include/sensors.h

* ERROR: sys-apps/lm_sensors-2.10.7 failed:
 *   emake user failed
 * 
 * Call stack:
 *     ebuild.sh, line  49:  Called src_compile
 *   environment, line 3536:  Called die
 * The specific snippet of code:
 *       emake CC=$(tc-getCC) LINUX=${KV_DIR} I2C_HEADERS=${KV_DIR}/include user || die "emake user failed"
 * 
 * If you need support, post the output of 'emerge --info =sys-apps/lm_sensors-2.10.7',
 * the complete build log and the output of 'emerge -pqv =sys-apps/lm_sensors-2.10.7'.
 * The complete build log is located at '/tmp/sys-apps:lm_sensors-2.10.7:20091203-194732.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/environment'.
 * S: '/var/tmp/portage/sys-apps/lm_sensors-2.10.7/work/lm_sensors-2.10.7'

>>> Failed to emerge sys-apps/lm_sensors-2.10.7, Log file:

>>>  '/tmp/sys-apps:lm_sensors-2.10.7:20091203-194732.log'

 * Messages for package sys-apps/lm_sensors-2.10.7:

 * 
 * sensors-detect requires CONFIG_I2C_CHARDEV to be enabled for non-2.4.x kernels.
 * 
 * ERROR: sys-apps/lm_sensors-2.10.7 failed:
 *   emake user failed
 * 
 * Call stack:
 *     ebuild.sh, line  49:  Called src_compile
 *   environment, line 3536:  Called die
 * The specific snippet of code:
 *       emake CC=$(tc-getCC) LINUX=${KV_DIR} I2C_HEADERS=${KV_DIR}/include user || die "emake user failed"
 * 
 * If you need support, post the output of 'emerge --info =sys-apps/lm_sensors-2.10.7',
 * the complete build log and the output of 'emerge -pqv =sys-apps/lm_sensors-2.10.7'.
 * The complete build log is located at '/tmp/sys-apps:lm_sensors-2.10.7:20091203-194732.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/lm_sensors-2.10.7/temp/environment'.
 * S: '/var/tmp/portage/sys-apps/lm_sensors-2.10.7/work/lm_sensors-2.10.7'
Comment 6 dE 2009-12-03 14:36:03 UTC
Created attachment 211858 [details]
build log
Comment 7 Jeremy Stephens 2009-12-06 21:30:47 UTC
viking415@gmail.com
Comment 8 Oliver Sloss 2009-12-07 21:37:19 UTC
this problem happens to me too:

make: *** No rule to make target `asm/bitsperlong.h'

2.6.31-gentoo-r4
Comment 9 Sylvain Raybaud 2009-12-09 16:49:23 UTC
same problem here:
kernel=2.6.31-gentoo-r6
arch=x86_64
version of lm_sensors=2.10.7

good luck
Comment 10 Sylvain Raybaud 2009-12-09 17:42:13 UTC
(In reply to comment #9)
> same problem here:
> kernel=2.6.31-gentoo-r6
> arch=x86_64
> version of lm_sensors=2.10.7
> 
> good luck
> 

(In reply to comment #9)
> same problem here:
> kernel=2.6.31-gentoo-r6
> arch=x86_64
> version of lm_sensors=2.10.7
> 
> good luck
> 

really ugly hack because I'm not able to write a proper patch and I just want to get through this:
cd /usr/src/linux/include/asm
ln -s ../asm-generic/bitsperlong.h .

Yes, feel ashamed
Comment 11 Mikhail I. Izmestev 2009-12-09 21:37:39 UTC
Created attachment 212574 [details, diff]
ebuild patch

Into linux kernel mailing list archives I have founded same problem: http://linux.derkeiler.com/Mailing-Lists/Kernel/2009-09/msg10738.html

Attached patch works for me
kernel=2.6.31-gentoo-r6
arch=x86_64
lm_sensors=2.10.7
Comment 12 Jeremy Murphy 2009-12-10 15:18:12 UTC
I think this is a duplicate of bug #282261.  This topic was discussed quite a bit there and on the bug request for version 3.  The short story is that you should keyword lm_sensors and install 3.1.1.  Cheers.
Comment 13 Alessandro Selli 2009-12-17 20:10:57 UTC
(In reply to comment #12)
> I think this is a duplicate of bug #282261.  This topic was discussed quite a
> bit there and on the bug request for version 3.  The short story is that you
> should keyword lm_sensors and install 3.1.1.  Cheers.

So I take this bug will have to be marked as INVALID as well, right?

Comment 14 Kobboi 2010-01-01 13:11:02 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > I think this is a duplicate of bug #282261.  This topic was discussed quite a
> > bit there and on the bug request for version 3.  The short story is that you
> > should keyword lm_sensors and install 3.1.1.  Cheers.
> 
> So I take this bug will have to be marked as INVALID as well, right?
> 

Why? If the ebuild checks for the right kernel configuration, surely it can also check for a kernel version and at least give the user instructions on how to proceed?
Comment 15 Stuart Luppescu 2010-01-09 21:34:04 UTC
(In reply to comment #12)
> I think this is a duplicate of bug #282261.  This topic was discussed quite a
> bit there and on the bug request for version 3.  The short story is that you
> should keyword lm_sensors and install 3.1.1.  Cheers.

OK, I keyworded lm_sensors but now I'm getting the same message trying to build wmsensormon and xsensors. What's up with that?
Comment 16 DEMAINE Benoît-Pierre, aka DoubleHP 2010-01-19 02:18:48 UTC
Any one can explain me why this bug is not yet marked dup of bug #282261 ?

sys-apps/lm_sensors-3.1.1 STABLE REQ : bug #301474
Comment 17 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2010-01-24 21:53:24 UTC
this is fixed in cvs. sorry for the long wait

*** This bug has been marked as a duplicate of bug 282261 ***