EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

errors while compiling device drivers

Started by yeah September 7, 2007
hi
i have used Fedora core.And i got errors while compiling device driver
programs from /uclinux/uClinux-dist/linux-2.6.x/drivers/video/ . The
device driver i have compiled is available at
http://blackfin.uclinux.org/gf/project/linux-kernel/scmsvn/?action=br...
The gcc version is "gcc (GCC) 4.0.0 20050519 (Red Hat 4.0.0-8) " and
i used gcc <file.name> command for compilation
Help me to solve these errors
I got errors like this:

In file included from /usr/include/linux/sched.h:13,
                 from /usr/include/linux/mm.h:4,
                 from bfin_adv7393fb.c:41:
/usr/include/linux/times.h:7: error: syntax error before 'clock_t'
/usr/include/linux/times.h:9: error: syntax error before 'tms_cutime'
/usr/include/linux/times.h:10: error: syntax error before 'tms_cstime'
In file included from /usr/include/linux/sched.h:14,
                 from /usr/include/linux/mm.h:4,
                 from bfin_adv7393fb.c:41:
/usr/include/linux/timex.h:148: error: field 'time' has incomplete
type
In file included from /usr/include/linux/signal.h:4,
                 from /usr/include/linux/sched.h:25,
                 from /usr/include/linux/mm.h:4,
                 from bfin_adv7393fb.c:41:
/usr/include/asm/signal.h:107: error: syntax error before 'sigset_t'
/usr/include/asm/signal.h:110: error: syntax error before '}' token
In file included from /usr/include/linux/signal.h:5,
                 from /usr/include/linux/sched.h:25,
                 from /usr/include/linux/mm.h:4,
                 from bfin_adv7393fb.c:41:
/usr/include/asm/siginfo.h:26: error: syntax error before 'pid_t'
/usr/include/asm/siginfo.h:38: error: syntax error before 'pid_t'
/usr/include/asm/siginfo.h:41: error: syntax error before '}' token
/usr/include/asm/siginfo.h:45: error: syntax error before 'pid_t'
/usr/include/asm/siginfo.h:48: error: syntax error before '_utime'
/usr/include/asm/siginfo.h:49: error: syntax error before '_stime'
/usr/include/asm/siginfo.h:62: error: syntax error before '}' token
/usr/include/asm/siginfo.h:63: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:65,
                 from /usr/include/linux/mm.h:4,
                 from bfin_adv7393fb.c:41:
/usr/include/linux/time.h:10: error: syntax error before 'time_t'
/usr/include/linux/time.h:12: error: syntax error before '}' token
/usr/include/linux/time.h:18: error: syntax error before 'time_t'
/usr/include/linux/time.h:44: error: field 'it_interval' has
incomplete type
/usr/include/linux/time.h:45: error: field 'it_value' has incomplete
type
/usr/include/linux/time.h:49: error: field 'it_interval' has
incomplete type
/usr/include/linux/time.h:50: error: field 'it_value' has incomplete
type

In file included from /usr/include/linux/sched.h:67,
                 from /usr/include/linux/mm.h:4,
                 from bfin_adv7393fb.c:41:
/usr/include/linux/resource.h:22: error: field 'ru_utime' has
incomplete type
/usr/include/linux/resource.h:23: error: field 'ru_stime' has
incomplete type
In file included from /usr/include/linux/sched.h:69,
                 from /usr/include/linux/mm.h:4,
                 from bfin_adv7393fb.c:41:
/usr/include/asm/processor.h:73: error: array type has incomplete
element type
In file included from /usr/include/linux/interrupt.h:9,
                 from bfin_adv7393fb.c:49:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is
not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel
headers in userspace: atomicity not guaranteed
In file included from bfin_adv7393fb.c:49:
/usr/include/linux/interrupt.h:13:25: error: asm/softirq.h: No such
file or directory
In file included from /usr/include/asm/blackfin.h:9,
                 from bfin_adv7393fb.c:51:
/usr/include/asm/macros.h:8: error: syntax error before '.' token
/usr/include/asm/macros.h:9: error: stray '\' in program
/usr/include/asm/macros.h:9: error: stray '\' in program
/usr/include/asm/macros.h:9: error: stray '@' in program
/usr/include/asm/macros.h:10: error: stray '\' in program
/usr/include/asm/macros.h:10: error: stray '\' in program
/usr/include/asm/macros.h:10: error: stray '\' in program
/usr/include/asm/macros.h:10: error: stray '@' in program
/usr/include/asm/macros.h:39: error: stray '\' in program
/usr/include/asm/macros.h:50: error: stray '\' in program
/usr/include/asm/macros.h:51: error: stray '\' in program
/usr/include/asm/macros.h:60: error: stray '\' in program
/usr/include/asm/macros.h:60: error: stray '\' in program
/usr/include/asm/macros.h:69: error: stray '\' in program
/usr/include/asm/macros.h:69: error: stray '\' in program
/usr/include/asm/macros.h:79: error: stray '\' in program
/usr/include/asm/macros.h:80: error: stray '\' in program
In file included from bfin_adv7393fb.c:51:
/usr/include/asm/blackfin.h:10:31: error: asm/mach/blackfin.h: No such
file or directory
In file included from /usr/include/asm/blackfin.h:11,
                 from bfin_adv7393fb.c:51:

and continues....


The 2024 Embedded Online Conference