I'm trying to compile a firmware for a Broadcomm chipset on my ubuntu linux. But I'm getting an error about libc.so file. I tried to find a previous topic about the issue. I found some topics but I couldn't figure out what to do. Here is the error i received..

---

CONFIG_CROSS_PREFIX="mips-linux-" \
CROSS_COMPILE="mips-linux-"\
CONFIG_DRIVER_AIR_ENV_UBOOT=y \
CONFIG_DRIVER_AIR_ENV_BCMNVRAM= \
CONFIG_BOARD_ARCH="mips" \
CONFIG_DRIVERS_UBOOT_ENV_OFFSET_ADDRESS=0x0 \
CONFIG_DRIVERS_UBOOT_ENV_SIZE=0x1000 \
CONFIG_PRODUCT_BOARD_TYPE="Air6373" \
CONFIG_BOARD_NAME="bcm96328" \
CONFIG_DRIVER_AIR_ENV_REDBOOT= \
CONFIG_DRIVERS_REDBOOT_ENV_OFFSET_ADDRESS= \
CONFIG_DRIVERS_REDBOOT_ENV_SIZE= \
KDIR=/home/alperen/MasaŘstŘ/Dokuman/deneme/6373/Air6373TT/kernel/linux-2.6.30-bcm63283 \
UBOOT_DOUBLE_CONFIG=y \
UBOOT_DOUBLE_COUNT=2 \
UBOOT_DOUBLE_SIZE=0x80000 \
TOPDIR=/home/alperen/MasaŘstŘ/Dokuman/deneme/6373/Air6373TT/kernel/linux-2.6.30-bcm63283 \
ENV_TEST_NO_PASSWD= \
CONFIG_DRIVER_USE_KERNEL_MAJOR= \
CONFIG_MTD_PARTITION_NAME="UBootConfig" \
make -C air_env-1.1-multi-config
ARCH=mips CROSS_COMPILE=mips-linux- make -C /home/alperen/MasaŘstŘ/Dokuman/deneme/6373/Air6373TT/kernel/linux-2.6.30-bcm63283 SUBDIRS=/home/alperen/MasaŘstŘ/Dokuman/deneme/6373/Air6373TT/air_env/air_env-1.1-multi-config/src modules
Building modules, stage 2.
MODPOST 1 modules
make -C test
mips-linux-gcc -o env_test env_test.o
/home/alperen/MasaŘstŘ/Dokuman/deneme/6373/Air6373TT/toolchain/uClibc-0.9.29/_install/lib/libc.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[4]: *** [env_test] Error 1
make[3]: *** [test] Error 2
make[2]: *** [air_env_build] Error 2
make[1]: *** [build] Error 2
make: *** [air_env_build] Error 2
------------------------------------------------


I'm sure, that i'm using the correct toolchain, and the gcc on my machine is working fine also. I compiled many files for my computer. But this is the first time I'm compiling for a mips chipset..


Thank you..