compilation error
Hi all. I'm very new to this and I must say that I understand about nothing in sensors and i2c etc...
But I have a problem with my cooling fan since I migred to debian. The fan doesn't stop. I'm looking for a solution to make it works as it works on macosx...
Then I try to compile lm-sensor in the hope it will provide me some feature to do this...
I've compiled 2.4 benh kernel (ben1) without i2c modules
i2c-2.8.2 compile and installs well.
Now lm_sensors-2.8.2...
I checked for the includes dir.
ls -l /usr/local/include
total 0
lrwxrwxrwx 1 root staff 28 2003-05-27 17:12 linux ->/usr/src/linux/include/linux
I try to make clean i2c, lm_sensors, the kernel tree etc. But I still have the error :
..
gcc -M -MG -D__SMP__ -DMODVERSIONS -include /lib/modules/2.4.23-ben1/build/include/linux/modversions.h -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/include -I/usr/local/include -I/lib/modules/2.4.23-ben1/build/include -nostdinc -I /usr/lib/gcc-lib/powerpc-linux/3.3.3/include -Wall -O2
kernel/busses/i2c-nforce2.c | \
sed -e 's@^\(.*\)\.o:@kernel/busses/i2c-nforce2.dkernel/busses/i2c-nforce2.o: Makefile 'dirname kernel/busses/i2c-nforce2.d/Module.mk' @' > kernel/busses/i2c-nforce2.d cat kernel/include/sensors.h.template > kernel/include/sensors.h awk '/SENSORS SYSCTL START/,/SENSORS SYSCTL END/' kernel/chips/*.c >> kernel/include/sensors.h
echo '#endif' >> kernel/include/sensors.h
gcc -M -MG -I. -Ikernel/include -I/usr/local/include -Wall -O2
prog/sensors/chips.c | \
sed -e 's@^\(.*\)\.o:@prog/sensors/chips.rdprog/sensors/chips.ro: Makefile 'dirname prog/sensors/chips.rd/Module.mk' @' > prog/sensors/chips.rd
make: *** No rule to make target sys/io.h', needed by prog/dump/isadump.rd'. Stop.
Could someone help me. Or give me some pointers to any solution for managing the fan on g4 1ghz (the mirror one;))
thanks
Signature · 10 lines
marco -- Cl? PGP publique : http://iftbqp.mine.nu/marco.asc -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20031223/f3496f65/attachment.bin
[MDS, read below please.]
Quoted 5 lines
I checked for the includes dir.
ls -l/usr/local/include
total 0
lrwxrwxrwx 1 root staff 28 2003-05-27 17:12 linux ->/usr/src/linux/include/linux
This is wrong AFAIK. Your should not have such a link. If you have an "asm" link here too, you shouldn't either. You must have two sets of linux+asm includes. One in /usr/include, that matches the ones your libc was build with. And one in /usr/src/linux/include (or whatever) with the ones for your running kernel. The first ones should *not* be symlinks pointing to the second ones. They must all be read directories.
I know that old systems do it that way but that's bad and it is known that i2c and lm_sensors have difficulties building in these conditions.
Still...
Quoted 21 lines
I try to make clean i2c,
lm_sensors, the kernel tree etc. But I still have the error :..
gcc -M -MG -D__SMP__ -DMODVERSIONS -include/lib/modules/2.4.23-ben1/build/include/linux/modversions.h(quoted diff) +0
-3-D__KERNEL__-DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/include-I/usr/local/include -I/lib/modules/2.4.23-ben1/build/include -nostdinc-I
/usr/lib/gcc-lib/powerpc-linux/3.3.3/include-Wall -O2kernel/busses/i2c-nforce2.c | \ sed -e 's@^\(.*\)\.o:@kernel/busses/i2c-nforce2.d
kernel/busses/i2c-nforce2.o:Makefile'dirname kernel/busses/i2c-nforce2.d/Module.mk' @' >kernel/busses/i2c-nforce2.dcatkernel/include/sensors.h.template>kernel/include/sensors.hawk '/SENSORS SYSCTL START/,/SENSORS SYSCTL END/'kernel/chips/*.c>>kernel/include/sensors.h
echo '#endif' >>kernel/include/sensors.h
gcc -M -MG -I. -Ikernel/include -I/usr/local/include -Wall -O2prog/sensors/chips.c | \ sed -e 's@^\(.*\)\.o:@prog/sensors/chips.rd
Quoted 7 lines
prog/sensors/chips.ro:
Makefile'dirname prog/sensors/chips.rd/Module.mk' @' > prog/sensors/chips.rd
make: *** No rule to make targetsys/io.h', needed byprog/dump/isadump.rd'. Stop.Could someone help me. Or give me some pointers to any solution for managing the fan on g4 1ghz (the mirror one;))
isadump doesn't compile on non-i386 targets, and isn't useful here either. Edit prog/dump/Module.mk and remove isadump from PROGDUMPTARGETS, PROGDUMPSOURCES and PROGDUMPBININSTALL.
We should either fix isadump or remove it from the targets on non-i386 systems, but I don't know how to do that. MDS?
Thanks for reporting, let us know how it goes.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/