[Buildroot] Bash failing

Jonathan and Caroline Moore jandcmoore at gmail.com
Tue Jul 29 11:49:22 UTC 2008


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 at 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/


More information about the buildroot mailing list