Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #60159 > unrolled thread

Bug#889809: [linux] Fails to compile external modules

Started byCharlemagne Lasse <charlemagnelasse@gmail.com>
First post2018-02-07 10:20 +0100
Last post2018-02-07 21:50 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#889809: [linux] Fails to compile external modules Charlemagne Lasse <charlemagnelasse@gmail.com> - 2018-02-07 10:20 +0100
    Bug#889809: [linux] Fails to compile external modules Ben Hutchings <ben@decadent.org.uk> - 2018-02-07 21:50 +0100
    Processed: Re: Bug#889809: [linux] Fails to compile external modules "Debian Bug Tracking System" <owner@bugs.debian.org> - 2018-02-07 21:50 +0100

#60159 — Bug#889809: [linux] Fails to compile external modules

FromCharlemagne Lasse <charlemagnelasse@gmail.com>
Date2018-02-07 10:20 +0100
SubjectBug#889809: [linux] Fails to compile external modules
Message-ID<vgu3v-3fZ-5@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#60163

FromBen Hutchings <ben@decadent.org.uk>
Date2018-02-07 21:50 +0100
Message-ID<vgEPf-1OV-3@gated-at.bofh.it>
In reply to#60159

[Multipart message — attachments visible in raw view] — view raw

Control: retitle -1 Some out-of-tree modules fail to build due to wrong include paths
Control: tag -1 wontfix

On Wed, 2018-02-07 at 10:15 +0100, Charlemagne Lasse wrote:
> 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.
[...]

It works fine for modules that use Kbuild in the normal way.  You have
found two projects that seem to do strange things with include paths. 
I think you should report this problem to those projects.

Ben.

-- 
Ben Hutchings
Reality is just a crutch for people who can't handle science fiction.

[toc] | [prev] | [next] | [standalone]


#60164 — Processed: Re: Bug#889809: [linux] Fails to compile external modules

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2018-02-07 21:50 +0100
SubjectProcessed: Re: Bug#889809: [linux] Fails to compile external modules
Message-ID<vgEPf-1OV-1@gated-at.bofh.it>
In reply to#60159
Processing control commands:

> retitle -1 Some out-of-tree modules fail to build due to wrong include paths
Bug #889809 [src:linux] [linux] Fails to compile external modules
Changed Bug title to 'Some out-of-tree modules fail to build due to wrong include paths' from '[linux] Fails to compile external modules'.
> tag -1 wontfix
Bug #889809 [src:linux] Some out-of-tree modules fail to build due to wrong include paths
Added tag(s) wontfix.

-- 
889809: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=889809
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web