This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Kernel 2.4 & crosstool 0.42 & sh3


Hi

I try to crosscompile a 2.4 kernel with ct0.42 for an SH3 compiler.

I get the kernel source, patch it with linuxsh (via CVS) and edit the entry.S.

But i still got an error: 

sh3-unknown-linux-gnu-gcc -D__KERNEL__ -I/home/skrew/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -ml -m3 -pipe   -nostdinc -iwithprefix include -DKBUILD_BASENAME=mach_hp600  -c -o mach_hp600.o mach_hp600.c
mach_hp600.c:31: error: `hd64461_inb' undeclared here (not in a function)
mach_hp600.c:31: error: initializer element is not constant
mach_hp600.c:31: error: (near initialization for `mv_hp620.mv_inb')
mach_hp600.c:32: error: `hd64461_inw' undeclared here (not in a function)
mach_hp600.c:32: error: initializer element is not constant
mach_hp600.c:32: error: (near initialization for `mv_hp620.mv_inw')
mach_hp600.c:33: error: `hd64461_inl' undeclared here (not in a function)
mach_hp600.c:33: error: initializer element is not constant
mach_hp600.c:33: error: (near initialization for `mv_hp620.mv_inl')
mach_hp600.c:34: error: `hd64461_outb' undeclared here (not in a function)
mach_hp600.c:34: error: initializer element is not constant
mach_hp600.c:34: error: (near initialization for `mv_hp620.mv_outb')
mach_hp600.c:35: error: `hd64461_outw' undeclared here (not in a function)
mach_hp600.c:35: error: initializer element is not constant
mach_hp600.c:35: error: (near initialization for `mv_hp620.mv_outw')
mach_hp600.c:36: error: `hd64461_outl' undeclared here (not in a function)
mach_hp600.c:36: error: initializer element is not constant
mach_hp600.c:36: error: (near initialization for `mv_hp620.mv_outl')
mach_hp600.c:38: error: `hd64461_inb_p' undeclared here (not in a function)
mach_hp600.c:38: error: initializer element is not constant
mach_hp600.c:38: error: (near initialization for `mv_hp620.mv_inb_p')
mach_hp600.c:39: error: initializer element is not constant
mach_hp600.c:39: error: (near initialization for `mv_hp620.mv_inw_p')
mach_hp600.c:40: error: initializer element is not constant
mach_hp600.c:40: error: (near initialization for `mv_hp620.mv_inl_p')
mach_hp600.c:41: error: `hd64461_outb_p' undeclared here (not in a function)
mach_hp600.c:41: error: initializer element is not constant
mach_hp600.c:41: error: (near initialization for `mv_hp620.mv_outb_p')
mach_hp600.c:42: error: initializer element is not constant
mach_hp600.c:42: error: (near initialization for `mv_hp620.mv_outw_p')
mach_hp600.c:43: error: initializer element is not constant
mach_hp600.c:43: error: (near initialization for `mv_hp620.mv_outl_p')
mach_hp600.c:45: error: `hd64461_insb' undeclared here (not in a function)
mach_hp600.c:45: error: initializer element is not constant
mach_hp600.c:45: error: (near initialization for `mv_hp620.mv_insb')
mach_hp600.c:46: error: `hd64461_insw' undeclared here (not in a function)
mach_hp600.c:46: error: initializer element is not constant
mach_hp600.c:46: error: (near initialization for `mv_hp620.mv_insw')
mach_hp600.c:47: error: `hd64461_insl' undeclared here (not in a function)
mach_hp600.c:47: error: initializer element is not constant
mach_hp600.c:47: error: (near initialization for `mv_hp620.mv_insl')
mach_hp600.c:48: error: `hd64461_outsb' undeclared here (not in a function)
mach_hp600.c:48: error: initializer element is not constant
mach_hp600.c:48: error: (near initialization for `mv_hp620.mv_outsb')
mach_hp600.c:49: error: `hd64461_outsw' undeclared here (not in a function)
mach_hp600.c:49: error: initializer element is not constant
mach_hp600.c:49: error: (near initialization for `mv_hp620.mv_outsw')
mach_hp600.c:50: error: `hd64461_outsl' undeclared here (not in a function)
mach_hp600.c:50: error: initializer element is not constant
mach_hp600.c:50: error: (near initialization for `mv_hp620.mv_outsl')
mach_hp600.c:52: error: `generic_readb' undeclared here (not in a function)
mach_hp600.c:52: error: initializer element is not constant
mach_hp600.c:52: error: (near initialization for `mv_hp620.mv_readb')
mach_hp600.c:53: error: `generic_readw' undeclared here (not in a function)
mach_hp600.c:53: error: initializer element is not constant
mach_hp600.c:53: error: (near initialization for `mv_hp620.mv_readw')
mach_hp600.c:54: error: `generic_readl' undeclared here (not in a function)
mach_hp600.c:54: error: initializer element is not constant
mach_hp600.c:54: error: (near initialization for `mv_hp620.mv_readl')
mach_hp600.c:55: error: `generic_writeb' undeclared here (not in a function)
mach_hp600.c:55: error: initializer element is not constant
mach_hp600.c:55: error: (near initialization for `mv_hp620.mv_writeb')
mach_hp600.c:56: error: `generic_writew' undeclared here (not in a function)
mach_hp600.c:56: error: initializer element is not constant
mach_hp600.c:56: error: (near initialization for `mv_hp620.mv_writew')
mach_hp600.c:57: error: `generic_writel' undeclared here (not in a function)
mach_hp600.c:57: error: initializer element is not constant
mach_hp600.c:57: error: (near initialization for `mv_hp620.mv_writel')
mach_hp600.c:59: error: `hd64461_irq_demux' undeclared here (not in a function)
mach_hp600.c:59: error: initializer element is not constant
mach_hp600.c:59: error: (near initialization for `mv_hp620.mv_irq_demux')
mach_hp600.c:76: error: initializer element is not constant
mach_hp600.c:76: error: (near initialization for `mv_hp680.mv_inb')
mach_hp600.c:77: error: initializer element is not constant
mach_hp600.c:77: error: (near initialization for `mv_hp680.mv_inw')
mach_hp600.c:78: error: initializer element is not constant
mach_hp600.c:78: error: (near initialization for `mv_hp680.mv_inl')
mach_hp600.c:79: error: initializer element is not constant
mach_hp600.c:79: error: (near initialization for `mv_hp680.mv_outb')
mach_hp600.c:80: error: initializer element is not constant
mach_hp600.c:80: error: (near initialization for `mv_hp680.mv_outw')
mach_hp600.c:81: error: initializer element is not constant
mach_hp600.c:81: error: (near initialization for `mv_hp680.mv_outl')
mach_hp600.c:83: error: initializer element is not constant
mach_hp600.c:83: error: (near initialization for `mv_hp680.mv_inb_p')
mach_hp600.c:84: error: initializer element is not constant
mach_hp600.c:84: error: (near initialization for `mv_hp680.mv_inw_p')
mach_hp600.c:85: error: initializer element is not constant
mach_hp600.c:85: error: (near initialization for `mv_hp680.mv_inl_p')
mach_hp600.c:86: error: initializer element is not constant
mach_hp600.c:86: error: (near initialization for `mv_hp680.mv_outb_p')
mach_hp600.c:87: error: initializer element is not constant
mach_hp600.c:87: error: (near initialization for `mv_hp680.mv_outw_p')
mach_hp600.c:88: error: initializer element is not constant
mach_hp600.c:88: error: (near initialization for `mv_hp680.mv_outl_p')
mach_hp600.c:90: error: initializer element is not constant
mach_hp600.c:90: error: (near initialization for `mv_hp680.mv_insb')
mach_hp600.c:91: error: initializer element is not constant
mach_hp600.c:91: error: (near initialization for `mv_hp680.mv_insw')
mach_hp600.c:92: error: initializer element is not constant
mach_hp600.c:92: error: (near initialization for `mv_hp680.mv_insl')
mach_hp600.c:93: error: initializer element is not constant
mach_hp600.c:93: error: (near initialization for `mv_hp680.mv_outsb')
mach_hp600.c:94: error: initializer element is not constant
mach_hp600.c:94: error: (near initialization for `mv_hp680.mv_outsw')
mach_hp600.c:95: error: initializer element is not constant
mach_hp600.c:95: error: (near initialization for `mv_hp680.mv_outsl')
mach_hp600.c:97: error: initializer element is not constant
mach_hp600.c:97: error: (near initialization for `mv_hp680.mv_readb')
mach_hp600.c:98: error: initializer element is not constant
mach_hp600.c:98: error: (near initialization for `mv_hp680.mv_readw')
mach_hp600.c:99: error: initializer element is not constant
mach_hp600.c:99: error: (near initialization for `mv_hp680.mv_readl')
mach_hp600.c:100: error: initializer element is not constant
mach_hp600.c:100: error: (near initialization for `mv_hp680.mv_writeb')
mach_hp600.c:101: error: initializer element is not constant
mach_hp600.c:101: error: (near initialization for `mv_hp680.mv_writew')
mach_hp600.c:102: error: initializer element is not constant
mach_hp600.c:102: error: (near initialization for `mv_hp680.mv_writel')
mach_hp600.c:104: error: initializer element is not constant
mach_hp600.c:104: error: (near initialization for `mv_hp680.mv_irq_demux')
mach_hp600.c:121: error: initializer element is not constant
mach_hp600.c:121: error: (near initialization for `mv_hp690.mv_inb')
mach_hp600.c:122: error: initializer element is not constant
mach_hp600.c:122: error: (near initialization for `mv_hp690.mv_inw')
mach_hp600.c:123: error: initializer element is not constant
mach_hp600.c:123: error: (near initialization for `mv_hp690.mv_inl')
mach_hp600.c:124: error: initializer element is not constant
mach_hp600.c:124: error: (near initialization for `mv_hp690.mv_outb')
mach_hp600.c:125: error: initializer element is not constant
mach_hp600.c:125: error: (near initialization for `mv_hp690.mv_outw')
mach_hp600.c:126: error: initializer element is not constant
mach_hp600.c:126: error: (near initialization for `mv_hp690.mv_outl')
mach_hp600.c:128: error: initializer element is not constant
mach_hp600.c:128: error: (near initialization for `mv_hp690.mv_inb_p')
mach_hp600.c:129: error: initializer element is not constant
mach_hp600.c:129: error: (near initialization for `mv_hp690.mv_inw_p')
mach_hp600.c:130: error: initializer element is not constant
mach_hp600.c:130: error: (near initialization for `mv_hp690.mv_inl_p')
mach_hp600.c:131: error: initializer element is not constant
mach_hp600.c:131: error: (near initialization for `mv_hp690.mv_outb_p')
mach_hp600.c:132: error: initializer element is not constant
mach_hp600.c:132: error: (near initialization for `mv_hp690.mv_outw_p')
mach_hp600.c:133: error: initializer element is not constant
mach_hp600.c:133: error: (near initialization for `mv_hp690.mv_outl_p')
mach_hp600.c:135: error: initializer element is not constant
mach_hp600.c:135: error: (near initialization for `mv_hp690.mv_insb')
mach_hp600.c:136: error: initializer element is not constant
mach_hp600.c:136: error: (near initialization for `mv_hp690.mv_insw')
mach_hp600.c:137: error: initializer element is not constant
mach_hp600.c:137: error: (near initialization for `mv_hp690.mv_insl')
mach_hp600.c:138: error: initializer element is not constant
mach_hp600.c:138: error: (near initialization for `mv_hp690.mv_outsb')
mach_hp600.c:139: error: initializer element is not constant
mach_hp600.c:139: error: (near initialization for `mv_hp690.mv_outsw')
mach_hp600.c:140: error: initializer element is not constant
mach_hp600.c:140: error: (near initialization for `mv_hp690.mv_outsl')
mach_hp600.c:142: error: initializer element is not constant
mach_hp600.c:142: error: (near initialization for `mv_hp690.mv_readb')
mach_hp600.c:143: error: initializer element is not constant
mach_hp600.c:143: error: (near initialization for `mv_hp690.mv_readw')
mach_hp600.c:144: error: initializer element is not constant
mach_hp600.c:144: error: (near initialization for `mv_hp690.mv_readl')
mach_hp600.c:145: error: initializer element is not constant
mach_hp600.c:145: error: (near initialization for `mv_hp690.mv_writeb')
mach_hp600.c:146: error: initializer element is not constant
mach_hp600.c:146: error: (near initialization for `mv_hp690.mv_writew')
mach_hp600.c:147: error: initializer element is not constant
mach_hp600.c:147: error: (near initialization for `mv_hp690.mv_writel')
mach_hp600.c:149: error: initializer element is not constant
mach_hp600.c:149: error: (near initialization for `mv_hp690.mv_irq_demux')
make[1]: *** [mach_hp600.o] Error 1


Anyone can help me ? 
Thanks

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]