2009-04-08 05:43:51

by Prabhu Chawandi

[permalink] [raw]
Subject: Building uClinux -- Problem....

Hi All,

I am building the linux version 2.6.12-4.0 for my customized STB...

I am copying the Uclinux from the fresh checked out sand box... and
building...

I am getting build error as .. If I Just make mv and build I wont get
any problem .... Can anybosy help to relolve ...

make -f Makefile

make[3]: Entering directory
`/export/home/chawanp1/B343/release/Thirdparty/siliconvendor/broadcom/os/linux/rootfs/uclinux-2.6.12-4.0/user/bash'

cd . && autoconf

cat: _distribution: No such file or directory

cat: _patchlevel: No such file or directory

configure.in:272: warning: AC_CANONICAL_HOST invoked multiple times

autoconf/specific.m4:363: AC_CYGWIN is expanded from...

configure.in:272: the top level

configure.in:273: warning: AC_CANONICAL_HOST invoked multiple times

autoconf/specific.m4:393: AC_MINGW32 is expanded from...

configure.in:273: the top level

/bin/sh ./config.status --recheck

running /bin/sh ./configure --target=mipsel-linux
--host=i386-pc-linux-gnu --build=i386-pc-linux-gnu
--prefix=/export/home/chawanp1/B343/release/Thirdparty/siliconvendor/broadcom/os/linux/rootfs/uclinux-2.6.12-4.0/romfs/
--includedir=/export/home/chawanp1/B343/release/Thirdparty/siliconvendor/broadcom/os/linux/rootfs/uclinux-2.6.12-4.0/user/bash/uClibc/include/
--libdir=/export/home/chawanp1/B343/release/Thirdparty/siliconvendor/broadcom/os/linux/rootfs/uclinux-2.6.12-4.0/romfs/lib/
--srcdir=. --cache-file=cross-build/config.cache.brcmstb.mipsel
--no-create --no-recursion

configure: loading cache cross-build/config.cache.brcmstb.mipsel

checking build system type... (cached) i386-pc-linux-gnu

checking host system type... (cached) i386-pc-linux-gnu

Beginning configuration for bash-BASHPATCH= for i386-pc-linux-gnu

checking for i386-pc-linux-gnu-gcc... (cached) mipsel-linux-gcc

checking for C compiler default output file name... a.out

checking whether the C compiler works... configure: error: cannot run
C compiled programs.

If you meant to cross compile, use `--host'.

See `config.log' for more details.

make[3]: *** [config.status] Error 1

make[3]: Leaving directory
`/export/home/chawanp1/B343/release/Thirdparty/siliconvendor/broadcom/os/linux/rootfs/uclinux-2.6.12-4.0/user/bash'

make[2]: *** [all] Error 2

make[2]: Leaving directory
`/export/home/chawanp1/B343/release/Thirdparty/siliconvendor/broadcom/os/linux/rootfs/uclinux-2.6.12-4.0/user/bash'

make[1]: *** [all] Error 2

make[1]: Leaving directory
`/export/home/chawanp1/B343/release/Thirdparty/siliconvendor/broadcom/os/linux/rootfs/uclinux-2.6.12-4.0/user'

make: *** [subdirs] Error 1

make: Leaving directory
`/export/home/chawanp1/B343/release/Thirdparty/siliconvendor/broadcom/os/linux/rootfs/uclinux-2.6.12-4.0'

make: *** [/export/home/chawanp1/B343/release/Thirdparty/siliconvendor/broadcom/os/linux/rootfs/uclinux-2.6.12-4.0/images/7401c0/vmlinuz]
Error 2


Thanks In advance
Prabhu


2009-04-08 08:05:39

by Jeffrey Cao

[permalink] [raw]
Subject: Re: Building uClinux -- Problem....

On 2009-04-08, Prabhu Chawandi <[email protected]> wrote:
make[3]: Entering directory
> `/export/home/chawanp1/B343/release/Thirdparty/siliconvendor/broadcom/os/linux/rootfs/uclinux-2.6.12-4.0/user/bash'
>
> cd . && autoconf
>
> cat: _distribution: No such file or directory
>
> cat: _patchlevel: No such file or directory
>

You need do some configuration before you "Make". Read the manual first.