This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Place temporary generated stdint.h file under $tmp/


On 09/09/2009 09:28 PM, Ralf Wildenhues wrote:
* Jan Kratochvil wrote on Wed, Sep 09, 2009 at 09:21:41PM CEST:
make[4]: Entering directory `.../gdb-clean/opcodes'
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I. -I. -I../bfd -I./../include -I./../bfd    -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -m64 -ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -MT m32c-asm.lo -MD -MP -MF .deps/m32c-asm.Tpo -c -o m32c-asm.lo m32c-asm.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I. -I../bfd -I./../include -I./../bfd -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -m64 -ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -MT m32c-asm.lo -MD -MP -MF .deps/m32c-asm.Tpo -c m32c-asm.c -o m32c-asm.o
In file included from ../bfd/bfd_stdint.h:4,
                  from cgen-types.h:24,
                  from m32c-opc.h:31,
                  from m32c-asm.c:36:
../bfd/config.h:239:1: error: "PACKAGE" redefined
In file included from sysdep.h:30,
                  from m32c-asm.c:30:
config.h:54:1: error: this is the location of the previous definition
make[4]: *** [m32c-asm.lo] Error 1

Does rm */config.h */gconfig.h */Makefile make

solve this for you?  If yes, then it's not this particular patch that is
wrong, but missing dependencies; opcodes/config.status should depend on
bfd/configure.in; and in fact, there is a CONFIG_STATUS_DEPENDENCIES
entry to thie end in opcodes/Makefile.am.  I wonder why it's not working
as intended.  Do you run parallel make?

No, the problem is that the opcodes/config.h is included, but the new bfd_stdint.h includes bfd/config.h.


Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]