compiling on alpha
I am attempting to get the sensors package to compile on alpha (kernel 2.4.21-pre7), and it does not do so cleanly. I am using the lm-sensors-source package which is included in debian. It has a version 2.6.5 from 20020915. (If the bugs I mention below have been fixed in a newer version then please disregard this mail)
First, the file kernel/busses/i2c-sis645.c must include the header <linux/mm.h> in order to get the symbol GFP_ATOMIC.
Second, the Makefile should grab the necessary CFLAGS for modules from the linux/arch/$(arch)/Makefile. This can be done with a little makefile code like this:
LINUX_SOURCE := /usr/src/linux
ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
include $(LINUX_SOURCE)/arch/$(ARCH)/MakefileThis will of course set CFLAGS so maybe save it and put it in MODCFLAGS for your makefile. In particular on alpha the compile bombs with:
/tmp/ccEu5TN5.s: Assembler messages:
/tmp/ccEu5TN5.s:73: Error: macro requires $at register while noat in effect
unless the compiler flag -mcpu=ev67 is included. (or whatever CPU the user has)
Cheers,
Bob McElrath [Univ. of Wisconsin at Madison, Department of Physics]
"You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists." -- Abbie Hoffman
-------------- 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/20030407/b12c6e5a/attachment.bin
thanks, we'll try to incorporate these
mds
Quoted 28 lines · Bob McElrath
I am attempting to get the sensors package to compile on alpha (kernel 2.4.21-pre7), and it does not do so cleanly. I am using the lm-sensors-source package which is included in debian. It has a version 2.6.5 from 20020915. (If the bugs I mention below have been fixed in a newer version then please disregard this mail)
First, the file
kernel/busses/i2c-sis645.cmust include the header <linux/mm.h> in order to get the symbolGFP_ATOMIC.Second, the
Makefileshould grab the necessary CFLAGS for modules from the linux/arch/$(arch)/Makefile. This can be done with a little makefile code like this:LINUX_SOURCE := /usr/src/linux ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/) include $(LINUX_SOURCE)/arch/$(ARCH)/MakefileThis will of course set CFLAGS so maybe save it and put it in MODCFLAGS for your makefile. In particular on alpha the compile bombs with:
/tmp/ccEu5TN5.s: Assembler messages:
/tmp/ccEu5TN5.s:73: Error: macro requires $at register while noat in effect
unless the compiler flag -mcpu=ev67 is included. (or whatever CPU the user has)Cheers,
Bob McElrath [Univ. of Wisconsin at Madison, Department of Physics]"You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists." -- Abbie Hoffman
Quoted 2 lines · Mark D. Studebaker
Quoted 1 line
From early April.
Do we want to tackle this?
Seems like the better option for non-x86 would be mkpatch, if it works.
Quoted 1 line
MH, what about
GFP_ATOMIC?
Done. Probably won't help i2c-sis645 to load on an alpha. ;)
Quoted 30 lines
Quoted 28 lines · Mark D. Studebaker
thanks, we'll try to incorporate these mds
Quoted 24 lines · Bob McElrath
I am attempting to get the sensors package to compile on alpha (kernel 2.4.21-pre7), and it does not do so cleanly. I am using the lm-sensors-source package which is included in debian. It has a version 2.6.5 from 20020915. (If the bugs I mention below have been fixed in a newer version then please disregard this mail)
First, the file
kernel/busses/i2c-sis645.cmust include the header <linux/mm.h> in order to get the symbolGFP_ATOMIC.Second, the
Makefileshould grab the necessary CFLAGS for modules from the linux/arch/$(arch)/Makefile. This can be done with a little makefile code like this:
LINUX_SOURCE:=/usr/src/linux
ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/
-e s/arm.*/arm/ -e s/sa110/arm/)
include $(LINUX_SOURCE)/arch/$(ARCH)/Makefile
This will of course set CFLAGS so maybe save it and put it in MODCFLAGS for your makefile. In particular on alpha the compile bombs with:
/tmp/ccEu5TN5.s: Assembler messages:
/tmp/ccEu5TN5.s:73: Error: macro requires $at register while noat
in effect
unless the compiler flag -mcpu=ev67 is included. (or whatever CPU the user has)
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Cheers,
Bob McElrath [Univ. of Wisconsin at Madison, Department of Physics]"You measure democracy by the freedom it gives its dissidents, not
the
freedom it gives its assimilated conformists." -- Abbie Hoffman
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
From early April.
Do we want to tackle this?
MH, what about GFP_ATOMIC?
Quoted 36 lines · Mark D. Studebaker
thanks, we'll try to incorporate these mds
Quoted 31 lines · Bob McElrath
I am attempting to get the sensors package to compile on alpha (kernel 2.4.21-pre7), and it does not do so cleanly. I am using the lm-sensors-source package which is included in debian. It has a version 2.6.5 from 20020915. (If the bugs I mention below have been fixed in a newer version then please disregard this mail)
First, the file
kernel/busses/i2c-sis645.cmust include the header <linux/mm.h> in order to get the symbolGFP_ATOMIC.Second, the
Makefileshould grab the necessary CFLAGS for modules from the linux/arch/$(arch)/Makefile. This can be done with a little makefile code like this:
LINUX_SOURCE:=/usr/src/linux
ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/
-e s/arm.*/arm/ -e s/sa110/arm/)include $(LINUX_SOURCE)/arch/$(ARCH)/MakefileThis will of course set CFLAGS so maybe save it and put it in MODCFLAGS for your makefile. In particular on alpha the compile bombs with:
/tmp/ccEu5TN5.s: Assembler messages:
/tmp/ccEu5TN5.s:73: Error: macro requires $at register while noat
in effect
unless the compiler flag -mcpu=ev67 is included. (or whatever CPU the user has)Cheers,
Bob McElrath [Univ. of Wisconsin at Madison, Department of Physics]"You measure democracy by the freedom it gives its dissidents, not
the
freedom it gives its assimilated conformists." -- Abbie Hoffman