View Issue Details

IDProjectCategoryView StatusLast Update
0001214channel: elrepo/el8elrepo-releasepublic2022-04-08 18:02
ReporterJurian Li Assigned Totoracat  
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionopen 
Platformx86_64OSCentOS Linux release 8.5.2111OS Version5.17.0-1.el8
Summary0001214: Failed to install source rpm
DescriptionHi,

Here is a compile issue with centos 8.5.2111 when install source rpm.
While compiling the source code, that will enter directory /usr/src/kernels/5.17.0-1.el8.elrepo.x86_64/ and do "make modules", but a syntax error appear. This is the output:
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `if [ "gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-4)" != ""gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-4)"" ]; then \'
make[4]: *** [Makefile:1717: prepare] Error 1

Here is my analysis:

1. In kernel 5.17, the rule of using string values in Makefile has been changed: string values can not be enclosed with double-quotes in some files (Kconfig, .config and include/config/auto.conf).
Here is the commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=129ab0d2d9f38b9d43df35235fc66c6740d6928b

2. But it does not follow this new rule with centos 8.5.2111, CONFIG_CC_VERSION_TEXT is still enclosed with double-quotes
$ head /boot/config-5.17.0-1.el8.elrepo.x86_64
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 5.17.0-1.el8.elrepo.x86_64 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-4)" <--- the double-quotes should be removed in kernel 5.17
...

So please help to modify for this, thanks :)

Best Regards
Steps To ReproduceIt is easy to reproduce, the core probelm is that: when we do "make modules" under linux-headers directory, that will make a syntax error
Additional Information$ uname -a
Linux centos8 5.17.0-1.el8.elrepo.x86_64 #1 SMP PREEMPT Sun Mar 20 16:57:58 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/redhat-release
CentOS Linux release 8.5.2111



                                                                                    
Tagskernel-ml

Relationships

related to 0001215 resolvedtoracat channel: kernel/el8 Fail to build dkms ZFS 2.1.4 on kernel-ml 5.17.0 due to Makefile bug? 

Activities

toracat

2022-04-03 04:13

administrator   ~0008294

Because CONFIG_CC_VERSION_TEXT isn't being expanded like CC_VERSION_TEXT, it is being double quoted and the test fails.

toracat

2022-04-03 04:20

administrator   ~0008296

The patch offered in https://elrepo.org/bugs/view.php?id=1215 should fix the problem.

toracat

2022-04-05 14:16

administrator   ~0008321

@Jurian Li

We have an updated set of kernel-ml. Please test if you can. The details are in:

https://elrepo.org/bugs/view.php?id=1215#c8320

Jurian Li

2022-04-07 01:58

reporter   ~0008326

ok, thanks

toracat

2022-04-08 18:02

administrator   ~0008328

With the release of the kernel-ml-5.17.2-1.el8.elrepo set, this bug has been resolved.

Issue History

Date Modified Username Field Change
2022-03-24 02:55 Jurian Li New Issue
2022-03-24 02:55 Jurian Li Status new => assigned
2022-03-24 02:55 Jurian Li Assigned To => pperry
2022-03-24 02:55 Jurian Li Tag Attached: kernel-ml
2022-03-24 03:45 pperry Assigned To pperry => toracat
2022-04-03 03:58 toracat Relationship added related to 0001215
2022-04-03 04:13 toracat Note Added: 0008294
2022-04-03 04:20 toracat Note Added: 0008296
2022-04-05 14:16 toracat Note Added: 0008321
2022-04-05 14:22 burakkucat Status assigned => feedback
2022-04-07 01:58 Jurian Li Note Added: 0008326
2022-04-07 01:58 Jurian Li Status feedback => assigned
2022-04-08 18:02 toracat Status assigned => resolved
2022-04-08 18:02 toracat Note Added: 0008328