Solution to the conflict between Linux kernel and SVN versions

Solution to the conflict between Linux kernel and SVN versions

Phenomenon

The system could compile the Linux system kernel normally, but after installing SVN, the kernel compilation failed.

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] Error 1
make[3]: *** [drivers/gpu/mali/mali] Error 2
make[2]: *** [drivers/gpu/mali] Error 2
make[1]: *** [drivers/gpu] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished tasks....

Cause Analysis

We found that there are statements about SVN_REV:=xxxx in drivers/gpu/mali/ump/Makefile.common and drivers/gpu/mali/mali/Makefile. Under normal circumstances, SVN_REV:= is empty. When the SVN version is checked, SVN_REV:= has a value, which causes the script to go into the wrong branch.

Workaround

Just assign the SVN_REV value 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/$$$$/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 := ""

Summarize

This is the end of this article about resolving conflicts between Linux kernel and SVN versions. For more information about resolving conflicts between Linux kernel and SVN versions, please search previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to install gcc and kernel-devel in Linux system
  • Use the interface provided by the kernel to print the process number (pid)
  • A brief discussion on how to print the function call stack in the Linux kernel
  • How to print the function name corresponding to the function pointer in linux kernel
  • Learn how to use NEON to accelerate algorithms in kernel state
  • Analysis of the problem of "Couldn't find hvm kernel for Ubuntu tree." when installing 64-bit Ubuntu under kvm command line in Ubuntu
  • CentOS7 upgrade kernel kernel5.0 version
  • A brief discussion on the Linux kernel's support for floating-point operations

<<:  MySQL 8.0.18 deployment and installation tutorial under Windows 7

>>:  Vue development tree structure components (component recursion)

Recommend

Example code for implementing 3D Rubik's Cube with CSS

Let's make a simple 3D Rubik's Cube today...

How to import, register and use components in batches in Vue

Preface Components are something we use very ofte...

Detailed explanation of the usage of the alias command under Linux

1. Use of alias The alias command is used to set ...

Linux super detailed gcc upgrade process

Table of contents Preface 1. Current gcc version ...

How to reduce image size using Docker multi-stage build

This article describes how to use Docker's mu...

Solution to mysql error when modifying sql_mode

Table of contents A murder caused by ERR 1067 The...

Detailed explanation of mysql download and installation process

1: Download MySql Official website download addre...

Detailed explanation of JavaScript array deduplication

Table of contents 1. Array deduplication 2. Dedup...

Mysql some complex sql statements (query and delete duplicate rows)

1. Find duplicate rows SELECT * FROM blog_user_re...

Design Theory: A Method to Understand People's Hearts

<br />Once, Foyin and Mr. Dongpo were chatti...

Detailed explanation of :key in VUE v-for

When key is not added to the v-for tag. <!DOCT...

Global call implementation of Vue2.x Picker on mobile terminal

Table of contents What is the Picker component Pr...

Example verification MySQL | update field with the same value will record binlog

1. Introduction A few days ago, a development col...