When I try to update lm-sensors from version 2.6.5 to 2.7.0-r1, I get the following error message during the compile: make: *** No rule to make target `i2c.h', needed by `kernel/busses/i2c-voodoo3.d'. Stop. This causes the compile to fail. Note that I have built version 2.4.20-r5 of kernel sys-kernel/gentoo-sources, and have i2c support compiled in. Reproducible: Always Steps to Reproduce: 1. sudo emerge -u lm-sensors Actual Results: I get the above error message, and the compile fails. Expected Results: It should have compiled lm-sensors 2.7.0-r1. Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r4 i686 Pentium III (Coppermine) GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline arts tetex bonobo svga tcltk java guile ruby X sdl gpm tcpd pam libwww ssl python esd imlib oggvorbis gnome gtk qt kde motif opengl snmp acpi cdr dvd gphoto2 mozilla mysql odbc perl pic samba tiff usb wmf" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -O3 -pipe" CXXFLAGS="-march=i686 -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="ccache sandbox userpriv usersandbox fixpackages digest"
emerge gentoolkit if you haven't already and check: qpkg -I -v lm-sensors and qpkg -I -v i2c also, is /usr/src/linux properly symlinked to /usr/src/linux-2.4.20-gentoo-r5
Created attachment 14292 [details] Requested information + the .config file from my kernel compilation penguin root # qpkg -I -v lm-sensors sys-apps/lm_sensors-2.6.5 * penguin root # qpkg -I -v i2c sys-apps/i2c-2.7.0 * Note: The link "linux" was not originally set correctly (it was pointing to linux-2.4.20-gentoo-r4), but when it was corrected and lm-sensors was re-compiled, I got the same error. See below for its current setting ... penguin root # cd /usr/src penguin src # ls -la | grep linux lrwxr-xr-x 1 root root 22 Jul 8 07:35 linux -> linux-2.4.20-gentoo-r5 drwxr-xr-x 13 root root 4096 Jan 17 22:38 linux-2.4.19 drwxr-xr-x 14 root root 4096 Nov 30 2002 linux-2.4.20 drwxr-xr-x 16 root root 4096 Mar 23 22:21 linux-2.4.20-gentoo-r1 drwxr-xr-x 17 root root 4096 Mar 22 07:31 linux-2.4.20-gentoo-r2 drwxr-xr-x 16 root root 4096 May 9 02:43 linux-2.4.20-gentoo-r4 drwxr-xr-x 16 root root 4096 Jul 8 07:34 linux-2.4.20-gentoo-r5
Compile successful: 2.4.20-gentoo-r5 i2c kernel support (i2c-core) compiled as module, not loaded during compile as suggested on lm-sensors page. emerge -dv i2c lm-sensors
make that i2c-core i2c-dev and i2c-proc, forgot to mention those, sorry.
This seems to have been resolved...
Although "m1kee" seems to have gotten the problem resolved, I have not. The problem still occurs exactly as stated.
>> and have i2c support compiled in. << Yes, you do... You should not have *any* of it compiled in. It needs to be disabled or modularized [at the bottom of the i2c-2.7.0 ebuild]... Try now. Also make sure none of those modules are loaded while you're compiling... Also, try just merging, skipping the -u flag. From your config: CONFIG_I2C=y << change to m CONFIG_I2C_ALGOBIT=m CONFIG_I2C_PHILIPSPAR=m CONFIG_I2C_ELV=m CONFIG_I2C_VELLEMAN=m CONFIG_I2C_PPORT=m CONFIG_I2C_ALGOPCF=m CONFIG_I2C_ELEKTOR=m CONFIG_I2C_PCFEPP=m CONFIG_I2C_CHARDEV=y << change to m CONFIG_I2C_PROC=y << change to m
Created attachment 16086 [details] Current Linux .config
I previously re-compiled the kernel with i2c settings as suggested, did an unmerge of the previous lm-sensors, and then did an emerge (without the -u) of lm-sensors. I still got the same error. See the previous attachment for my updated .config file.
Try moving /usr/include/linux/i2c.h to your kernel include dir and see what happens...It looks possible that your kernel has 2.6.5 i2c includes in it. If it's not that and if I remember correctly, try doing this to the ebuild: Change: emake I2C_HEADERS=${MYI2C} clean all to: emake clean emake I2C_HEADERS=${MYI2C}
Is this bug still relevant? If so, have you removed the old 2.6.5 I2C? There may be conflicting headers... Also make sure the I2C ebuild is merged, not just the kernel modules.
>> Is this bug still relevant? If I get no reply within a bit I'll assume it's fixed << Thanks...
Idle bug, resolving as NEEDINFO