From: Ulf Samuelsson <ulf.samuelsson@atmel.com>
To: buildroot@busybox.net
Subject: [Buildroot] Binary toolchain fails
Date: Sun, 01 Feb 2009 11:34:39 +0100 [thread overview]
Message-ID: <1233484479.4147.149.camel@elrond.atmel.com> (raw)
I am testing the binary toolchain, with a toolchain built
by another buildroot project.
Several packages does not build correctly.
"-lintl" and "-liconv are" not found.
Examples are "e2fsprogs" and "libgpg-error"
by doing
ifeq ($(BR2_PACKAGE_LIBICONV),y)
LIBGPG_ERROR_CONF_OPT += --with-libiconv-prefix=$(STAGING_DIR)/usr
endif
ifeq ($(BR2_PACKAGE_LIBINTL),y)
LIBGPG_ERROR_CONF_OPT += --with-libintl-prefix=$(STAGING_DIR)/usr
endif
...
$(LIBGPG_ERROR_DIR)/.configured: $(LIBGPG_ERROR_DIR)/.source
(cd $(LIBGPG_ERROR_DIR); rm -f config.cache; \
...
./configure \
...
$(LIBGPG_ERROR_CONF_OPT) \
...
)
and adding CFLAGS to the make, (moved from configure)
$(LIBGPG_ERROR_DIR)/.configured
CFLAGS="$(TARGET_CFLAGS)" \
$(MAKE) CC=$(TARGET_CC) -C $(LIBGPG_ERROR_DIR)
Both packages builds with this fix,
but since it is systematic the change should probably be made elsewhere.
(package/Makefile.in?)
Any drawbacks with this change?
At least one of the following is screwed up when
you use an binary toolchain generated by buildroot.
$(TARGET_CONFIGURE_OPTS)
$(TARGET_CONFIGURE_ARGS)
?CFLAGS="$(TARGET_CFLAGS)"
KERNEL HEADERS
--------------
If you build just the toolchain to, lets say, /usr/local/arm/gcc-4.3.2,
and use this directory as GCCROOT in your external toolchain,
you have no kernel-headers.
Should the kernel headers really be installed in
toolchain_build_ARCH/linux?
Why not in "$(STAGING_DIR)/usr/include/linux" ?
If you are not building a toolchain from source, then
the kernel-headers target is not available.
I moved them out from the if BUILDROOT_TOOLCHAIN_SOURCE
clause so they build for me, but I think that
is the wrong solution and generating the headers in
?"$(STAGING_DIR)/usr/include/linux" is better.
Comments?
BR
Ulf Samuelsson
next reply other threads:[~2009-02-01 10:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-01 10:34 Ulf Samuelsson [this message]
2009-02-01 11:50 ` [Buildroot] Binary toolchain fails Ulf Samuelsson
2009-02-01 13:08 ` Peter Korsgaard
2009-02-01 13:57 ` Ulf Samuelsson
2009-02-01 13:06 ` Peter Korsgaard
2009-02-01 14:00 ` Ulf Samuelsson
2009-02-02 12:55 ` Daniel Laird
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=1233484479.4147.149.camel@elrond.atmel.com \
--to=ulf.samuelsson@atmel.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