public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Fix for a build ?
@ 2010-05-03 13:51 Sylvain Lamontagne
  2010-05-03 18:52 ` Mike Frysinger
  2010-05-03 20:34 ` Wolfgang Denk
  0 siblings, 2 replies; 13+ messages in thread
From: Sylvain Lamontagne @ 2010-05-03 13:51 UTC (permalink / raw)
  To: u-boot

Hi everybody,

We have recently installed an automated build system in our company
and occasionally there is a problem when U-Boot is built.
One build will work the other will not without any changes to the sources
(it is not: 1 work, then other fail... it is more like 3 may work the 4 will
not but the 5 will). Our build system guy says that the problem is probably
a race condition with a dependency in the U-Boot make.

Here is the error that trigger the failure.
*[09:23:58]:* */home/slamon/server/TeamCity/buildAgent/work/19b40828dc62d35d/build/u-boot-1.3.4/cpu/mpc5xxx/.depend:73:
*** multiple target patterns. Stop.*
*[09:23:58]:* *make: ***
[/home/slamon/server/TeamCity/buildAgent/work/19b40828dc62d35d/build/u-boot-1.3.4/cpu/mpc5xxx/start.o]
Error 2*
*[09:23:58]:* */home/slamon/server/TeamCity/buildAgent/work/19b40828dc62d35d/build/u-boot-1.3.4/cpu/mpc5xxx/.depend:73:
*** multiple target patterns. Stop.*
*[09:23:58]:* *make: *** Waiting for unfinished jobs....*
*[09:23:58]:* *make: ***
[/home/slamon/server/TeamCity/buildAgent/work/19b40828dc62d35d/build/u-boot-1.3.4/cpu/mpc5xxx/libmpc5xxx.a]
Error 2*
*[09:24:01]:* *Process exited with code 2*

It is not extremely problematic because everything is automated and next
build after the failing one will work (when it is this error), but it's only
that we get a notification email when a build fail and we are afraid that
our developers will take the failure as a "Boy Who Cried Wolf"... if you
know what I mean.

Is there a way to fix this ? It could be putting some "sleep" somewhere...

Any suggestion ?

Sylvain

* Also, upgrading U-Boot is not an option... since we don't have the need
nor resources to port a new version of U-Boot to this product. So please
don't suggest that.

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [U-Boot] Fix for a build ?
@ 2010-05-05 10:32 Igor Luri
  2010-05-05 15:55 ` Sylvain Lamontagne
  0 siblings, 1 reply; 13+ messages in thread
From: Igor Luri @ 2010-05-05 10:32 UTC (permalink / raw)
  To: u-boot

Dear Sylvain Lamontagne,

We have had a similir issue building U-Boot (1.1.6) in a server with 2
cuadcore processors that is responsible of the automated build system. 

GNU Make has the posibility to run several jobs simultaneously, passing
the argument "-j N", where N is the number of jobs executed
simultaneously. Since our server has 8 processors, we use "-j 9"
arguments in the automated build (the documentation recomends using N=
number of cores +1). This way, U-Boot and other software projects,
sometimes build ok and sometimes fail.

We solve this problem building U-Boot and failing projects passing "-j
1" argument to Make (without running simultaneous jobs), and the rest of
software with "-j 9".

I have seen that you are running simultaneous jobs:

*[09:23:58]:* *make: *** Waiting for unfinished jobs....*



Hope this helps.

Peace.



-- 
Igor Luri
R&D Software Department
Fagor Aotek S. Coop.
P. O. Box 144
E-20500 Mondrag?n-Arrasate
Tel.    ++34 943 71 92 00 
        ++34 943 71 92 01 (Ext. 44268)
Fax.    ++34 943 79 92 03
www.aotek.es

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-05-05 15:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-03 13:51 [U-Boot] Fix for a build ? Sylvain Lamontagne
2010-05-03 18:52 ` Mike Frysinger
2010-05-03 20:14   ` Sylvain Lamontagne
2010-05-03 20:37     ` Wolfgang Denk
2010-05-03 20:34 ` Wolfgang Denk
2010-05-03 21:44   ` Mike Frysinger
2010-05-03 22:02   ` Sylvain Lamontagne
2010-05-03 23:30     ` Mike Frysinger
2010-05-04  7:56     ` Wolfgang Denk
2010-05-04 14:39       ` Sylvain Lamontagne
2010-05-04 18:44         ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2010-05-05 10:32 Igor Luri
2010-05-05 15:55 ` Sylvain Lamontagne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox