[uClinux-dev] Error of some sort in running make in uClinux-dist
for M68K target
Greg Ungerer
gerg at snapgear.com
Wed Feb 6 19:46:26 EST 2008
Hi Gregg,
Gregg Levine wrote:
> Hello!
> After running the make xconfig steps and even the make dep steps, I am
> getting this one particularly strange collection:
> In file included from
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/semaphore.h:10,
> from
I suspect you will have all sorts of pain compiling such an
old kernel with such a new toolchain.
Best approach for the 2.0.x kernel is too use an older tooclahin.
Newer gcc is just much more picky, and it flags lots of things
as errors that where let through by older gcc versions.
The old gcc-2.95.3 based toolchain is probably best for 2.0.x kernels.
Regards
Greg
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/sched.h:27,
> from init/main.c:28:
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/linux/spinlock.h:81:
> error: expected ',' or ';' before 'generic__raw_read_trylock'
> In file included from
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/semaphore.h:11,
> from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/sched.h:27,
> from init/main.c:28:
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/linux/rwsem.h:27:65:
> error: asm/rwsem.h: No such file or directory
> In file included from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/sched.h:27,
> from init/main.c:28:
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/semaphore.h:28:
> error: expected specifier-qualifier-list before 'wait_queue_head_t'
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/semaphore.h:
> In function 'sema_init':
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/semaphore.h:46:
> error: unknown field 'wait' specified in initializer
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/semaphore.h:46:
> error: 'struct semaphore' has no member named 'wait'
> In file included from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/tty.h:19,
> from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/sched.h:31,
> from init/main.c:28:
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/fs.h: In
> function 'mark_buffer_clean':
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/fs.h:650: error:
> void value not ignored as it ought to be
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/fs.h: In
> function 'mark_buffer_dirty':
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/fs.h:658: error:
> wrong type argument to unary exclamation mark
> In file included from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/tty.h:19,
> from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/sched.h:31,
> from init/main.c:28:
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/fs.h: At top level:
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/fs.h:778: error:
> expected declaration specifiers or '...' before '(' token
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/fs.h:778: error:
> expected ')' before '?' token
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/fs.h:784: error:
> expected declaration specifiers or '...' before '(' token
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/fs.h:784: error:
> expected ')' before '?' token
> In file included from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/tty.h:21,
> from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/sched.h:31,
> from init/main.c:28:
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/tqueue.h: In
> function 'queue_task_irq':
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/tqueue.h:85:
> warning: passing argument 2 of 'set_bit' from incompatible pointer
> type
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/tqueue.h:85:
> error: wrong type argument to unary exclamation mark
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/tqueue.h: In
> function 'queue_task':
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/tqueue.h:112:
> warning: passing argument 2 of 'set_bit' from incompatible pointer
> type
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/tqueue.h:112:
> error: wrong type argument to unary exclamation mark
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/tqueue.h:114:
> warning: implicit declaration of function 'save_flags'
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/tqueue.h:115:
> warning: implicit declaration of function 'cli'
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/tqueue.h:118:
> warning: implicit declaration of function 'restore_flags'
> In file included from init/main.c:28:
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/sched.h: At top level:
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/sched.h:211:
> error: 'NSIG' undeclared here (not in a function)
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/sched.h:248:
> error: 'NGROUPS' undeclared here (not in a function)
> In file included from init/main.c:28:
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/sched.h:371:1:
> warning: "current" redefined
> In file included from
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/processor.h:22,
> from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/sched.h:88,
> from init/main.c:28:
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/current.h:22:1:
> warning: this is the location of the previous definition
> In file included from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/unistd.h:9,
> from init/main.c:32:
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/unistd.h:509:
> error: expected declaration specifiers or '...' before 'irqreturn_t'
> In file included from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/string.h:43,
> from init/main.c:33:
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/string.h:11:
> error: static declaration of 'strcpy' follows non-static declaration
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/string.h:24:
> error: static declaration of 'strncpy' follows non-static declaration
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/string.h:47:
> error: static declaration of 'strcmp' follows non-static declaration
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/string.h:67:
> error: static declaration of 'strncmp' follows non-static declaration
> In file included from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/pagemap.h:15,
> from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/locks.h:8,
> from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:5,
> from init/main.c:43:
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/swapctl.h: In
> function 'age_of':
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/swapctl.h:122:
> warning: implicit declaration of function 'MAP_NR'
> In file included from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/locks.h:8,
> from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:5,
> from init/main.c:43:
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/pagemap.h: In
> function '__find_page':
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/pagemap.h:68:
> warning: passing argument 2 of 'set_bit' from incompatible pointer
> type
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/pagemap.h: In
> function '__add_page_to_hash_queue':
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/pagemap.h:100:
> warning: passing argument 2 of 'set_bit' from incompatible pointer
> type
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/pagemap.h: In
> function 'wait_on_page':
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/pagemap.h:145:
> warning: passing argument 2 of '__constant_test_bit' from incompatible
> pointer type
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/pagemap.h:145:
> warning: passing argument 2 of '__test_bit' from incompatible pointer
> type
> In file included from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:5,
> from init/main.c:43:
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/locks.h: In
> function 'lock_buffer':
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/locks.h:31:
> error: void value not ignored as it ought to be
> In file included from
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:8,
> from init/main.c:43:
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/md.h:274:8:
> warning: extra tokens at end of #endif directive
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/md.h:275:8:
> warning: extra tokens at end of #endif directive
> In file included from init/main.c:43:
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:44:8:
> warning: extra tokens at end of #endif directive
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:47:8:
> warning: extra tokens at end of #endif directive
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:50:8:
> warning: extra tokens at end of #endif directive
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:53:8:
> warning: extra tokens at end of #endif directive
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:56:8:
> warning: extra tokens at end of #endif directive
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:59:8:
> warning: extra tokens at end of #endif directive
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:62:8:
> warning: extra tokens at end of #endif directive
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:65:8:
> warning: extra tokens at end of #endif directive
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:68:8:
> warning: extra tokens at end of #endif directive
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:71:8:
> warning: extra tokens at end of #endif directive
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:74:8:
> warning: extra tokens at end of #endif directive
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:89:8:
> warning: extra tokens at end of #endif directive
> /usr/local/uc0/uClinux-dist/linux-2.0.x/include/linux/blk.h:92:8:
> warning: extra tokens at end of #endif directive
> init/main.c:134:8: warning: extra tokens at end of #endif directive
> init/main.c:137:8: warning: extra tokens at end of #endif directive
> init/main.c:140:8: warning: extra tokens at end of #endif directive
> init/main.c:143:8: warning: extra tokens at end of #endif directive
> init/main.c:146:8: warning: extra tokens at end of #endif directive
> init/main.c:149:8: warning: extra tokens at end of #endif directive
> init/main.c:152:8: warning: extra tokens at end of #endif directive
> init/main.c:155:8: warning: extra tokens at end of #endif directive
> init/main.c:158:8: warning: extra tokens at end of #endif directive
> init/main.c:161:8: warning: extra tokens at end of #endif directive
> init/main.c:164:8: warning: extra tokens at end of #endif directive
> init/main.c:173:8: warning: extra tokens at end of #endif directive
> init/main.c: At top level:
> init/main.c:272: error: static declaration of 'memory_start' follows
> non-static declaration
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/page.h:51:
> error: previous declaration of 'memory_start' was here
> init/main.c:273: error: static declaration of 'memory_end' follows
> non-static declaration
> /usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/sys-include/asm/page.h:52:
> error: previous declaration of 'memory_end' was here
> init/main.c:464:8: warning: extra tokens at end of #endif directive
> init/main.c:467:8: warning: extra tokens at end of #endif directive
> init/main.c:470:8: warning: extra tokens at end of #endif directive
> init/main.c:473:8: warning: extra tokens at end of #endif directive
> init/main.c:476:8: warning: extra tokens at end of #endif directive
> init/main.c:479:8: warning: extra tokens at end of #endif directive
> init/main.c:482:8: warning: extra tokens at end of #endif directive
> init/main.c:485:8: warning: extra tokens at end of #endif directive
> init/main.c:488:8: warning: extra tokens at end of #endif directive
> init/main.c:491:8: warning: extra tokens at end of #endif directive
> init/main.c:494:8: warning: extra tokens at end of #endif directive
> init/main.c: In function 'cpu_idle':
> init/main.c:899: warning: implicit declaration of function 'idle'
> init/main.c: In function 'start_kernel':
> init/main.c:1036: warning: implicit declaration of function 'sti'
> init/main.c: In function 'init':
> init/main.c:1165: warning: implicit declaration of function 'setup'
> make[1]: *** [init/main.o] Error 1
> make[1]: Leaving directory `/usr/local/uc0/uClinux-dist/linux-2.0.x'
> make: *** [linux] Error 1
> root at jimkirk:/usr/local/uc0/uClinux-dist#
>
> Advice please folks.
--
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: gerg at snapgear.com
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
More information about the uClinux-dev
mailing list