Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] buildroot with ELDK 4.1
@ 2009-07-03  3:46 Wenwei Zha
  2009-07-03  5:32 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Wenwei Zha @ 2009-07-03  3:46 UTC (permalink / raw)
  To: buildroot

Hi,

I just started to learn using buildroot to build a root file system. I
would like to use ELDK 4.1 as my toolchain but has some problem.

I might have some improper settings, but "make saveconfig" gives me no
error and "make" (without busybox) seems to be fine.

However, when I enable busybox installation, I can't go through
"make". I encounter error at this command:

/usr/bin/make -j1 CC=/home/wenwei/ELDK/usr/bin/ppc_4xx-gcc
CROSS_COMPILE="/home/wenwei/ELDK/usr/bin/ppc_4xx-"
CROSS="/home/wenwei/ELDK/usr/bin/ppc_4xx-"
PREFIX="/home/wenwei/temp/temp/buildroot-2009.05/project_build_powerpc/linux_26_ml410/root"
ARCH=powerpc EXTRA_CFLAGS="-Os -pipe -Os  --sysroot
/home/wenwei/temp/temp/buildroot-2009.05/build_powerpc/staging_dir/"
-C /home/wenwei/temp/temp/buildroot-2009.05/project_build_powerpc/linux_26_ml410/busybox-1.14.1


make[1]: Entering directory
`/home/wenwei/temp/temp/buildroot-2009.05/project_build_powerpc/linux_26_ml410/busybox-1.14.1'
 SPLIT   include/autoconf.h -> include/config/*
 GEN     include/bbconfigopts.h
 HOSTCC  applets/usage
applets/usage.c: In function ?main?:
applets/usage.c:32: warning: ignoring return value of ?write?,
declared with attribute warn_unused_result
 GEN     include/usage_compressed.h
 HOSTCC  applets/applet_tables
 GEN     include/applet_tables.h
 CC      applets/applets.o
cc1: error: unrecognized command line option "-fsysroot"
                                                                 ~~~~~~~~~~

Why I get this error? Is there some issue with ELDK? It seems to me
that buildroot comes with uClib but ELDK should work ....

Anybody went through the same error? Please give some help.

best regards

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

* [Buildroot] buildroot with ELDK 4.1
  2009-07-03  3:46 [Buildroot] buildroot with ELDK 4.1 Wenwei Zha
@ 2009-07-03  5:32 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2009-07-03  5:32 UTC (permalink / raw)
  To: buildroot

>>>>> "Wenwei" == Wenwei Zha <wenweizha@gmail.com> writes:

 Wenwei> Hi,
 Wenwei> I just started to learn using buildroot to build a root file system. I
 Wenwei> would like to use ELDK 4.1 as my toolchain but has some problem.

 Wenwei> make[1]: Entering directory
 Wenwei> `/home/wenwei/temp/temp/buildroot-2009.05/project_build_powerpc/linux_26_ml410/busybox-1.14.1'
 Wenwei>  SPLIT   include/autoconf.h -> include/config/*
 Wenwei>  GEN     include/bbconfigopts.h
 Wenwei>  HOSTCC  applets/usage
 Wenwei> applets/usage.c: In function ?main?:
 Wenwei> applets/usage.c:32: warning: ignoring return value of ?write?,
 Wenwei> declared with attribute warn_unused_result
 Wenwei>  GEN     include/usage_compressed.h
 Wenwei>  HOSTCC  applets/applet_tables
 Wenwei>  GEN     include/applet_tables.h
 Wenwei>  CC      applets/applets.o
 Wenwei> cc1: error: unrecognized command line option "-fsysroot"

That won't work - Your toolchain has to support sysroot (gcc 4.2 or
newer). As far as I can see on google, ELDK 4.1 used 4.0.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2009-07-03  5:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-03  3:46 [Buildroot] buildroot with ELDK 4.1 Wenwei Zha
2009-07-03  5:32 ` Peter Korsgaard

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