Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Anders Darander <anders@chargestorm.se>
To: Denys Dmytriyenko <denis@denix.org>
Cc: "openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: Race condition when building external kernel modules
Date: Fri, 5 Sep 2014 08:17:38 +0200	[thread overview]
Message-ID: <20140905061727.GB4498@ad.chargestorm.se> (raw)
In-Reply-To: <20140904230826.GV2480@denix.org>

Hi,

* Denys Dmytriyenko <denis@denix.org> [140905 01:09]:
> This report is exactly from 3 years ago. Has this ever been resolved or looked 
> at? We have started seeing this a lot lately in our own distro based on Daisy 
> with 3.14 kernel when building with 12-24 threads. But it might not be release 
> specific or even OE specifig...

Yes, our usecase was solved by by commit 8681b82e8b466929205edde7ba479f3ac1a6143e,
"module.bbclass: add lock to prevent error bulding ext modules". That
seems to still be in modules.bbclass, thus the do_make_scripts task
ought to be protected.

> All the same symptoms as below - external modules break when building/using 
> scripts from the kernel tree ran by do_make_scripts function. Usually the 
> failure is due to a race in or around fixdep: error opening depfile, but 
> sometimes it's in scripts/dtc or scripts/mod when it can't move a temp file 
> from a build. Looks like kernel creates .tmp_<name>.o files for use with ksyms 
> utils as well as .<name>.o.d files for fixdep and those are usually the files 
> that are not available at the right moment due to some race...

Do you get the issue also when building just one external module? I'd
guess not...

Can you verify that it's in the do_make_scripts function the breakage
occurs, or is it in the do_compile step?

Cheers,
Anders

-- 
Anders Darander
ChargeStorm AB		Tel: +46 702 44 84 36
Drottninggatan 20	Email: anders@chargestorm.se
602 24 Norrköping	Web: www.chargestorm.se


      reply	other threads:[~2014-09-05  6:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-07 17:55 Race condition when building external kernel modules Anders Darander
2011-09-08  7:08 ` Anders Darander
2014-09-04 23:08   ` Denys Dmytriyenko
2014-09-05  6:17     ` Anders Darander [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140905061727.GB4498@ad.chargestorm.se \
    --to=anders@chargestorm.se \
    --cc=denis@denix.org \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox