Incorrect selection of kernel headers: expected 4.1.x, got 3.14.x


(heeyeol) #1

Hi.

I was getting the following error while working on

Please help me…

compiler : gcc-6.3.0 and g+±7


root@ubuntu:/risc-v/DIR/freedom-u-sdk/# make


make[2]: Entering directory ‘/risc-v/DIR/freedom-u-sdk/buildroot’
GEN /risc-v/DIR/freedom-u-sdk/work/buildroot/Makefile
BR2_DEFCONFIG=’’ KCONFIG_AUTOCONFIG=/risc-v/DIR/freedom-u-sdk/work/buildroot/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/risc-v/DIR/freedom-u-sdk/work/buildroot/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/risc-v/DIR/freedom-u-sdk/work/buildroot/build/buildroot-config/tristate.config BR2_CONFIG=/risc-v/DIR/freedom-u-sdk/work/buildroot/.config BR2_EXTERNAL=support/dummy-external HOST_GCC_VERSION=“6” SKIP_LEGACY= /risc-v/DIR/freedom-u-sdk/work/buildroot/build/buildroot-config/conf --silentoldconfig Config.in
make[2]: Leaving directory ‘/risc-v/DIR/freedom-u-sdk/buildroot’

toolchain-external undefined Configuring
Incorrect selection of kernel headers: expected 4.1.x, got 3.14.x
package/pkg-generic.mk:185: recipe for target ‘/risc-v/DIR/freedom-u-sdk/work/buildroot/build/toolchain-external-undefined/.stamp_configured’ failed
make[1]: *** [/risc-v/DIR/freedom-u-sdk/work/buildroot/build/toolchain-external-undefined/.stamp_configured] Error 1
make[1]: Leaving directory '/risc-v/DIR/freedom-u-sdk/buildroot’
Makefile:50: recipe for target ‘/risc-v/DIR/freedom-u-sdk/work/buildroot/images/rootfs.tar’ failed
make: *** [/risc-v/DIR/freedom-u-sdk/work/buildroot/images/rootfs.tar] Error 2