AnsweredAssumed Answered

Toolchian error 2011 R1

Question asked by laeeq on Jul 11, 2012
Latest reply on Jul 13, 2012 by laeeq

I downloaded , extracted and set up a new toolchain .

To confirm,

bfin-linux-uclibc-gcc -v

Using built-in specs.

Target: bfin-linux-uclibc

Configured with: /usr/src/packages/BUILD/blackfin-toolchain-2011R1/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=bfin-linux-uclibc --prefix=/opt/uClinux/bfin-linux-uclibc --disable-libstdcxx-pch --with-sysroot=/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime --enable-threads=posix --enable-shared --enable-clocale=generic --disable-symvers --disable-libssp --disable-libffi --disable-libgcj --enable-version-specific-runtime-libs --enable-__cxa_atexit --with-bugurl=URL:http://blackfin.uclinux.org/gf/project/toolchain/tracker --with-pkgversion=ADI-2011R1-RC4

Thread model: posix

gcc version 4.3.5 (ADI-2011R1-RC4)

 

But now i face a different issue , after setting the PATH  & restarting the terminal, when i go to compile my kernel (make clean and make menuconfig done) with this new toolchain i get these errors,

 

as: unrecognized option '-mcpu=bf548-0.2'

make[3]: *** [scripts/mod/empty.o] Error 1

make[2]: *** [scripts/mod] Error 2

make[2]: *** Waiting for unfinished jobs....

  CC      kernel/bounds.s

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

make[1]: *** Waiting for unfinished jobs....

  GEN     include/generated/bounds.h

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

In file included from include/linux/sched.h:55,

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

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

In file included from include/linux/kernel.h:20,

                 from include/linux/sched.h:55,

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

include/linux/printk.h:47: error: expected specifier-qualifier-list before ‘va_list’

include/linux/printk.h:99: error: expected declaration specifiers or ‘...’ before ‘va_list’

In file included from include/linux/sched.h:55,

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

include/linux/kernel.h:293: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:297: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:301: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:305: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:309: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:510: error: expected declaration specifiers or ‘...’ before ‘va_list’

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

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

 

These have not appeared before with my previous toolchain (2010 one)  and it worked fine so far. I think the error starts with as: unrecognized option '-mcpu=bf548-0.2' ??

Outcomes