[Bug bootstrap/57125] Build not SMP safe; fails to build bconfig.h

2014-08-29 Thread andrew at ado dot is-a-geek.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57125

Andrew Oakley  changed:

   What|Removed |Added

 CC||andrew at ado dot is-a-geek.net

--- Comment #5 from Andrew Oakley  ---
Created attachment 33419
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33419&action=edit
Possible fix

Attached is a patch which appears to fix this issue for me (on gcc 4.8.3).

In gcc/Makefile.in there is a comment:
# The gengtype generator program is special: Two versions are built.
# One is for the build machine, and one is for the host to allow
# plugins to define their types and generate the supporting GGC
# datastructures and routines with GTY markers.
# The host object files depend on CONFIG_H, and the build objects
# on BCONFIG_H.  For the build objects, add -DGENERATOR_FILE manually,
# the build-%: rule doesn't apply to them.

The change I chose to make swaps the make dependencies around, alternatively
GENERATOR_FILE may defined in the wrong case.  I'm not sure what the right
behaviour is here, or which set of objects is which!


[Bug bootstrap/57125] Build not SMP safe; fails to build bconfig.h

2014-08-29 Thread andrew at ado dot is-a-geek.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57125

--- Comment #6 from Andrew Oakley  ---
Sorry, this patch doesn't seem sufficient (perhaps I was just lucky for a
while).  Apologies for the noise.