Bug#889809: [linux] Fails to compile external modules
Source: linux
Version: 4.14.13-1~bpo9+1
Severity: normal
X-Debbugs-CC: backports@vger.kernel.org
It seems like the current kernel in stretch backporst and in buster
has problems when compiling external modules against it. This worked
fine in the past. Also works fine when compiling against a manually
compiled 4.14 Linux kernel. So it seems to be a Debian specific
regression. Here are some examples
$ curl https://mirror2.openwrt.org/sources/backports-2017-11-01.tar.xz|tar xvJ
$ make -C backports-2017-11-01 defconfig-ath9k
$ make -C backports-2017-11-01
make: Entering directory '/usr/src/backports-2017-11-01'
make[5]: 'conf' is up to date.
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
In file included from <command-line>:0:0:
/usr/src/backports-2017-11-01/backport-include/backport/backport.h:3:32:
fatal error: generated/autoconf.h: No such file or directory
#include <generated/autoconf.h>
^
compilation terminated.
In file included from <command-line>:0:0:
/usr/src/backports-2017-11-01/backport-include/backport/backport.h:3:32:
fatal error: generated/autoconf.h: No such file or directory
#include <generated/autoconf.h>
$ curl https://downloads.open-mesh.org/batman/stable/sources/batman-adv/batman-adv-2017.4.tar.gz|tar
xvz
$ make -C batman-adv-2017.4
make: Entering directory '/usr/src/batman-adv-2017.4'
/usr/src/batman-adv-2017.4/gen-compat-autoconf.sh
/usr/src/batman-adv-2017.4/compat-autoconf.h
mkdir -p /usr/src/batman-adv-2017.4/build/net/batman-adv/
compat-patches/replacements.sh
touch /usr/src/batman-adv-2017.4/build/net/batman-adv/.compat-prepared
make -C /lib/modules/4.14.0-0.bpo.3-amd64/build
M=/usr/src/batman-adv-2017.4/build
PWD=/usr/src/batman-adv-2017.4/build REVISION= CONFIG_BATMAN_ADV=m
CONFIG_BATMAN_ADV_DEBUG=n CONFIG_BATMAN_ADV_DEBUGFS=y
CONFIG_BATMAN_ADV_BLA=y CONFIG_BATMAN_ADV_DAT=y CONFIG_BATMAN_ADV_NC=n
CONFIG_BATMAN_ADV_MCAST=y CONFIG_BATMAN_ADV_BATMAN_V=n
INSTALL_MOD_DIR=updates/ modules
make[1]: Entering directory '/usr/src/linux-headers-4.14.0-0.bpo.3-amd64'
In file included from <command-line>:31:0:
/usr/src/batman-adv-2017.4/build/../compat.h:24:52: fatal error:
linux/version.h: No such file or directory
#include <linux/version.h> /* LINUX_VERSION_CODE */
^
compilation terminated.
In file included from <command-line>:31:0:
/usr/src/batman-adv-2017.4/build/../compat.h:24:52: fatal error:
linux/version.h: No such file or directory
#include <linux/version.h> /* LINUX_VERSION_CODE */
^
compilation terminated.
--- System information. ---
Architecture:
Kernel: Linux 4.14.0-0.bpo.3-amd64
Debian Release: 9.3
500 stable security.debian.org
500 stable httpredir.debian.org
100 stretch-backports httpredir.debian.org
Reply to: