ome/img/nav3_on.png">
APP
系统平台
  • 建站知识
  • 联系我们
  • 咨询热线 :
    028-86922220

    疆括仕网站建设,新征程启航

    为企业提供网站建设、域名注册、服务器等服务

    linux编译kernel和svn版本冲突的解决办法

    现象

    成都创新互联-专业网站定制、快速模板网站建设、高性价比盖州网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式盖州网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖盖州地区。费用合理售后完善,10多年实体公司更值得信赖。

    系统本来可以正常编译linux系统kernel,但在安装SVN后,kernel编译出错。

    CHK   include/linux/version.h
     CHK   include/generated/utsrelease.h
    make[1]: `include/generated/mach-types.h' is up to date.
     CALL  scripts/checksyscalls.sh
     CHK   include/generated/compile.h
    gcc: directory: No such file or directory
    gcc: directory": No such file or directory
    :0: warning: missing terminating " character
    gcc: directory: No such file or directory
    gcc: directory": No such file or directory
    :0: warning: missing terminating " character
    gcc: directory: No such file or directory
    gcc: directory": No such file or directory
    :0: warning: missing terminating " character
     CC   drivers/gpu/mali/mali/common/mali_kernel_core.o
    
    arm-eabi-gcc: error: ": No such file or directory
    make[4]: *** [drivers/gpu/mali/mali/common/mali_kernel_core.o] 错误 1
    make[3]: *** [drivers/gpu/mali/mali] 错误 2
    make[2]: *** [drivers/gpu/mali] 错误 2
    make[1]: *** [drivers/gpu] 错误 2
    make: *** [drivers] 错误 2
    make: *** 正在等待未完成的任务....

    原因分析

    定位到 drivers/gpu/mali/ump/Makefile.common 和 drivers/gpu/mali/mali/Makefile 两个文件中都有关于 SVN_REV:=xxxx 的语句,正常情况下 SVN_REV:= 为空,当检查到svn版本后, SVN_REV:= 有了值,导致脚本中判断走入错误分支。

    解决方法

    将两个文件中的 SVN_REV 值都赋值为空 “” 即可。

    drivers/gpu/mali/ump/Makefile.common:

     16 # Get subversion revision number, fall back to 0000 if no svn info is available
     17 #SVN_REV:=$(shell ((svnversion | grep -qv exported && echo -n 'Revision: ' && svnversion) || git svn info | sed -e 's/$$$$/M/' | grep     '^Revision: ' || echo ${MALI_RELEASE_NAME}) 2>/dev/null | sed -e 's/^Revision: //')
     19 SVN_REV:=""

    drivers/gpu/mali/mali/Makefile:

    117 #SVN_REV := $(shell (cd $(DRIVER_DIR); (svnversion | grep -qv exported && svnversion) || git svn info | grep '^Revision: '| sed -e 's/    ^Revision: //' ) 2>/dev/null )
    119 SVN_REV := ""

    总结

    到此这篇关于linux编译kernel和svn版本冲突解决的文章就介绍到这了,更多相关linux编译kernel和svn版本冲突内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!

    香港服务器选创新互联,2H2G首月10元开通。
    创新互联(www.cdcxhl.com)互联网服务提供商,拥有超过10年的服务器租用、服务器托管、云服务器、虚拟主机、网站系统开发经验。专业提供云主机、虚拟主机、域名注册、VPS主机、云服务器、香港云服务器、免备案服务器等。


    网站题目:linux编译kernel和svn版本冲突的解决办法
    分享地址:https://www.tyhkzb.com/article/ccegdgj.html
    在线咨询
    服务热线
    服务热线:028-86922220
    TOP