Hello,
Following my previous mail about troubles when compiling avr-gcc, here
is a patch that removes `-I /usr/local/include' from CFLAGS because of a
conflict with devel/gdb.
libiberty includes "ansidecl.h". Because of the -I command, it picked
the one from /usr/local/include (installed by devel/gdb) instead of the
one bundled with gcc and they differ a lot.
devel/gdb::/usr/local/include/ansidecl.h has no macros PARAMS, VA_OPEN,
etc.
Best,
Avoid conflict between system wide includes and gcc includes
devel/gdb installs a version of ansidecl.h that is incompatible with
the one needed by devel/avr/gcc. Local includes are not needed anyway.
Index: ports/devel/avr/gcc/Makefile
===================================================================
--- ports.orig/devel/avr/gcc/Makefile
+++ ports/devel/avr/gcc/Makefile
@@ -10,7 +10,7 @@ WANTLIB= c gmp mpfr
EXTRACT_SUFX= .tar.bz2
PKGNAME= avr-gcc-${V}
-REVISION= 2
+REVISION= 3
DISTFILES= gcc-core-${V}${EXTRACT_SUFX} \
gcc-g++-${V}${EXTRACT_SUFX}
#EXTRACT_ONLY= ${DISTFILES}
@@ -39,7 +39,7 @@ CONFIGURE_ARGS+= \
--with-gmp=${LOCALBASE} \
--with-mpfr=${LOCALBASE}
-MAKE_FLAGS= LANGUAGES="c c++" CFLAGS="-I/usr/local/include -fgnu89-inline"
+MAKE_FLAGS= LANGUAGES="c c++" CFLAGS="-fgnu89-inline"
MAKE_ENV= MACHINE_ARCH=avr
SEPARATE_BUILD= Yes