Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Interesting "bug" with the Crosstool-NG backend
@ 2013-01-09 20:12 Thomas Petazzoni
  0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2013-01-09 20:12 UTC (permalink / raw)
  To: buildroot

Hello,

This afternoon, I helped an user on the #buildroot IRC channel. He was
trying to use the Crosstool-NG backend, and had the following build
failure:

  http://pastebin.com/KPRj7XVU

So, it's trying to build the "make" package before anything else...

So I asked whether he was mistakenly running "make make", but he was
not.

I asked him to put online his configuration file:

  http://pastebin.com/srLmgkwy

As you can see BR2_PACKAGE_MAKE is not enabled.

So, I was wondering what could happen. And then, I saw:

BR2_TOOLCHAIN_CTNG_CONFIG="make ctng-menuconfig"

That's obviously wrong, it should be a configuration file. But in the
Crosstool-NG backend code, we have:

CTNG_CONFIG_FILE:=$(call qstrip,$(BR2_TOOLCHAIN_CTNG_CONFIG))
[...]
$(CTNG_DIR)/.config: $(CTNG_CONFIG_FILE) $(CONFIG_DIR)/.config
        $(Q)if [ ! -f $@ ];
[...]

So, the contents of $(BR2_TOOLCHAIN_CTNG_CONFIG) is used as a
dependency. So this gets expanded to:

<somelocation>/.config: make ctng-menuconfig <someotherlocation>/.config

And Buildroot tries to build the "make" package as a prerequisite of
building $(CTNG_DIR)/.config :-)

Fun, no?

I'm not sure we can/should do something about this, but I thought it
was interesting to tell you the story :-)

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-09 20:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-09 20:12 [Buildroot] Interesting "bug" with the Crosstool-NG backend Thomas Petazzoni

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