Skip to content

gcc-4.9.inc: fix parallel building failure

Hongxu Jia openembedded-core 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest1 patch 0 repliesNew
  2. v21 patch 2 repliesSuperseded
  3. v11 patch 1 replySuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1gcc-4.9.inc: fix parallel building failuremeta/recipes-devtools/gcc/gcc-4.9/0054-gcc-Makefile.in-fix-parallel-building-failure.patch+42 -370 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH V3 0/1] gcc-4.9.inc: fix parallel building failure

Changed in V3:

Rebase it against master as we have already
merged the first version.

Change in V2:

As the upstream of gcc suggested:
- The previous fix is too hack;
- Use '$(ALL_HOST_OBJS) : | $(generated_files)' rule to handle the dependency.

Test Steps:

1. For reproducing the issue every time, manually modify gcc/Makefile.in to delay the generation of config.h:
...

gcc/Makefile.in +3 -0
index c4daf69..c502898 100644
@@ -1622,9 +1622,12 @@ tm.h: cs-tm.h ; @true
 tm_p.h: cs-tm_p.h ; @true
 
 cs-config.h: Makefile
+   @echo "start to generate config.h `date`"
+   sleep 10
    TARGET_CPU_DEFAULT="" \
    HEADERS="$(host_xm_include_list)" DEFINES="$(host_xm_defines)" \
    $(SHELL) $(srcdir)/mkconfig.sh config.h
+   @echo "config.h generated `date`"
 
 cs-bconfig.h: Makefile
    TARGET_CPU_DEFAULT="" \

...

2. bitbake gcc-cross-arm

//Hongxu

The following changes since commit addeef1dc91306175824b1f5587e40a22773cff4:

lib/oe/rootfs: Improve error message whitespace (2014-07-28 12:21:24 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib hongxu/fix-gcc
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-gcc

Hongxu Jia (1):
gcc-4.9.inc: fix parallel building failure

 ...Makefile.in-fix-parallel-building-failure.patch | 79 ++++++++++++----------
 1 file changed, 42 insertions(+), 37 deletions(-)
Signature · 1 line
1.8.1.2