温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

如何解决linux编译kernel和svn版本冲突问题

发布时间:2020-07-28 10:19:47 来源:亿速云 阅读:155 作者:小猪 栏目:服务器

这篇文章主要为大家展示了如何解决linux编译kernel和svn版本冲突问题,内容简而易懂,希望大家可以学习一下,学习完之后肯定会有收获的,下面让小编带大家一起来看看吧。

现象

系统本来可以正常编译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
<command-line>:0: warning: missing terminating " character
gcc: directory: No such file or directory
gcc: directory": No such file or directory
<command-line>:0: warning: missing terminating " character
gcc: directory: No such file or directory
gcc: directory": No such file or directory
<command-line>: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版本冲突问题的内容,如果你们有学习到知识或者技能,可以把它分享出去让更多的人看到。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI