I got these 2 errors when compiling the new buildroot...
Problem 1:
/~/buildroot/toolchain_build_nios2/gcc-3.4.6-final/nios2-linux-uclibc/libstdc++-v3/include/ext/rope:939:18: macro "index" requires 2 arguments, but only 1 given
Problem 2:
In file included from /~/buildroot/toolchain_build_nios2/elf2flt/elf2flt.c:52:
/~/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:38:22: ansidecl.h: No such file or directory
I was able to workaround both problems, using this patch....
--- toolchain_build_nios2/gcc-3.4.6/libstdc++-v3/include/ext/rope 2006-03-29 10:06:26.000000000 +1000
+++ toolchain_build_nios2/gcc-3.4.6/libstdc++-v3/include/ext/rope 2006-03-29 10:06:26.000000000 +1000
68,72d67
< /* Fix potential name clash */
<# ifdef index
<# undef index
<# endif
<
--- toolchain_build_nios2/elf2flt/Makefile 2006-03-29 10:06:26.000000000 +1000
+++ toolchain_build_nios2/elf2flt/Makefile 2006-03-29 10:03:59.000000000 +1000
@@ -11,7 +11,7 @@
CPU = nios2
TARGET = nios2-linux-uclibc
CFLAGS = -g -O2
-INCLUDES = -I/home/andrew/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/
+INCLUDES = -I/home/andrew/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/ -I/home/andrew/buildroot/toolchain_build_nios2/binutils-2.15/include
CPPFLAGS =
LDFLAGS =
LIBS = /home/andrew/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/libbfd.a /home/andrew/buildroot/toolchain_build_nios2/binutils-2.15-build/libiberty/libiberty.a
question: Does anybody else get these errors, or are they due to some quirk of my (Debian) platform?
Thx in advance
hootsmon