--- Quote Start ---
originally posted by torsten grevsmuehl@Apr 24 2006, 06:58 PM
make -j1 -c /home/grev/buildroot/toolchain_build_nios2/elf2flt all
make[1]: entering directory `/home/grev/buildroot/toolchain_build_nios2/elf2flt'
gcc -g -o2 -dpackage_name=\"\" -dpackage_tarname=\"\" -dpackage_version=\"\" -dpackage_string=\"\" -dpackage_bugreport=\"\" -dstdc_headers=1 -dhave_sys_types_h=1 -dhave_sys_stat_h=1 -dhave_stdlib_h=1 -dhave_string_h=1 -dhave_memory_h=1 -dhave_strings_h=1 -dhave_inttypes_h=1 -dhave_stdint_h=1 -dhave_unistd_h=1 -dhave_fcntl_h=1 -dhave_unistd_h=1 -dhave_vprintf=1 -dhave_dcgettext=1 -dtarget_nios2 -i/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/ -o elf2flt /home/grev/buildroot/toolchain_build_nios2/elf2flt/elf2flt.c /home/grev/buildroot/toolchain_build_nios2/elf2flt/stubs.c /home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/libbfd.a /home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/libiberty/libiberty.a
in file included from /home/grev/buildroot/toolchain_build_nios2/elf2flt/elf2flt.c:52:
/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:38:22: ansidecl.h: no such file or directory
/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:39:20: symcat.h: no such file or directory
in file included from /home/grev/buildroot/toolchain_build_nios2/elf2flt/elf2flt.c:52:
/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:834: error: parse error before "params"
/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:838: error: parse error before "params" --- Quote End ---
I see this exact behaviour on my Debian platform too, so now we can confirm this is definitely Debian related (I thought it might be).
The good news is there's a 1-line workaround, but for now I have to work from memory, since I'm not at my Debian PC today. Basically, just hack elf2flt's Makefile, so that "ansidecl.h" is found in the include path. I don't know why only Debian need this. I will make a patch tomorrow, but in the meantime, give this a try....
1) cd ~/buildroot/toolchain_build_nios2/elf2flt/
2) find .. -name "ansidecl.h" -print
* Note path for "ansidecl.h", I think its in current dir?
3) vi Makefile
* search for "-I"
* add another -I {path} so that ansidecl.h and friends are includable
4) make clean
5) make
6) make install
7) cd ~buildroot
8) make
That should make buildroot OK. At this stage I recommend rebuilding busybox, as per step# 12 of hippo's buildroot guide.
Good luck
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif