ts-7000
[Top] [All Lists]

[ts-7000] Module Compilation

To: <>
Subject: [ts-7000] Module Compilation
From: "Laks" <>
Date: Mon, 27 Aug 2007 17:31:44 +0530
Hi to every one
I tried to compile a Hellomodule.
i got the following errors
could any one help me where i had gone wrong
 
i used a linux desktop and tried to cross compile for TS7250
 
i am able to compile normal C programs for the TS7250 board
 
i kept the ts7250 source files usr/home/laks/ts7250/linux24
 
i also exported this path
 
the erro list

/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/asm-generic/local.h: In function `local_add':

/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/asm-generic/local.h:79: error: invalid type argument of `->'

/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/asm-generic/local.h:79: error: invalid type argument of `->'

/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/asm-generic/local.h: In function `local_sub':

/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/asm-generic/local.h:86: error: invalid type argument of `->'

/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/arm-linux/sys-include/asm-generic/local.h:86: error: invalid type argument of `->'

hellomod.c: In function `init_module':

hellomod.c:14: warning: implicit declaration of function `printk'

hellomod.c: In function `cleanup_module':

hellomod.c:20: error: `KERN_ALERT' undeclared (first use in this function)

hellomod.c:20: error: parse error before string constant

hellomod.c: At top level:

hellomod.c:23: error: `module' undeclared here (not in a function)

hellomod.c:24: error: `module' undeclared here (not in a function)

hellomod.c:23: warning: `__initcall_module' defined but not used

hellomod.c:24: warning: `__exitcall_module' defined but not used

~]$ $PATH

__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU