public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* mpspec.h, mach_mpspec.h
@ 2004-01-25 17:29 J.A. Magallon
  2004-01-25 19:11 ` Sam Ravnborg
  0 siblings, 1 reply; 4+ messages in thread
From: J.A. Magallon @ 2004-01-25 17:29 UTC (permalink / raw)
  To: Lista Linux-Kernel; +Cc: Andrew Morton

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

-- 
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))

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mpspec.h, mach_mpspec.h
  2004-01-25 17:29 mpspec.h, mach_mpspec.h J.A. Magallon
@ 2004-01-25 19:11 ` Sam Ravnborg
  2004-01-25 19:19   ` Randy.Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Sam Ravnborg @ 2004-01-25 19:11 UTC (permalink / raw)
  To: J.A. Magallon; +Cc: Lista Linux-Kernel, Andrew Morton

> 
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mpspec.h, mach_mpspec.h
  2004-01-25 19:11 ` Sam Ravnborg
@ 2004-01-25 19:19   ` Randy.Dunlap
  2004-01-25 22:58     ` J.A. Magallon
  0 siblings, 1 reply; 4+ messages in thread
From: Randy.Dunlap @ 2004-01-25 19:19 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: jamagallon, linux-kernel, akpm

On Sun, 25 Jan 2004 20:11:06 +0100 Sam Ravnborg <sam@ravnborg.org> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: mpspec.h, mach_mpspec.h
  2004-01-25 19:19   ` Randy.Dunlap
@ 2004-01-25 22:58     ` J.A. Magallon
  0 siblings, 0 replies; 4+ messages in thread
From: J.A. Magallon @ 2004-01-25 22:58 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: Sam Ravnborg, jamagallon, linux-kernel, akpm


On 01.25, Randy.Dunlap wrote:
> On Sun, 25 Jan 2004 20:11:06 +0100 Sam Ravnborg <sam@ravnborg.org> 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?
> 

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

???

-- 
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))

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-25 22:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-25 17:29 mpspec.h, mach_mpspec.h J.A. Magallon
2004-01-25 19:11 ` Sam Ravnborg
2004-01-25 19:19   ` Randy.Dunlap
2004-01-25 22:58     ` J.A. Magallon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox