2008-09-11 13:11:04     Kernel Compile Problems.

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-09-11 13:11:04     Kernel Compile Problems.

Matt Gilg (UNITED STATES)

Message: 61997   

 

When attempting to compile the kernel, i get the following error:

 

make[3]: Leaving directory `/home/ubuntu/Blackfin/uClinux.new/trunk/trunk/user/ramimage'

[ ! -d "sash" ] || ( touch sash/.sgbuilt_user && make -j1 -C sash ) || exit $?

make[3]: Entering directory `/home/ubuntu/Blackfin/uClinux.new/trunk/trunk/user/sash'

bfin-linux-uclibc-gcc -pipe -Wall -g -O2       -mcpu=bf537-0.2 -DEMBED -D__uClinux__ -I/home/ubuntu/Blackfin/uClinux.new/trunk/trunk     -mcpu=bf537-0.2  -c -o sash.o sash.c

In file included from sash.h:9,

                 from sash.c:13:

/opt/uClinux-2007rc3/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/stdio.h:34:21: error: stddef.h: No such file or directory

In file included from /opt/uClinux-2007rc3/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/bits/types.h:206,

                 from /opt/uClinux-2007rc3/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/stdio.h:36,

                 from sash.h:9,

                 from sash.c:13:

/opt/uClinux-2007rc3/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/bits/pthreadtypes.h:48: error: expected specifier-qualifier-list before ‘size_t’

In file included from /opt/uClinux-2007rc3/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/pthread.h:21,

                 from /opt/uClinux-2007rc3/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/bits/uClibc_mutex.h:15,

                 from /opt/uClinux-2007rc3/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/bits/uClibc_stdio.h:119,

                 from /opt/uClinux-2007rc3/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/stdio.h:72,

                 from sash.h:9,

                 from sash.c:13:

/opt/uClinux-2007rc3/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/time.h:204: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strftime’

In file included from /opt/uClinux-2007rc3/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/bits/uClibc_mutex.h:15,

                 from /opt/uClinux-2007rc3/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/bits/uClibc_stdio.h:119,

                 from /opt/uClinux-2007rc3/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/stdio.h:72,

                 from sash.h:9,

                 from sash.c:13:

/opt/uClinux-2007rc3/bfin-linux-uclibc/bin/../bfin-linux-uclibc/runtime/usr/include/pthread.h:284: error: expected declaration specifiers or ‘...’ before ‘size_t’

 

-----------------------------------------------------------------------------------------------------

 

It appears stddef.h is not found.  i'm sure i'm overlooking something.

 

I'm using the toolkit: blackfin-toolchain-08r1.5-14.i386

 

I'm using the linux version: uClinux-dist-2008R1.5-RC3

 

Any ideas?

 

 

 

-Matt

 

 

QuoteReplyEditDelete

 

 

2008-09-11 13:20:02     Re: Kernel Compile Problems.

Robin Getz (UNITED STATES)

Message: 61999   

 

Matt:

 

You never installed the c library - go back and read the instructions:

 

https://docs.blackfin.uclinux.org/doku.php?id=toolchain:installing

 

-Robin

QuoteReplyEditDelete

 

 

2008-09-11 14:04:24     Re: Kernel Compile Problems.

Matt Gilg (UNITED STATES)

Message: 62002   

 

Ok, sorry about the dumb question.    Thanks for the help Robin!

 

- Matt

Attachments

    Outcomes