OpenWrt Forum Archive

Topic: Compilation error

The content of this topic has been archived on 4 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, everyone, I am totally new to openWRT. I was trying to generate an installable OpenWrt firmware image file following the instruction in the following websites
1) http://wiki.openwrt.org/about/toolchain
2) http://wiki.openwrt.org/doc/howto/buildroot.exigence
3) http://wiki.openwrt.org/doc/howto/build

Everything went smooth until i key in the "make" command to build the image. However, the process failed with the following error.

Now, what should i do to fix this?

Thanks for all the valuable comment in advace !

================================================================================================================
make[4]: Leaving directory `/home/yoshiki/openwrt/openwrt/build_dir/toolchain-powerpc_gcc-4.6-linaro_uClibc-0.9.33.2/linux-2.6.26.8'
mkdir -p /home/yoshiki/openwrt/openwrt/build_dir/toolchain-powerpc_gcc-4.6-linaro_uClibc-0.9.33.2/linux-dev
make -C /home/yoshiki/openwrt/openwrt/build_dir/toolchain-powerpc_gcc-4.6-linaro_uClibc-0.9.33.2/linux-2.6.26.8 HOSTCFLAGS="-O2 -I/home/yoshiki/openwrt/openwrt/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" ARCH=ppc CC="powerpc-openwrt-linux-uclibc-gcc" CFLAGS="-Os -pipe -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" CROSS_COMPILE=powerpc-openwrt-linux-uclibc- KBUILD_HAVE_NLS=no CONFIG_SHELL=/bin/bash INSTALL_HDR_PATH="/home/yoshiki/openwrt/openwrt/build_dir/toolchain-powerpc_gcc-4.6-linaro_uClibc-0.9.33.2/linux-dev/" headers_install
make[4]: Entering directory `/home/yoshiki/openwrt/openwrt/build_dir/toolchain-powerpc_gcc-4.6-linaro_uClibc-0.9.33.2/linux-2.6.26.8'
  CHK     include/linux/version.h
*** Error: Headers not exportable for this architecture (ppc)
make[4]: *** [headers_install] Error 1
make[4]: Leaving directory `/home/yoshiki/openwrt/openwrt/build_dir/toolchain-powerpc_gcc-4.6-linaro_uClibc-0.9.33.2/linux-2.6.26.8'
make[3]: *** [/home/yoshiki/openwrt/openwrt/build_dir/toolchain-powerpc_gcc-4.6-linaro_uClibc-0.9.33.2/linux-2.6.26.8/.configured] Error 2
make[3]: Leaving directory `/home/yoshiki/openwrt/openwrt/toolchain/kernel-headers'
make[2]: *** [toolchain/kernel-headers/compile] Error 2
make[2]: Leaving directory `/home/yoshiki/openwrt/openwrt'
make[1]: *** [/home/yoshiki/openwrt/openwrt/staging_dir/toolchain-powerpc_gcc-4.6-linaro_uClibc-0.9.33.2/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/home/yoshiki/openwrt/openwrt'
make: *** [world] Error 2
================================================================================================================

down load the OpenWrt Attidude 12.09,

you seem to use the old version of openwrt.

The discussion might have continued from here.