Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the conflict between kernel and svn versions in linux compilation

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you how to solve the linux compilation kernel and svn version conflict, the content is easy to understand, I hope you can learn, after learning there will be a harvest, the following let the editor to take a look at it.

Phenomenon

The system could have compiled the linux system kernel normally, but there was an error in kernel compilation after installing svn.

CHK include/linux/version.h CHK include/generated/utsrelease.hmake [1]: `include/generated/mach-types.h' is up to date. CALL scripts/checksyscalls.sh CHK include/generated/compile.hgcc: directory: No such file or directorygcc: directory ": No such file or directory:0: warning: missing terminating" charactergcc: directory: No such file or directorygcc: directory ": No such file or directory:0: warning: missing terminating" charactergcc: directory: No such file or directorygcc: directory ": No such file or directory:0: warning: missing terminating" character CC drivers/gpu/mali/mali/common/mali_kernel_core.oarm-eabi-gcc: error: ": No such file or directorymake [4]: * * [drivers/gpu/mali/mali/common/mali_kernel_core.o] error 1make [3]: * [drivers/gpu/mali/mali] error 2make [2]: * [drivers/gpu/mali] error 2make [1]: * [drivers/gpu] error 2make: * * [drivers] error 2make: * waiting for unfinished task.

Cause analysis

Navigate to the statements about SVN_REV:=xxxx in both drivers/gpu/mali/ump/Makefile.common and drivers/gpu/mali/mali/Makefile files. Normally, SVN_REV:= is empty. When the svn version is checked, SVN_REV:= has a value, which leads to the wrong branch in the script.

Solution method

Assign the SVN_REV values in both files to empty "".

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 pedigree, please pay more than half a month) | grep'^ Revision:'| | echo ${MALI_RELEASE_NAME}) 2 > / dev/null | sed-e's / ^ revision: / /') 19 SVN_REV:= ""

Drivers/gpu/mali/mali/Makefile:

17 # 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: = "" above is about how to resolve the conflict between kernel and svn versions compiled by linux. If you have learned knowledge or skills, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report