* [Buildroot] Bash failing
@ 2008-07-26 7:46 Jonathan and Caroline Moore
2008-07-28 8:42 ` Hinko Kocevar
0 siblings, 1 reply; 11+ messages in thread
From: Jonathan and Caroline Moore @ 2008-07-26 7:46 UTC (permalink / raw)
To: buildroot
Anyone able to help me out with these bash complaints please.
Jonathan (buildroot 20080725)
In file included from display.c:49:
tcap.h:35:23: error: termcap.h: No such file or directory
display.c: In function 'rl_character_len':
display.c:1961: warning: comparison is always true due to limited
range of data type
display.c: In function 'insert_some_chars':
display.c:2225: warning: assignment makes pointer from integer without a cast
display.c: In function 'delete_chars':
display.c:2268: warning: assignment makes pointer from integer without a cast
make[2]: *** [display.o] Error 1
make[2]: Leaving directory
`/home/jm/git/Arm.2410/buildroot-20080725/build_arm/bash-3.2/lib/readline'
make[1]: *** [lib/readline/libreadline.a] Error 1
make[1]: Leaving directory
`/home/jm/git/Arm.2410/buildroot-20080725/build_arm/bash-3.2'
make: *** [/home/jm/git/Arm.2410/buildroot-20080725/build_arm/bash-3.2/bash]
Error 2
--
Jonathan (and Caroline)
Jonathan and Caroline Moore
JandCMoore at gmail.com (Jonathan)
CandJMoore at gmail.com (Caroline)
http://jandcmoore.googlepages.com/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] Bash failing
2008-07-26 7:46 [Buildroot] Bash failing Jonathan and Caroline Moore
@ 2008-07-28 8:42 ` Hinko Kocevar
2008-07-28 11:13 ` Jonathan and Caroline Moore
0 siblings, 1 reply; 11+ messages in thread
From: Hinko Kocevar @ 2008-07-28 8:42 UTC (permalink / raw)
To: buildroot
Jonathan and Caroline Moore wrote:
> Anyone able to help me out with these bash complaints please.
>
> Jonathan (buildroot 20080725)
>
> In file included from display.c:49:
> tcap.h:35:23: error: termcap.h: No such file or directory
This would suggest that termcap lib was a) not built prior to bash or b) the termcap.h is not present in staging folders.
HTH,
Hinko
--
?ETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] Bash failing
2008-07-28 8:42 ` Hinko Kocevar
@ 2008-07-28 11:13 ` Jonathan and Caroline Moore
2008-07-28 12:50 ` Hinko Kocevar
0 siblings, 1 reply; 11+ messages in thread
From: Jonathan and Caroline Moore @ 2008-07-28 11:13 UTC (permalink / raw)
To: buildroot
OK I guess I need some more help.
I thought buildroot took care of these details or am I meant to do
something before typing make?
Would it help if I attached some of the files?
Jonathan
2008/7/28 Hinko Kocevar <hinko.kocevar@cetrtapot.si>:
> Jonathan and Caroline Moore wrote:
>> Anyone able to help me out with these bash complaints please.
>>
>> Jonathan (buildroot 20080725)
>>
>> In file included from display.c:49:
>> tcap.h:35:23: error: termcap.h: No such file or directory
>
> This would suggest that termcap lib was a) not built prior to bash or b) the termcap.h is not present in staging folders.
>
> HTH,
> Hinko
>
> --
> ?ETRTA POT, d.o.o., Kranj
> Planina 3
> 4000 Kranj
> Slovenia, Europe
> Tel. +386 (0) 4 280 66 03
> E-mail: hinko.kocevar at cetrtapot.si
> Http: www.cetrtapot.si
>
>
--
Jonathan (and Caroline)
Jonathan and Caroline Moore
JandCMoore at gmail.com (Jonathan)
CandJMoore at gmail.com (Caroline)
http://jandcmoore.googlepages.com/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] Bash failing
2008-07-28 11:13 ` Jonathan and Caroline Moore
@ 2008-07-28 12:50 ` Hinko Kocevar
2008-07-28 15:33 ` Jonathan and Caroline Moore
0 siblings, 1 reply; 11+ messages in thread
From: Hinko Kocevar @ 2008-07-28 12:50 UTC (permalink / raw)
To: buildroot
Jonathan and Caroline Moore wrote:
> OK I guess I need some more help.
>
> I thought buildroot took care of these details or am I meant to do
> something before typing make?
It should. ncurses package is responsible for termcap.h. I've just built
the bash for i686 here, and haven't stumbled across your problem.
>
> Would it help if I attached some of the files?
Show us the output of:
/buildroot $ find build_<arch> -name termcap.h
Here, for i686 it is:
/buildroot $ find build_i686 -name termcap.h
build_i686/ncurses-5.6/include/termcap.h
build_i686/bash-3.2/lib/termcap/termcap.h
build_i686/staging_dir/usr/include/termcap.h
.. adn for generic arm:
/buildroot $ find build_arm -name termcap.h
build_arm/ncurses-5.6/include/termcap.h
build_arm/bash-3.2/lib/termcap/termcap.h
build_arm/staging_dir/usr/include/termcap.h
The last line one is the one I suppose you are missing although I can't see why!?
Regards,
Hinko
--
?ETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] Bash failing
2008-07-28 12:50 ` Hinko Kocevar
@ 2008-07-28 15:33 ` Jonathan and Caroline Moore
2008-07-29 7:34 ` Hinko Kocevar
0 siblings, 1 reply; 11+ messages in thread
From: Jonathan and Caroline Moore @ 2008-07-28 15:33 UTC (permalink / raw)
To: buildroot
Below are the last few lines of output after make and the results of
the find command.
The entire log generated by the command
make >log 2>&1 can be downloaded here
http://jandcmoore.googlepages.com/buildroot20080727.make.log.txt
Hinko can you send me your buildroot config file please? Mine is here
http://jandcmoore.googlepages.com/config
Many many thanks
Jonathan
/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc
-c -DHAVE_CONFIG_H -DSHELL -I.
-I/home/jm/git/Arm.2410/buildroot-20080727/build_arm/bash-3.2 -I../..
-I../../lib -g -O2 display.c
In file included from display.c:49:
tcap.h:35:23: error: termcap.h: No such file or directory
display.c: In function 'rl_character_len':
display.c:1961: warning: comparison is always true due to limited
range of data type
display.c: In function 'insert_some_chars':
display.c:2225: warning: assignment makes pointer from integer without a cast
display.c: In function 'delete_chars':
display.c:2268: warning: assignment makes pointer from integer without a cast
make[2]: *** [display.o] Error 1
make[2]: Leaving directory
`/home/jm/git/Arm.2410/buildroot-20080727/build_arm/bash-3.2/lib/readline'
make[1]: *** [lib/readline/libreadline.a] Error 1
make[1]: Leaving directory
`/home/jm/git/Arm.2410/buildroot-20080727/build_arm/bash-3.2'
make: *** [/home/jm/git/Arm.2410/buildroot-20080727/build_arm/bash-3.2/bash]
Error 2
WS867:Mon 28:1614:buildroot-20080727:$ !find
find build_arm -name termcap.h
build_arm/ncurses-5.6/include/termcap.h
build_arm/staging_dir/usr/include/termcap.h
build_arm/bash-3.2/lib/termcap/termcap.h
2008/7/28 Hinko Kocevar <hinko.kocevar@cetrtapot.si>:
> Jonathan and Caroline Moore wrote:
>> OK I guess I need some more help.
>>
>> I thought buildroot took care of these details or am I meant to do
>> something before typing make?
>
> It should. ncurses package is responsible for termcap.h. I've just built
> the bash for i686 here, and haven't stumbled across your problem.
>
>>
>> Would it help if I attached some of the files?
>
> Show us the output of:
> /buildroot $ find build_<arch> -name termcap.h
>
> Here, for i686 it is:
> /buildroot $ find build_i686 -name termcap.h
> build_i686/ncurses-5.6/include/termcap.h
> build_i686/bash-3.2/lib/termcap/termcap.h
> build_i686/staging_dir/usr/include/termcap.h
>
> .. adn for generic arm:
> /buildroot $ find build_arm -name termcap.h
> build_arm/ncurses-5.6/include/termcap.h
> build_arm/bash-3.2/lib/termcap/termcap.h
> build_arm/staging_dir/usr/include/termcap.h
>
> The last line one is the one I suppose you are missing although I can't see why!?
>
> Regards,
> Hinko
>
> --
> ?ETRTA POT, d.o.o., Kranj
> Planina 3
> 4000 Kranj
> Slovenia, Europe
> Tel. +386 (0) 4 280 66 03
> E-mail: hinko.kocevar at cetrtapot.si
> Http: www.cetrtapot.si
>
>
--
Jonathan (and Caroline)
Jonathan and Caroline Moore
JandCMoore at gmail.com (Jonathan)
CandJMoore at gmail.com (Caroline)
http://jandcmoore.googlepages.com/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] Bash failing
2008-07-28 15:33 ` Jonathan and Caroline Moore
@ 2008-07-29 7:34 ` Hinko Kocevar
2008-07-29 11:49 ` Jonathan and Caroline Moore
0 siblings, 1 reply; 11+ messages in thread
From: Hinko Kocevar @ 2008-07-29 7:34 UTC (permalink / raw)
To: buildroot
Jonathan and Caroline Moore wrote:
> Below are the last few lines of output after make and the results of
> the find command.
>
> The entire log generated by the command
> make >log 2>&1 can be downloaded here
> http://jandcmoore.googlepages.com/buildroot20080727.make.log.txt
I see you are using external (precompiled) toolchain, right? I don't know
if that might be the case for missing header locations...
The compilation lines that fail are the same in my and your case,
but you are using libc based instead of uclibc based compiler and
I suspect that my compiler looks for headers in STAGING_DIR/usr/include
without the -I switch added.
Can we see the output of failed compile with '-v' option added?
Here is mine:
$ cd /tmp//buildroot/build_arm/bash-3.2/lib/readline
/tmp/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc -c -DHAVE_CONFIG_H -DSHELL -I. -I/tmp/buildroot/build_arm/bash-3.2 -I../.. -I../../lib -g -O2 display.c -v
Using built-in specs.
Target: arm-linux-uclibc
Configured with: /tmp/buildroot/toolchain_build_arm/gcc-4.2.4/configure --prefix=/usr --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=arm-linux-uclibc --enable-languages=c --with-sysroot=/tmp/buildroot/build_arm/staging_dir --with-build-time-tools=/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibc/bin --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --enable-shared --with-gmp=/tmp/buildroot/toolchain_build_arm/gmp --with-mpfr=/tmp/buildroot/toolchain_build_arm/mpfr --disable-nls --enable-threads --disable-multilib
Thread model: posix
gcc version 4.2.4
/tmp/buildroot/build_arm/staging_dir/usr/bin/../libexec/gcc/arm-linux-uclibc/4.2.4/cc1 -quiet -v -I. -I/tmp/buildroot/build_arm/bash-3.2 -I../.. -I../../lib -iprefix /tmp/buildroot/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclibc/4.2.4/ -DHAVE_CONFIG_H -DSHELL display.c -quiet -dumpbase display.c -auxbase display -g -O2 -version -o /tmp/ccQNsOEA.s
ignoring nonexistent directory "/tmp/buildroot/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclibc/4.2.4/../../../../arm-linux-uclibc/include"
ignoring nonexistent directory "/tmp/buildroot/build_arm/staging_dir/usr/local/include"
ignoring nonexistent directory "/usr/lib/gcc/arm-linux-uclibc/4.2.4/include"
ignoring nonexistent directory "/usr/lib/gcc/../../arm-linux-uclibc/include"
ignoring duplicate directory "../.."
#include "..." search starts here:
#include <...> search starts here:
.
/tmp/buildroot/build_arm/bash-3.2
../../lib
/tmp/buildroot/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclibc/4.2.4/include
/tmp/buildroot/build_arm/staging_dir/usr/include
End of search list.
GNU C version 4.2.4 (arm-linux-uclibc)
compiled by GNU C version 4.1.2 (Gentoo 4.1.2 p1.1).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: f2f3758be9e267946c957c7de1fa7038
display.c: In function 'rl_character_len':
display.c:1961: warning: comparison is always true due to limited range of data type
/tmp/buildroot/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclibc/4.2.4/../../../../arm-linux-uclibc/bin/as -o display.o /tmp/ccQNsOEA.s
It can be seen that my compiler looks in '/tmp/buildroot/build_arm/staging_dir/usr/include' for headers,
where termcap.h is located - does compiler search there too?
>
> Hinko can you send me your buildroot config file please? Mine is here
> http://jandcmoore.googlepages.com/config
>
Here you go:
http://hinkocevar.googlepages.com/config
>
> WS867:Mon 28:1614:buildroot-20080727:$ !find
> find build_arm -name termcap.h
> build_arm/ncurses-5.6/include/termcap.h
> build_arm/staging_dir/usr/include/termcap.h
> build_arm/bash-3.2/lib/termcap/termcap.h
>
Fine, the header seems to be in place. But does the compiler know where to look?
Regards,
Hinko
--
?ETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] Bash failing
2008-07-29 7:34 ` Hinko Kocevar
@ 2008-07-29 11:49 ` Jonathan and Caroline Moore
2008-07-29 12:14 ` Hinko Kocevar
0 siblings, 1 reply; 11+ messages in thread
From: Jonathan and Caroline Moore @ 2008-07-29 11:49 UTC (permalink / raw)
To: buildroot
Here is my output - it seems it is not looking in the right places.
Is there a way to correct this or do I need to try and get buildroot
to make a cross-compiler too?
Jonathan
WS867:Tue 29:1247:readline:$
/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc
-c -DHAVE_CONFIG_H -DSHELL -I.
-I/home/jm/git/Arm.2410/buildroot/build_arm/bash-3.2 -I../..
-I../../lib -g -O2 display.c -v
Using built-in specs.
Target: arm-unknown-linux-gnu
Configured with:
/home/jm/git/Arm.2410/crosstool-0.43/build/arm-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.2/gcc-4.1.0/configure
--target=arm-unknown-linux-gnu --host=i686-host_pc-linux-gnu
--prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu
--with-headers=/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/include
--with-local-prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu
--disable-nls --enable-threads=posix --enable-symvers=gnu
--enable-__cxa_atexit --enable-languages=c,c++ --enable-shared
--enable-c99 --enable-long-long
Thread model: posix
gcc version 4.1.0
/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/libexec/gcc/arm-unknown-linux-gnu/4.1.0/cc1
-quiet -v -I. -I/home/jm/git/Arm.2410/buildroot/build_arm/bash-3.2
-I../.. -I../../lib -DHAVE_CONFIG_H -DSHELL display.c -quiet -dumpbase
display.c -auxbase display -g -O2 -version -o /tmp/cc3Kujrf.s
ignoring duplicate directory "../.."
#include "..." search starts here:
#include <...> search starts here:
.
/home/jm/git/Arm.2410/buildroot/build_arm/bash-3.2
../../lib
/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/4.1.0/include
/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/4.1.0/../../../../arm-unknown-linux-gnu/sys-include
/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/4.1.0/../../../../arm-unknown-linux-gnu/include
End of search list.
GNU C version 4.1.0 (arm-unknown-linux-gnu)
compiled by GNU C version 4.2.3 (Ubuntu 4.2.3-2ubuntu7).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: f541a105d9f555c3712f5ad35c2f6a2a
In file included from display.c:49:
tcap.h:35:23: error: termcap.h: No such file or directory
display.c: In function 'rl_character_len':
display.c:1961: warning: comparison is always true due to limited
range of data type
display.c: In function 'insert_some_chars':
display.c:2225: warning: assignment makes pointer from integer without a cast
display.c: In function 'delete_chars':
display.c:2268: warning: assignment makes pointer from integer without a cast
2008/7/29 Hinko Kocevar <hinko.kocevar@cetrtapot.si>:
> Jonathan and Caroline Moore wrote:
>> Below are the last few lines of output after make and the results of
>> the find command.
>>
>> The entire log generated by the command
>> make >log 2>&1 can be downloaded here
>> http://jandcmoore.googlepages.com/buildroot20080727.make.log.txt
>
> I see you are using external (precompiled) toolchain, right? I don't know
> if that might be the case for missing header locations...
>
> The compilation lines that fail are the same in my and your case,
> but you are using libc based instead of uclibc based compiler and
> I suspect that my compiler looks for headers in STAGING_DIR/usr/include
> without the -I switch added.
>
> Can we see the output of failed compile with '-v' option added?
>
> Here is mine:
> $ cd /tmp//buildroot/build_arm/bash-3.2/lib/readline
> /tmp/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc -c -DHAVE_CONFIG_H -DSHELL -I. -I/tmp/buildroot/build_arm/bash-3.2 -I../.. -I../../lib -g -O2 display.c -v
> Using built-in specs.
> Target: arm-linux-uclibc
> Configured with: /tmp/buildroot/toolchain_build_arm/gcc-4.2.4/configure --prefix=/usr --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=arm-linux-uclibc --enable-languages=c --with-sysroot=/tmp/buildroot/build_arm/staging_dir --with-build-time-tools=/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibc/bin --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --enable-shared --with-gmp=/tmp/buildroot/toolchain_build_arm/gmp --with-mpfr=/tmp/buildroot/toolchain_build_arm/mpfr --disable-nls --enable-threads --disable-multilib
> Thread model: posix
> gcc version 4.2.4
> /tmp/buildroot/build_arm/staging_dir/usr/bin/../libexec/gcc/arm-linux-uclibc/4.2.4/cc1 -quiet -v -I. -I/tmp/buildroot/build_arm/bash-3.2 -I../.. -I../../lib -iprefix /tmp/buildroot/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclibc/4.2.4/ -DHAVE_CONFIG_H -DSHELL display.c -quiet -dumpbase display.c -auxbase display -g -O2 -version -o /tmp/ccQNsOEA.s
> ignoring nonexistent directory "/tmp/buildroot/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclibc/4.2.4/../../../../arm-linux-uclibc/include"
> ignoring nonexistent directory "/tmp/buildroot/build_arm/staging_dir/usr/local/include"
> ignoring nonexistent directory "/usr/lib/gcc/arm-linux-uclibc/4.2.4/include"
> ignoring nonexistent directory "/usr/lib/gcc/../../arm-linux-uclibc/include"
> ignoring duplicate directory "../.."
> #include "..." search starts here:
> #include <...> search starts here:
> .
> /tmp/buildroot/build_arm/bash-3.2
> ../../lib
> /tmp/buildroot/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclibc/4.2.4/include
> /tmp/buildroot/build_arm/staging_dir/usr/include
> End of search list.
> GNU C version 4.2.4 (arm-linux-uclibc)
> compiled by GNU C version 4.1.2 (Gentoo 4.1.2 p1.1).
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> Compiler executable checksum: f2f3758be9e267946c957c7de1fa7038
> display.c: In function 'rl_character_len':
> display.c:1961: warning: comparison is always true due to limited range of data type
> /tmp/buildroot/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclibc/4.2.4/../../../../arm-linux-uclibc/bin/as -o display.o /tmp/ccQNsOEA.s
>
> It can be seen that my compiler looks in '/tmp/buildroot/build_arm/staging_dir/usr/include' for headers,
> where termcap.h is located - does compiler search there too?
>
>>
>> Hinko can you send me your buildroot config file please? Mine is here
>> http://jandcmoore.googlepages.com/config
>>
>
> Here you go:
> http://hinkocevar.googlepages.com/config
>
>
>>
>> WS867:Mon 28:1614:buildroot-20080727:$ !find
>> find build_arm -name termcap.h
>> build_arm/ncurses-5.6/include/termcap.h
>> build_arm/staging_dir/usr/include/termcap.h
>> build_arm/bash-3.2/lib/termcap/termcap.h
>>
>
> Fine, the header seems to be in place. But does the compiler know where to look?
>
> Regards,
> Hinko
>
> --
> ?ETRTA POT, d.o.o., Kranj
> Planina 3
> 4000 Kranj
> Slovenia, Europe
> Tel. +386 (0) 4 280 66 03
> E-mail: hinko.kocevar at cetrtapot.si
> Http: www.cetrtapot.si
>
>
--
Jonathan (and Caroline)
Jonathan and Caroline Moore
JandCMoore at gmail.com (Jonathan)
CandJMoore at gmail.com (Caroline)
http://jandcmoore.googlepages.com/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] Bash failing
2008-07-29 11:49 ` Jonathan and Caroline Moore
@ 2008-07-29 12:14 ` Hinko Kocevar
2008-07-29 21:20 ` Jonathan and Caroline Moore
0 siblings, 1 reply; 11+ messages in thread
From: Hinko Kocevar @ 2008-07-29 12:14 UTC (permalink / raw)
To: buildroot
Jonathan and Caroline Moore wrote:
> Here is my output - it seems it is not looking in the right places.
Just as I though so.
>
> Is there a way to correct this or do I need to try and get buildroot
> to make a cross-compiler too?
Try attached patch.
HTH,
Hinko
--
?ETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bash.diff
Type: text/x-patch
Size: 479 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20080729/6ea3590e/attachment.bin
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] Bash failing
2008-07-29 12:14 ` Hinko Kocevar
@ 2008-07-29 21:20 ` Jonathan and Caroline Moore
2008-07-30 1:23 ` Hamish Moffatt
0 siblings, 1 reply; 11+ messages in thread
From: Jonathan and Caroline Moore @ 2008-07-29 21:20 UTC (permalink / raw)
To: buildroot
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?
The patch generates this error:
make[2]: Leaving directory
`/home/jm/git/Arm.2410/buildroot/build_arm/bash-3.2/lib/tilde'
rm -f bash
/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc
-L./builtins -L./lib/readline -L./lib/readline -L./lib/glob
-L./lib/tilde -L./lib/sh -rdynamic
-I/home/jm/git/Arm.2410/buildroot/build_arm/staging_dir/usr/include -o
bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o
dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o
flags.o nojobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o
input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o
arrayfunc.o braces.o bracecomp.o bashhist.o bashline.o list.o
stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o
xmalloc.o signames.o -lbuiltins -lsh -lreadline -lhistory -lcurses
-lglob -ltilde -ldl
/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/4.1.0/../../../../arm-unknown-linux-gnu/bin/ld:
cannot find -lcurses
collect2: ld returned 1 exit status
make[1]: *** [bash] Error 1
make[1]: Leaving directory `/home/jm/git/Arm.2410/buildroot/build_arm/bash-3.2'
make: *** [/home/jm/git/Arm.2410/buildroot/build_arm/bash-3.2/bash] Error 2
and trying to build a buildroot toolchain causes this error
config.status: creating po/Makefile.in
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing bfd_stdint.h commands
config.status: executing default commands
make[4]: Leaving directory
`/home/jm/git/Arm.2410/buildroot/toolchain_build_arm/binutils-2.18-build/bfd/po'
make[4]: Entering directory
`/home/jm/git/Arm.2410/buildroot/toolchain_build_arm/binutils-2.18-build/bfd/po'
make[4]: Nothing to be done for `info'.
make[4]: Leaving directory
`/home/jm/git/Arm.2410/buildroot/toolchain_build_arm/binutils-2.18-build/bfd/po'
make[4]: Entering directory
`/home/jm/git/Arm.2410/buildroot/toolchain_build_arm/binutils-2.18-build/bfd'
make[4]: Nothing to be done for `info-am'.
make[4]: Leaving directory
`/home/jm/git/Arm.2410/buildroot/toolchain_build_arm/binutils-2.18-build/bfd'
make[3]: *** [info-recursive] Error 1
make[3]: Leaving directory
`/home/jm/git/Arm.2410/buildroot/toolchain_build_arm/binutils-2.18-build/bfd'
make[2]: *** [all-bfd] Error 2
make[2]: Leaving directory
`/home/jm/git/Arm.2410/buildroot/toolchain_build_arm/binutils-2.18-build'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/jm/git/Arm.2410/buildroot/toolchain_build_arm/binutils-2.18-build'
make: *** [/home/jm/git/Arm.2410/buildroot/toolchain_build_arm/binutils-2.18-build/binutils/objdump]
Error 2
Jonathan
2008/7/29 Hinko Kocevar <hinko.kocevar@cetrtapot.si>:
> Jonathan and Caroline Moore wrote:
>> Here is my output - it seems it is not looking in the right places.
>
> Just as I though so.
>
>>
>> Is there a way to correct this or do I need to try and get buildroot
>> to make a cross-compiler too?
>
> Try attached patch.
>
> HTH,
> Hinko
>
> --
> ?ETRTA POT, d.o.o., Kranj
> Planina 3
> 4000 Kranj
> Slovenia, Europe
> Tel. +386 (0) 4 280 66 03
> E-mail: hinko.kocevar at cetrtapot.si
> Http: www.cetrtapot.si
>
>
--
Jonathan (and Caroline)
Jonathan and Caroline Moore
JandCMoore at gmail.com (Jonathan)
CandJMoore at gmail.com (Caroline)
http://jandcmoore.googlepages.com/
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] Bash failing
2008-07-29 21:20 ` Jonathan and Caroline Moore
@ 2008-07-30 1:23 ` Hamish Moffatt
2008-07-30 7:30 ` Hinko Kocevar
0 siblings, 1 reply; 11+ messages in thread
From: Hamish Moffatt @ 2008-07-30 1:23 UTC (permalink / raw)
To: buildroot
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?
> /opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/4.1.0/../../../../arm-unknown-linux-gnu/bin/ld:
> 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.
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!
> make[3]: *** [info-recursive] Error 1
That's weird since no error was printed before that. Can you debug it?
> make[3]: Leaving directory
> `/home/jm/git/Arm.2410/buildroot/toolchain_build_arm/binutils-2.18-build/bfd'
Does this path imply you are using the unofficial buildroot Git
repository? Can you try the official svn?
Hamish
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] Bash failing
2008-07-30 1:23 ` Hamish Moffatt
@ 2008-07-30 7:30 ` Hinko Kocevar
0 siblings, 0 replies; 11+ messages in thread
From: Hinko Kocevar @ 2008-07-30 7:30 UTC (permalink / raw)
To: buildroot
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.
>
>> /opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/4.1.0/../../../../arm-unknown-linux-gnu/bin/ld:
>> 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[3]: *** [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.
Regards,
Hinko
--
?ETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: buildroot.config
Url: http://busybox.net/lists/buildroot/attachments/20080730/501d5a2c/attachment.txt
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-07-30 7:30 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-26 7:46 [Buildroot] Bash failing Jonathan and Caroline Moore
2008-07-28 8:42 ` Hinko Kocevar
2008-07-28 11:13 ` Jonathan and Caroline Moore
2008-07-28 12:50 ` Hinko Kocevar
2008-07-28 15:33 ` Jonathan and Caroline Moore
2008-07-29 7:34 ` Hinko Kocevar
2008-07-29 11:49 ` Jonathan and Caroline Moore
2008-07-29 12:14 ` Hinko Kocevar
2008-07-29 21:20 ` Jonathan and Caroline Moore
2008-07-30 1:23 ` Hamish Moffatt
2008-07-30 7:30 ` Hinko Kocevar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox