From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Interesting "bug" with the Crosstool-NG backend
Date: Wed, 9 Jan 2013 21:12:26 +0100 [thread overview]
Message-ID: <20130109211226.12888f5d@skate> (raw)
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
reply other threads:[~2013-01-09 20:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20130109211226.12888f5d@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/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