Kelledin [kelledin+DAXP@skarpsey.dyndns.org] wrote: > On Tuesday 26 November 2002 01:40 pm, Kelledin wrote: > > Has anyone gotten i2c-2.6.5 (related to lm_sensors-2.6.5) to > > work on an alpha box? Taking this farther, has anyone got > > lm_sensors working on an alpha box? Is it worthwile (i.e. do > > any Alpha boxen come with system monitoring chips)? > > > > I just tried compiling i2c-2.6.5, and it appears to have some > > arch-specific assembly code that would need porting. Sadly, > > that porting is currently beyond my skill level at this point. > > =( > > Well, ok...the problem's not quite what I thought it was. I'm > getting the following error message, though: > > "Error: macro requires $at register while noat in effect" > > This is what's causing it to punt. Apparently, gcc is > generating slightly out-of-whack assembly language... > > Anyone know how to fix this? I'm using gcc-2.95.3 to compile > this stuff...using gcc3 is a bit of a non-option. This is very common in compiling kernel modules. Basically you need some cflags from ther kernel's makefile (arch/alpha/Makefile). In 2.4.18 this is: -mno-fp-regs -ffixed-8 I believe if you are smart you can just include this in your project's Makefile. Cheers, -- Bob Bob McElrath (bob+debian@mcelrath.org) Univ. of Wisconsin at Madison, Department of Physics "The surest way to corrupt a youth is to instruct him to hold in higher esteem those who think alike than those who think differently." -- Nietzsche
Attachment:
pgpSAtQtiubtz.pgp
Description: PGP signature