Closed gsedej closed 4 years ago
Hello, I have found the problem: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1849348
The linux headers from http://kernel.ubuntu.com/~kernel-ppa/mainline are built with a gcc 9 version. This causes CONFIG_CC_HAS_ASM_INLINE to be set to true.
However the gcc level that is installed by default on ubuntu 18.04.3 is still gcc 7.4. This level doesn't meet the criteria for supporting CONFIG_CC_HAS_ASM_INLINE, so the building with the linux headers will fail.
You can either try to set CONFIG_CC_HAS_ASM_INLINE to false: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1849348/comments/6
manually set the CONFIG_CC_HAS_ASM_INLINE statements false in the linux 5.4 headers (deleted the line in include/generated/autoconf.h and set CONFIG_CC_HAS_ASM_INLINE=n in include/config/auto.conf).
or, install newer gcc (version 8 should work fine): https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1849348/comments/10
sudo apt install gcc-8 g++-8 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8 --slave /usr/bin/gcov gcov /usr/bin/gcov-8
THANK YOU very much for research and instructions. I can confirm both methods work.
my kernel is 5.6.0-050600rc1 delete
#define CONFIG_CC_HAS_ASM_INLINE 1
in
/usr/src/linux-headers-5.6.0-050600rc1-generic/include/generated/autoconf.h
and set
CONFIG_CC_HAS_ASM_INLINE=y
to
CONFIG_CC_HAS_ASM_INLINE=n
in
/usr/src/linux-headers-5.6.0-050600rc1-generic/include/config/auto.conf
sudo apt install gcc-8 g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8 --slave /usr/bin/gcov gcov /usr/bin/gcov-8
sudo make dkms-uninstall
sudo make dkms-install
anyway this are merged output of k10temp (kernel 5.6) and zenpower
k10temp-pci-00c3
Adapter: PCI adapter
Vcore: +0.95 V
Vsoc: +1.09 V
Tdie: +37.6°C
Tctl: +37.6°C
Tccd1: +37.5°C
Icore: +5.00 A
Isoc: +6.50 A
zenpower-pci-00c3
Adapter: PCI adapter
SVI2_Core: +0.95 V
SVI2_SoC: +1.09 V
Tdie: +37.5°C (high = +95.0°C)
Tctl: +37.5°C
Tccd1: +37.8°C
SVI2_P_Core: 2.50 W
SVI2_P_SoC: 8.32 W
SVI2_C_Core: +2.63 A
SVI2_C_SoC: +7.65 A
should this be mentioned somewhere? I am using "old" distros with new kernels (and new 3D userspace drivers). I don't know if there are many others using like this.
(updating kernel is super easy via ukuu and 3D drivers via PPA)
I have updated the readme file
hello
I am trying to build zenpower on ubuntu 18.04 with kernel 5.4 (installed via ukuu)
make output
the log says
full log make.log