[Buildroot] Bash failing
hinko.kocevar at cetrtapot.si
Wed Jul 30 07:30:35 UTC 2008
Hamish Moffatt wrote:
> On Tue, Jul 29, 2008 at 10:20:18PM +0100, Jonathan and Caroline Moore wrote:
>> Still no joy and it is all rather frustrating. Aren't these things
>> meant to "work out of the box"? Are you able to send me the .config
>> you have managed to get working and tell me the buildroot snapshot you
>> used please?
Config is attached.
Buildroot snapshot is r22940.
>> cannot find -lcurses
> $(BASH_DIR)/$(BASH_BINARY): $(BASH_DIR)/.configured
> - $(MAKE1) CC=$(TARGET_CC) CC_FOR_BUILD="$(HOSTCC)" -C $(BASH_DIR)
> + $(MAKE1) CC=$(TARGET_CC) CC_FOR_BUILD="$(HOSTCC)" CFLAGS="-I$(STAGING_DIR)/usr/include" -C $(BASH_DIR)
> You probably also need an LDFLAGS="-L$(STAGING_DIR)/usr/lib" then.
Yes, apparently the LDFLAGS need to be fixed too.
> As to working "out of the box", you'd probably have more luck if you
> used the compiler that came out of the same box!
I agree with Hamish on this one.
As you can see buildroot can make its own toolchain and the possibility
to use external toolchain is not that much in use - meaning there are still
packages that might fail when compiled with external toolchain as we must
take into account compiler provided headers and libs.
It is almost impossible to make all toolchain/package/architecture combinations
work out of the box. Some combinations work without a glitch (wide usage),
while others need minor fixes, as in your case, to make things going on :)
>> make: *** [info-recursive] Error 1
> That's weird since no error was printed before that. Can you debug it?
He probably ran the make twice.. Remove the binutils-* folders in toolchain
build_dir and rerun make.
ČETRTA POT, d.o.o., Kranj
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the buildroot