bootstrap/10666: undefined ATTRIBUTE_NULL_PRINTF_3

Deron Meranda dmeranda@iac.net
Sat May 17 10:42:00 GMT 2003


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10666

Also seen under hppa2.0-hp-hpux11.00 (32-bit) with
gcc 3.3 final release.   Using binutils 2.13.2.1.

As mentioned, it is picking up the ansidecl.h under binutils
rather than gcc/include.  Since the only diffs seem to be
these ATTRIBUTE_ macros, you can temporarily work around the
bootstrap problem by replacing the ansidecl.h header in
binutils with the one from gcc 3.3.  This is obviously not a
correct fix, but will allow the stage1 compiler to be built.

For the record, here's the compile line in my setup which
ends up including the wrong ansidecl.h...

/usr/bin/cc -Ae -z +ESlit +DA2.0 \
    -I/opt/gnu/binutils/2.13.2.1-32/include \
    +Z -c   -g  -DIN_GCC     -DHAVE_CONFIG_H \
    -I. -I. -I/opt2/gnu/src/gcc/gcc-3.3/gcc \
    -I/opt2/gnu/src/gcc/gcc-3.3/gcc/. \
    -I/opt2/gnu/src/gcc/gcc-3.3/gcc/config \
    -I/opt2/gnu/src/gcc/gcc-3.3/gcc/../include \
    /opt2/gnu/src/gcc/gcc-3.3/gcc/dwarf2asm.c \
    -o dwarf2asm.o

The first -I directory was a direct result of me specifying
it in $CC/$CFLAGS during the configure phase (needed because I
have many different compilers and several different binutils
versions on the system).  So this may be "user error" on my
part.  But it seems like an easy error to make, so it may be
worth a mention in the install notes until binutils catches
up with gcc.



More information about the Gcc-bugs mailing list