mt7688 按照github操作,到make -j编译出错



  • make -r world: build failed. Please re-run make with -j1 V=s to see what's going on
    /home/phoebe/openwrt_widora/include/toplevel.mk:181: recipe for target 'world' failed
    make: *** [world] Error 1
    
    

    显示上面的错误信息,Linux版本为deepin15
    求助


  • administrators

    运行make -j1 V=s后再看log



  • include/linux/compiler-gcc.h:114:30: fatal error: linux/compiler-gcc6.h: No such file or directory
    #include gcc_header(GNUC)
    ^
    compilation terminated.
    /home/phoebe/openwrt_widora/build_dir/host/u-boot-2014.10/scripts/Makefile.autoconf:64: recipe for target 'include/autoconf.mk' failed
    make[6]: *** [include/autoconf.mk] Error 1
    /home/phoebe/openwrt_widora/build_dir/host/u-boot-2014.10/Makefile:464: recipe for target 'silentoldconfig' failed
    make[5]: *** [silentoldconfig] Error 1
    make[4]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.
    make[4]: Leaving directory '/home/phoebe/openwrt_widora/build_dir/host/u-boot-2014.10'
    Makefile:46: recipe for target '/home/phoebe/openwrt_widora/build_dir/host/u-boot-2014.10/.built' failed
    make[3]: *** [/home/phoebe/openwrt_widora/build_dir/host/u-boot-2014.10/.built] Error 2
    make[3]: Leaving directory '/home/phoebe/openwrt_widora/tools/mkimage'
    tools/Makefile:122: recipe for target 'tools/mkimage/compile' failed
    make[2]: *** [tools/mkimage/compile] Error 2
    make[2]: Leaving directory '/home/phoebe/openwrt_widora'
    tools/Makefile:121: recipe for target '/home/phoebe/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyynyyyyyyyyynyyyyynnyyynnyynnnyy' failed
    make[1]: *** [/home/phoebe/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyynyyyyyyyyynyyyyynnyyynnyynnnyy] Error 2
    make[1]: Leaving directory '/home/phoebe/openwrt_widora'
    Build failed - please re-run with -j1 to see the real error message
    /home/phoebe/openwrt_widora/include/toplevel.mk:181: recipe for target 'world' failed
    make: *** [world] Error 1


  • administrators

    像是依赖问题,安装 build-essential 后试试,按照: https://cn.doraiot.com/compile 检查依赖包
    这个错误很像ubuntu18+版本上的问题,实在不行就用ubuntu16.04


Log in to reply