SPARC include problem
In compiling 2.4.4-ac5 for my SPARCStation 20, I had an error in the compile resulting from the inability to find a hw_irq.h in the include/asm directory. Do you know where I may be able to find such a file?
Thank you
Sean Jones
Quoted 4 lines · Sean Jones
In compiling 2.4.4-ac5 for my SPARCStation 20, I had an error in the compile resulting from the inability to find a
hw_irq.hin theinclude/asmdirectory. Do you know where I may be able to find such a file?
How did you find this problem if the build couldn't find the "bzImage" rule? :-)
Later,
David S. Miller
[email protected]
Quoted 4 lines · Sean Jones
In compiling 2.4.4-ac5 for my SPARCStation 20, I had an error in the compile resulting from the inability to find a
hw_irq.hin theinclude/asmdirectory. Do you know where I may be able to find such a file?
You don't. I discussed this last week with Russell King: the ARM port also doesn't have the file hw_irq.h in include/asm-arm. According to Russell it is only needed in the arch dependent subdirectories, and not in the drivers.
Any driver that includes linux/irq.h is not written to be portable. The only generic driver that includes it is driver/pcmcia/hd64465_ss.c, but on second glance it's a Hitachi HD64465 specific driver anyway.
Erik
Signature · 5 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: [email protected] WWW: http://www-ict.its.tudelft.nl/~erik/
Quoted 25 lines · Sean Jones
Quoted 7 lines · David S. Miller
Quoted 4 lines · Sean Jones
In compiling 2.4.4-ac5 for my SPARCStation 20, I had an error in the compile resulting from the inability to find a
hw_irq.hin theinclude/asmdirectory. Do you know where I may be able to find such a file?Quoted 6 lines
How did you find this problem if the build couldn't find the "bzImage" rule? :-)
Later,
David S. Miller
[email protected]I found it by kicking the make stuff around one more time after I sent that e-mail.
Sean
Quoted 5 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
The include error was in kernel/sched.c . Should I rewrite the includes for this file to include include/asm/irq.h over include/linux/irq.h? I temporarily bypassed this problem by creating a blank asm/hw_irq.h .
I also ran into a compile problem in arch/sparc/kernel/sparc_ksyms.c . The rw semaphores seem to be undeclared. Here are the warnings:
D__KERNEL__ -I/usr/src/linux-2.4.4/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -m32 -pipe -mno-fpu
-fcall-used-g5 -fcall-used-g7 -DEXPORT_SYMTAB -c sparc_ksyms.c
In file included from /usr/src/linux-2.4.4/include/linux/sched.h:9,
from sparc_ksyms.c:17:
/usr/src/linux-2.4.4/include/linux/binfmts.h:45: warning: `struct mm_struct' declared inside parameter list /usr/src/linux-2.4.4/include/linux/binfmts.h:45: warning: its scope is only this definition or declaration, which is probably not what you want.
sparc_ksyms.c:121: ___down_read' undeclared here (not in a function) sparc_ksyms.c:121: initializer element is not constant sparc_ksyms.c:121: (near initialization for __ksymtab____down_read.value')
sparc_ksyms.c:122: ___down_write' undeclared here (not in a function) sparc_ksyms.c:122: initializer element is not constant sparc_ksyms.c:122: (near initialization for __ksymtab____down_write.value')
sparc_ksyms.c:123: ___up_read' undeclared here (not in a function) sparc_ksyms.c:123: initializer element is not constant sparc_ksyms.c:123: (near initialization for __ksymtab____up_read.value')
sparc_ksyms.c:124: ___up_write' undeclared here (not in a function) sparc_ksyms.c:124: initializer element is not constant sparc_ksyms.c:124: (near initialization for __ksymtab____up_write.value')
make[1]: *** [sparc_ksyms.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.4/arch/sparc/kernel'
make: *** [_dir_arch/sparc/kernel] Error 2
Thank you,
Sean
Quoted 29 lines · Erik Mouw
Quoted 4 lines · Sean Jones
In compiling 2.4.4-ac5 for my SPARCStation 20, I had an error in the compile resulting from the inability to find a
hw_irq.hin theinclude/asmdirectory. Do you know where I may be able to find such a file?You don't. I discussed this last week with Russell King: the ARM port also doesn't have the file
hw_irq.hininclude/asm-arm. According to Russell it is only needed in the arch dependent subdirectories, and not in the drivers.Any driver that includes
linux/irq.his not written to be portable. The only generic driver that includes it isdriver/pcmcia/hd64465_ss.c, but on second glance it's a Hitachi HD64465 specific driver anyway.Erik
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2783635 Fax: +31-15-2781843 Email: [email protected]
WWW: http://www-ict.its.tudelft.nl/~erik/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 3 lines · Sean Jones
The include error was in
kernel/sched.c. Should I rewrite the includes for this file to includeinclude/asm/irq.hoverinclude/linux/irq.h? I temporarily bypassed this problem by creating a blankasm/hw_irq.h.
You shouldn't expect to be able to compile the main kernel source on Sparc at all. See http://www.tux.org/lkml/#s6-6 .
Erik
Signature · 5 lines
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: [email protected] WWW: http://www-ict.its.tudelft.nl/~erik/