Modify

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8596 closed enhancement (fixed)

Patch to fix parallel compile problem

Reported by: Jonathan Bennett <jbscience87@…> Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: toolchain Version: Trunk
Keywords: Cc:

Description

I pointed out a problem in the parallel compiling in #8081. I finally stumbled upon the cause. When running in parallel, make starts 2 separate downloads of gcc. These downloads clobber each other, causing the errors. This patch makes the prepare stages of gcc dependent on each other. This is tested and confirmed to fix the issue.

trunk/toolchain/Makefile:

--- Makefile.old    2011-01-06 23:42:45.591573343 -0600
+++ Makefile        2011-01-06 23:42:15.365983021 -0600
@@ -38,6 +38,8 @@
   $(curdir)/gcc/minimal/compile:=$(curdir)/binutils/install
   $(curdir)/kernel-headers/install:=$(curdir)/gcc/minimal/install
   $(curdir)/gcc/initial/compile:=$(curdir)/$(LIBC)/prepare
+  $(curdir)/gcc/initial/prepare:=$(curdir)/gcc/minimal/prepare
+  $(curdir)/gcc/final/prepare:=$(curdir)/gcc/initial/prepare
   $(curdir)/$(LIBC)/compile:=$(curdir)/gcc/initial/install
   $(curdir)/gcc/final/compile:=$(curdir)/$(LIBC)/compile
   $(curdir)/$(LIBC)/install:=$(curdir)/gcc/final/install

~Jonathan Bennett

Attachments (0)

Change History (6)

comment:1 Changed 7 years ago by anonymous

good fix, make -j 6 works now. hope this simple fix get checked into trunk soon.

comment:2 Changed 7 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Committed in r24969 - thanks!

comment:3 Changed 7 years ago by Jonathan Bennett <jbscience87@…>

Excellent. Please close #8081 as well.

Thank you much.

comment:4 Changed 7 years ago by dirtyfreebooter <openwrt-devel@…>

This still happens in r25759

comment:5 Changed 7 years ago by dirtyfreebooter <openwrt-devel@…>

nevermind, sorry, wrong ticket. please ignore.

comment:6 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.