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 Wed, Sep 9, 2009 at 12:29 PM, Paolo Bonzini <bonzini@gnu.org> wrote:
> 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.

This also happens with a GCC bootstrap too ...

-- Pinski


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