Skip to content

FIXED. Chat & Screens & Benchs: Various Intel Gen CPUs & X570 + Ryzen 3rd Gen #129

@olejon

Description

@olejon
  • make fails on Linux 4.15.0-52-generic, current latest kernel for Ubuntu 18.04 LTS 64-bit, with Vanilla GNOME (used as developer and main workstation + some server services)
  • The package intel-microcode was also updated recently
  • Straight forward unlocked SkyLake Workstation CPU: Intel Core i5-6600K
  • Worked like a charm first time I installed CoreFreq
  • Logically did not work after next kernel update, since CF kernel module was not compiled for it
  • Compiled again and worked fine again
  • BUT now, with Linux 4.15.0-52-generic, it fails with the error below
  • Installed libelf-dev since make suggested to do so, and that warning goes away, but still build fails
  • Has not bothered with adding it to dkms since make takes like 5 seconds on my system (seems like that was a good decision)
  • Overclocked simply enabling Intel XMP in UEFI, which enables all cores to go to max TurboBoost ("sync all cores", 3.9 GHz under constant all cores max stress = temperature fine) + XMP automatically detects my XMP compatible 3200 MHz DDR4 RAM, and such sets correct values
$ make
...
make -j1 -C /lib/modules/4.15.0-52-generic/build M=/home/username/Downloads/CoreFreq modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-52-generic'
  CC [M]  /home/username/Downloads/CoreFreq/corefreqk.o
/home/username/Downloads/CoreFreq/corefreqk.c: In function ‘SMBIOS_Collect’:
/home/username/Downloads/CoreFreq/corefreqk.c:9107:5: error: ‘DMI_PRODUCT_SKU’ undeclared (first use in this function); did you mean ‘DMI_PRODUCT_UUID’?
   { DMI_PRODUCT_SKU, Proc->SMB.Product.SKU },
     ^~~~~~~~~~~~~~~
     DMI_PRODUCT_UUID
/home/username/Downloads/CoreFreq/corefreqk.c:9107:5: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:337: recipe for target '/home/username/Downloads/CoreFreq/corefreqk.o' failed
make[2]: *** [/home/username/Downloads/CoreFreq/corefreqk.o] Error 1
Makefile:1552: recipe for target '_module_/home/username/Downloads/CoreFreq' failed
make[1]: *** [_module_/home/username/Downloads/CoreFreq] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-52-generic'
Makefile:70: recipe for target 'all' failed
make: *** [all] Error 2

I see you did varios SMBIOS 6 days ago. That is what failing it seems.

I haven't installed/purged or changed anything that should have anything to do with building from source code.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions