This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bootstrap/10666: undefined ATTRIBUTE_NULL_PRINTF_3
- From: Deron Meranda <dmeranda at iac dot net>
- To: gcc-prs at gcc dot gnu dot org, benoit dot sibaud at rd dot francetelecom dot com, gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Sat, 17 May 2003 04:49:13 -0400
- Subject: Re: bootstrap/10666: undefined ATTRIBUTE_NULL_PRINTF_3
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.