Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21981 - sys-apps/i2c-2.7.0 fails build under 2.5.69 kernel
Summary: sys-apps/i2c-2.7.0 fails build under 2.5.69 kernel
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-31 00:24 UTC by J.C. Wren
Modified: 2003-06-08 15:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J.C. Wren 2003-05-31 00:24:18 UTC
lm-sensors requires sys-apps/i2c as a dependency.  sys-apps/i2c-2.7.0 is failing
to build due to a system header file (irq_vectors.h) that has been relocated
from /usr/src/linux/include/asm-i386 to
/usr/src/linux/include/asm-i386/mach-default.

Reproducible: Always
Steps to Reproduce:
emerge sys-apps/irq
Actual Results:  
Calculating dependencies ...done!
>>> emerge (1 of 2) sys-apps/i2c-2.7.0 to /
>>> md5 src_uri ;-) i2c-2.7.0.tar.gz
>>> Unpacking source...
>>> Unpacking i2c-2.7.0.tar.gz to /var/tmp/portage/i2c-2.7.0/work
>>> Source unpacked.
Makefile:188: kernel/i2c-philips-par.d: No such file or directory
Makefile:188: kernel/i2c-elv.d: No such file or directory
Makefile:188: kernel/i2c-velleman.d: No such file or directory
Makefile:188: kernel/i2c-algo-pcf.d: No such file or directory
Makefile:188: kernel/i2c-elektor.d: No such file or directory
Makefile:188: kernel/i2c-proc.d: No such file or directory
Makefile:188: kernel/i2c-pport.d: No such file or directory
Makefile:188: kernel/i2c-pcf-epp.d: No such file or directory
gcc -M -MG -I/lib/modules/2.5.69/build/include -O2 -DLM_SENSORS -D__KERNEL__
-DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB kernel/i2c-pcf-epp.c | \
sed -e 's@^\(.*\)\.o:@kernel/i2c-pcf-epp.d kernel/i2c-pcf-epp.o: Makefile
'`dirname kernel/i2c-pcf-epp.d`/Module.mk' @' > kernel/i2c-pcf-epp.d
gcc -M -MG -I/lib/modules/2.5.69/build/include -O2 -DLM_SENSORS -D__KERNEL__
-DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB kernel/i2c-pport.c | \
sed -e 's@^\(.*\)\.o:@kernel/i2c-pport.d kernel/i2c-pport.o: Makefile '`dirname
kernel/i2c-pport.d`/Module.mk' @' > kernel/i2c-pport.d
gcc -M -MG -I/lib/modules/2.5.69/build/include -O2 -DLM_SENSORS -D__KERNEL__
-DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB kernel/i2c-proc.c | \
sed -e 's@^\(.*\)\.o:@kernel/i2c-proc.d kernel/i2c-proc.o: Makefile '`dirname
kernel/i2c-proc.d`/Module.mk' @' > kernel/i2c-proc.d
gcc -M -MG -I/lib/modules/2.5.69/build/include -O2 -DLM_SENSORS -D__KERNEL__
-DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB kernel/i2c-elektor.c | \
sed -e 's@^\(.*\)\.o:@kernel/i2c-elektor.d kernel/i2c-elektor.o: Makefile
'`dirname kernel/i2c-elektor.d`/Module.mk' @' > kernel/i2c-elektor.d
gcc -M -MG -I/lib/modules/2.5.69/build/include -O2 -DLM_SENSORS -D__KERNEL__
-DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB kernel/i2c-algo-pcf.c | \
sed -e 's@^\(.*\)\.o:@kernel/i2c-algo-pcf.d kernel/i2c-algo-pcf.o: Makefile
'`dirname kernel/i2c-algo-pcf.d`/Module.mk' @' > kernel/i2c-algo-pcf.d
gcc -M -MG -I/lib/modules/2.5.69/build/include -O2 -DLM_SENSORS -D__KERNEL__
-DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB kernel/i2c-velleman.c | \
sed -e 's@^\(.*\)\.o:@kernel/i2c-velleman.d kernel/i2c-velleman.o: Makefile
'`dirname kernel/i2c-velleman.d`/Module.mk' @' > kernel/i2c-velleman.d
gcc -M -MG -I/lib/modules/2.5.69/build/include -O2 -DLM_SENSORS -D__KERNEL__
-DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB kernel/i2c-elv.c | \
sed -e 's@^\(.*\)\.o:@kernel/i2c-elv.d kernel/i2c-elv.o: Makefile '`dirname
kernel/i2c-elv.d`/Module.mk' @' > kernel/i2c-elv.d
gcc -M -MG -I/lib/modules/2.5.69/build/include -O2 -DLM_SENSORS -D__KERNEL__
-DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB kernel/i2c-philips-par.c | \
sed -e 's@^\(.*\)\.o:@kernel/i2c-philips-par.d kernel/i2c-philips-par.o:
Makefile '`dirname kernel/i2c-philips-par.d`/Module.mk' @' >
kernel/i2c-philips-par.d
make: *** No rule to make target `irq_vectors.h', needed by
`kernel/i2c-pcf-epp.d'.  Stop.

!!! ERROR: sys-apps/i2c-2.7.0 failed.
!!! Function src_compile, Line 18, Exitcode 2
!!! i2c requires the source of a compatible kernel\nversion installed in
/usr/src/linux\nand kernel i2c *disabled* or *enabled as a module*



Expected Results:  
Should build correctly :)

Portage 2.0.48 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.5.69 i686 AMD Athlon(tm) processor
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 /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/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=""
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg gnome libg++ mikmod mmx
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm
berkdb slang readline arts tetex bonobo svga tcltk java guile X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O3 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 J.C. Wren 2003-05-31 00:28:28 UTC
irq_vectors can be found:

locate irq_vectors.h
/usr/src/linux-2.5.69/include/asm-um/irq_vectors.h
/usr/src/linux-2.5.69/include/asm-i386/mach-voyager/irq_vectors.h
/usr/src/linux-2.5.69/include/asm-i386/mach-default/irq_vectors.h
/usr/src/linux-2.5.69/include/asm-i386/mach-pc9800/irq_vectors.h
/usr/src/linux-2.5.69/include/asm-i386/mach-visws/irq_vectors.h
Comment 2 Brandon Low (RETIRED) gentoo-dev 2003-05-31 22:01:21 UTC
The current i2c package is incompatible with the in-kernel i2c in all kernels... maybe I'll do an i2c and lm_sensors CVS snapshot that would make it better...
Comment 3 J.C. Wren 2003-05-31 23:26:51 UTC
Not having looked at the guts of lm_sensors, why does it require modules and not tolerate in-kernel support?  That seems contra-linux.
Comment 4 Brandon Low (RETIRED) gentoo-dev 2003-05-31 23:35:14 UTC
Doesn't require modules... it can work fine with I2C built into the kernel... just have to selec particular options as you do the sensors-detect process.
Comment 5 Brandon Low (RETIRED) gentoo-dev 2003-06-08 15:54:33 UTC
Won't fix this bug... will wait for a new lm_sensors/i2c release (or for them to release a patch that cleanly fixes this)