Replacing the gcc-7 version with gcc-8 seems to "fix" the problem
root@ubuntu_base:~/builderr# uname -a
Linux ubuntu_base 5.4.0-050400rc5-generic #201910271430 SMP Sun Oct 27 18:33:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu_base:~/builderr# gcc --version
gcc (Ubuntu 8.3.0-6ubuntu1~18.04.1) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
root@ubuntu_base:~/builderr# make -C /lib/modules/5.4.0-050400rc5-generic/build/ M=$PWD
make: Entering directory '/usr/src/linux-headers-5.4.0-050400rc5-generic'
AR /root/builderr/built-in.a
CC [M] /root/builderr/conftest.o
Building modules, stage 2.
MODPOST 1 modules
CC [M] /root/builderr/conftest.mod.o
LD [M] /root/builderr/conftest.ko
make: Leaving directory '/usr/src/linux-headers-5.4.0-050400rc5-generic'
I think I might have found the
"source" of the problem.
https:/ /github. com/torvalds/ linux/commit/ 40576e5e63ea5ee ab814de7af83ad0 9dd64134ee
Replacing the gcc-7 version with gcc-8 seems to "fix" the problem
root@ubuntu_ base:~/ builderr# uname -a -generic #201910271430 SMP Sun Oct 27 18:33:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux base:~/ builderr# gcc --version 18.04.1) 8.3.0
Linux ubuntu_base 5.4.0-050400rc5
root@ubuntu_
gcc (Ubuntu 8.3.0-6ubuntu1~
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
root@ubuntu_ base:~/ builderr# make -C /lib/modules/ 5.4.0-050400rc5 -generic/ build/ M=$PWD linux-headers- 5.4.0-050400rc5 -generic' built-in. a conftest. o conftest. mod.o conftest. ko linux-headers- 5.4.0-050400rc5 -generic'
make: Entering directory '/usr/src/
AR /root/builderr/
CC [M] /root/builderr/
Building modules, stage 2.
MODPOST 1 modules
CC [M] /root/builderr/
LD [M] /root/builderr/
make: Leaving directory '/usr/src/