mpspec.h, mach_mpspec.h
Hi...
I am trying to build sensors 2.8.3 and it fails with:
make: *** No rule to make target mach_mpspec.h', needed by kernel/chips/vt1211.d'. Stop.
There is no mach_mpspec.h in include/linux nor include/linux/asm in the kernel tree (I use 2.6.2-rc1-mm3). It is not included directly by sensors, but for example, mpspec.h reads:
werewolf:/usr/src/linux/include/asm# grep mach_mpspec.h * mpspec.h:#include <mach_mpspec.h>
all mach_mpspec.h are inside subarch dirs in include/asm (for example, include/asm/mach-default/).
Workaround is to add -I/usr/src/linux/include/asm/mach-default.
But should not the contents be symlinked for the proper subarch ? IE
/usr/src/linux/include/asm/mach_mpspec.h -> mach-default/mach_mpspec.h
TIA
Signature · 4 lines
J.A. Magallon <jamagallon()able!es> \ Software is like sex: werewolf!able!es \ It's better when it's free Mandrake Linux release 10.0 (Cooker) for i586 Linux 2.6.2-rc1-jam3 (gcc 3.3.2 (Mandrake Linux 10.0 3.3.2-4mdk))
Quoted 2 lines
Workaround is to add -I/usr/src/linux/include/asm/mach-default.
i386 at least always include:
-Iinclude/asm-i386/mach-default
Which should let gcc include the file in question.
Try to compile with V=1 and post the full command line to gcc.
Sam
On Sun, 25 Jan 2004 20:11:06 +0100 Sam Ravnborg <[email protected]> wrote:
| > | > Workaround is to add -I/usr/src/linux/include/asm/mach-default. | | i386 at least always include: | -Iinclude/asm-i386/mach-default | Which should let gcc include the file in question. | | Try to compile with V=1 and post the full command line to gcc.
JAM, how are you building the sensors modules? I.e., is this just a "make modules" or are you building modules that are outside of the kernel tree?
--
~Randy
Quoted 11 lines · Randy.Dunlap
On Sun, 25 Jan 2004 20:11:06 +0100 Sam Ravnborg <[email protected]> wrote:
| > | > Workaround is to add -I/usr/src/linux/include/asm/mach-default. | | i386 at least always include: | -Iinclude/asm-i386/mach-default | Which should let gcc include the file in question. | | Try to compile with V=1 and post the full command line to gcc.
Quoted 4 lines
JAM, how are you building the sensors modules? I.e., is this just a "make modules" or are you building modules that are outside of the kernel tree?
Oops, my fault. I was trying to build userspace part from the lm_sensors tarball, and I did not remember that kernel modules will not build. Anyways, docs say that you can set COMPILE_KERNEL:=0 in Makefile to build just userspace, but I think it is outdated. You have to 'make user user_install'. Variable COMPILE_KERNEL is not used anywhere.
And, after building userspace libsensors, my temperatures still read at 400 C:
werewolf:~# sensors -v sensors version 2.8.3 werewolf:~# sensors -s werewolf:~# sensors w83781d-isa-0290 Adapter: ISA adapter Algorithm: ISA algorithm VCore 1: +2.02 V (min = +1.90 V, max = +2.10 V) VCore 2: +1.98 V (min = +1.90 V, max = +2.10 V) +3.3V: +3.22 V (min = +3.14 V, max = +3.46 V) +5V: +5.00 V (min = +4.73 V, max = +5.24 V) +12V: +12.04 V (min = +11.37 V, max = +12.59 V) -12V: -12.29 V (min = -12.57 V, max = -11.35 V) ALARM -5V: -4.98 V (min = -5.25 V, max = -4.74 V) ALARM CPU0 Fan: 4500 RPM (min = 84375 RPM, div = 2) ALARM CPU1 Fan: 4383 RPM (min = -1 RPM, div = 2) ALARM CPU0 Tmp: +380°C (high = +0°C, hyst = +640°C) ALARM CPU1 Tmp: +390.0°C (high = +800°C, hyst = +750°C) vid: +2.000 V
???
Signature · 4 lines
J.A. Magallon <jamagallon()able!es> \ Software is like sex: werewolf!able!es \ It's better when it's free Mandrake Linux release 10.0 (Cooker) for i586 Linux 2.6.2-rc1-jam3 (gcc 3.3.2 (Mandrake Linux 10.0 3.3.2-4mdk))