2008-10-21 09:41:27     Compilation error :distribution - 2008R1.5-RC3.tar.tar, Tool chain-blackfin-toolchain-08r1

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

2008-10-21 09:41:27     Compilation error :distribution - 2008R1.5-RC3.tar.tar, Tool chain-blackfin-toolchain-08r1

P SENTHIL KUMAR (INDIA)

Message: 63987   

 

Hi all,

 

         I tried to compile the latest distribution( uClinux-dist-2008R1.5-RC3.tar.tar ) using the following Toolchain (blackfin-toolchain-08r1.5-14.i386.rpm, blackfin-toolchain-08r1.5-14.i386.tar.tar ).

 

For both the toolchain. i had meet with the following compiling issue.

 

psenthil@mdtv:~/uClinux-dist-2008R1.5-RC3> make

make -C tools/sg-cksum

make[1]: Entering directory `/home/psenthil/DPF/uClinux-dist-2008R1.5-RC3/tools/sg-cksum'

make[1]: `cksum' is up to date.

make[1]: Leaving directory `/home/psenthil/DPF/uClinux-dist-2008R1.5-RC3/tools/sg-cksum'

ln -sf /home/psenthil/DPF/uClinux-dist-2008R1.5-RC3/tools/sg-cksum/cksum tools/cksum

ln -sf staging-compiler tools/bfin-uclinux-gcc

ln -sf staging-compiler tools/bfin-uclinux-g++

ln -sf staging-compiler tools/bfin-uclinux-cpp

ln -sf staging-compiler tools/bfin-uclinux-ld

ln -sf staging-pkg-config tools/bfin-uclinux-pkg-config

rm -f linux-2.6.x/usr/initramfs_data.cpio.gz

make ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -j4 -C linux-2.6.x  || exit 1

make[1]: Entering directory `/home/psenthil/DPF/uClinux-dist-2008R1.5-RC3/linux-2.6.x'

  SYMLINK include/asm-blackfin/mach-bf561 -> include/asm-blackfin/mach

  CHK     include/linux/version.h

  CHK     include/linux/utsrelease.h

  SYMLINK include/asm -> include/asm-blackfin

  HOSTCC  scripts/basic/fixdep

  HOSTCC  scripts/basic/docproc

  CC      scripts/mod/empty.o

  HOSTCC  scripts/mod/mk_elfconfig

  MKELF   scripts/mod/elfconfig.h

  HOSTCC  scripts/mod/file2alias.o

  HOSTCC  scripts/mod/modpost.o

  HOSTCC  scripts/mod/sumversion.o

  HOSTLD  scripts/mod/modpost

  HOSTCC  scripts/kallsyms

  HOSTCC  scripts/bin2c

  CC      arch/blackfin/kernel/asm-offsets.s

In file included from include/linux/spinlock.h:53,

                 from include/linux/capability.h:47,

                 from include/linux/sched.h:46,

                 from arch/blackfin/kernel/asm-offsets.c:31:

include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory

In file included from include/linux/spinlock.h:53,

                 from include/linux/capability.h:47,

                 from include/linux/sched.h:46,

                 from arch/blackfin/kernel/asm-offsets.c:31:

include/linux/kernel.h:123: error: expected declaration specifiers or â...â before âva_listâ

include/linux/kernel.h:127: error: expected declaration specifiers or â...â before âva_listâ

include/linux/kernel.h:131: error: expected declaration specifiers or â...â before âva_listâ

include/linux/kernel.h:135: error: expected declaration specifiers or â...â before âva_listâ

include/linux/kernel.h:139: error: expected declaration specifiers or â...â before âva_listâ

include/linux/kernel.h:155: error: expected declaration specifiers or â...â before âva_listâ

make[2]: *** [arch/blackfin/kernel/asm-offsets.s] Error 1

make[1]: *** [prepare0] Error 2

make[1]: Leaving directory `/home/psenthil/DPF/uClinux-dist-2008R1.5-RC3/linux-2.6.x'

make: *** [linux] Error 1

psenthil@mdtv:~/uClinux-dist-2008R1.5-RC3>

 

 

I had cross checked the toolchain installation path using echo $PATH and which command, everthing is properly installed.

 

let me know some suggestion to solve the compilation issue.

 

I am going to use a BF561 based custom board for my application

 

Thanks & Regards, Senthil

QuoteReplyEditDelete

 

 

2008-10-21 10:01:28     Re: Compilation error :distribution - 2008R1.5-RC3.tar.tar, Tool chain-blackfin-toolchain-

Robin Getz (UNITED STATES)

Message: 63989   

 

Senthil:

 

You did not install your toolchain properly. See the faq and the installation directions:

 

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

 

https://docs.blackfin.uclinux.org/doku.php?id=faq (the one about " Building packages fails with stdarg.h missing")

 

-Robin

QuoteReplyEditDelete

 

 

2008-10-22 03:17:39     Re: Compilation error :distribution - 2008R1.5-RC3.tar.tar, Tool chain-blackfin-toolchain-

P SENTHIL KUMAR (INDIA)

Message: 64019   

 

hi robi,

 

           Thanks for your reply and suggestion,

 

           Now, i can able to compile the distribution by installing the proper packages and toolchain.

 

Thanks & Regards, Senthil

Attachments

    Outcomes