public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: York Sun <yorksun@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] kbuild: move ARCH, CPU, etc. to top Makefile to fix random build error
Date: Tue, 31 Mar 2015 08:37:38 -0700	[thread overview]
Message-ID: <551ABF42.1030005@freescale.com> (raw)
In-Reply-To: <1427803341-28286-1-git-send-email-yamada.masahiro@socionext.com>



On 03/31/2015 05:02 AM, Masahiro Yamada wrote:
> Since the Kconfig conversion, some developers have reported that
> Kbuild sometimes fails completely at random.  According to the error
> reports, it seems to occur for any target board, but only on very
> fast computers.
> 
> The log message for the fail case is like this:
> 
>   make[1]: *** No rule to make target `../arch//cpu/u-boot.lds',
>   needed by `u-boot.lds'.  Stop.
> 
> It looks like the top config.mk has not been included for *some*
> reason, and $(ARCH) has been left blank.
> 
> I suspect "autoconf_is_current" is not working in some situation.
> 
> This commit moves the definition of ARCH, CPU, SOC, etc. to the
> top Makefile, so they are surely set.
> 
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> Reported-by: Tom Rini <trini@konsulko.com>>
> Reported-by: York Sun <yorksun@freescale.com>
> Reported-by: Stephen Warren <swarren@nvidia.com>
> ---
> 
> Sorry for leaving this problem so long.
> 
> I have never been able to reproduce this bug on my computer,
> so I am not sure this patch can fix the problem.
> I wrote this patch based on my guess.
> (I just tested this patch has no bad impact.)
> 
> Tom, York, Stephen,
> 
> Could you test this patch fixes the problem?
> 

Yes I will try. It seems to related to specific OS. I have seen it on old CentOS
(fast machine though) when running by script. But I haven't been able to
reproduce it reliably.

York

  reply	other threads:[~2015-03-31 15:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-31 12:02 [U-Boot] [PATCH] kbuild: move ARCH, CPU, etc. to top Makefile to fix random build error Masahiro Yamada
2015-03-31 15:37 ` York Sun [this message]
2015-03-31 15:45 ` Stephen Warren
2015-03-31 15:57   ` York Sun
2015-04-01 22:33 ` Stephen Warren
2015-04-03  3:54   ` Masahiro Yamada

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=551ABF42.1030005@freescale.com \
    --to=yorksun@freescale.com \
    --cc=u-boot@lists.denx.de \
    /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