Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23933 - Unable to compile sys-apps/lm-sensors-2.7.0-r1
Summary: Unable to compile sys-apps/lm-sensors-2.7.0-r1
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-03 19:28 UTC by Doug Lacy
Modified: 2003-10-01 14:58 UTC (History)
2 users (show)

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


Attachments
Requested information + the .config file from my kernel compilation (.config,33.08 KB, text/plain)
2003-07-08 17:21 UTC, Doug Lacy
Details
Current Linux .config (.config,33.04 KB, text/plain)
2003-08-14 04:56 UTC, Doug Lacy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Lacy 2003-07-03 19:28:03 UTC
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"
Comment 1 Brandon Low (RETIRED) gentoo-dev 2003-07-06 17:09:08 UTC
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
Comment 2 Doug Lacy 2003-07-08 17:21:17 UTC
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
Comment 3 m1kee 2003-07-20 07:56:30 UTC
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
Comment 4 m1kee 2003-07-20 09:36:45 UTC
make that i2c-core i2c-dev and i2c-proc, forgot to mention those, sorry.
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2003-08-13 11:56:22 UTC
This seems to have been resolved...
Comment 6 Doug Lacy 2003-08-14 04:38:24 UTC
Although "m1kee" seems to have gotten the problem resolved, I have not. The problem still occurs exactly as stated.
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2003-08-14 04:43:40 UTC
>> 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
Comment 8 Doug Lacy 2003-08-14 04:56:09 UTC
Created attachment 16086 [details]
Current Linux .config
Comment 9 Doug Lacy 2003-08-14 04:59:05 UTC
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.
Comment 10 Tim Yamin (RETIRED) gentoo-dev 2003-08-16 12:41:28 UTC
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}
Comment 11 Tim Yamin (RETIRED) gentoo-dev 2003-08-18 18:10:56 UTC
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.
Comment 12 Tim Yamin (RETIRED) gentoo-dev 2003-09-28 14:05:32 UTC
>> Is this bug still relevant? If I get no reply within a bit I'll assume
it's fixed << Thanks...
Comment 13 Tim Yamin (RETIRED) gentoo-dev 2003-10-01 14:58:22 UTC
Idle bug, resolving as NEEDINFO