ulfalizer / Kconfiglib

A flexible Python 2/3 Kconfig implementation and library
ISC License
448 stars 160 forks source link

Error: couldn't parse 'bool $(as-instr, tpause %ecx)': unknown tokens in line - Newer RHEL Kernels #111

Open chrisbarbeau opened 2 years ago

chrisbarbeau commented 2 years ago

kconfiglib is throwing a consistent error, pictured below, when attempting to parse newer RHEL, CentOS 8, and CentOS 8 Stream Kconfigs.

image2

I have been able to isolate this error. It is caused by the macro within the file [Kernel Source]/arch/x86/Kconfig.cpu, pictured directly below on line 479. The specific config is AS_TPAUSE.

image3

To reproduce this error, obtain recent kernel source code which includes the AS_TPAUSE configuration in Kconfig. An example of this is the most recent CentOS 8 Stream kernel source. Then appropriately set your environment variables for kconfiglib and attempt to initialize a kconfiglib object as pictured below.

image1

It appears that kconfiglib can neither handle nor support Kconfigs with AS_TPAUSE at this time.

Thank you for your assistance!

Scronkfinkle commented 1 year ago

+1 we're also running into this while attempting to build a RHEL 8.6 kernel