Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Binary toolchain fails
@ 2009-02-01 10:34 Ulf Samuelsson
  2009-02-01 11:50 ` Ulf Samuelsson
  2009-02-01 13:06 ` Peter Korsgaard
  0 siblings, 2 replies; 7+ messages in thread
From: Ulf Samuelsson @ 2009-02-01 10:34 UTC (permalink / raw)
  To: buildroot

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-02-02 12:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-01 10:34 [Buildroot] Binary toolchain fails Ulf Samuelsson
2009-02-01 11:50 ` 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

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