Mailinglist Archive: opensuse-bugs (6095 mails)

< Previous Next >
[Bug 1089720] New: Can't build out of kernel drivers if using vanilla kernel
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 16 Apr 2018 14:44:33 +0000
  • Message-id: <bug-1089720-21960@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=1089720


Bug ID: 1089720
Summary: Can't build out of kernel drivers if using vanilla
kernel
Classification: openSUSE
Product: openSUSE Distribution
Version: Leap 15.0
Hardware: x86-64
OS: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Kernel
Assignee: kernel-maintainers@xxxxxxxxxxxxxxxxxxxxxx
Reporter: dmarkh@xxxxxxxxxx
QA Contact: qa-bugs@xxxxxxx
Found By: ---
Blocker: ---

User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101
Firefox/59.0
Build Identifier:

We have several out of kernel drivers. They build and run fine on the 4.12
kernel that comes on Leap-15 Beta-197.1. However when we build and run a
vanilla kernel from kernel.org on Leap-15 and then try to build our drivers
against it, the build fails.

make -C /lib/modules/4.16.2-lcrs/build SUBDIRS=$PWD
make[1]: Entering directory '/usr/src/kernels/4.16.2-lcrs'
CC [M] /home/markh/work/pcirtom-linux/driver/rtom.o
In file included from /home/markh/work/pcirtom-linux/driver/rtom.c:29:0:
./include/linux/kernel.h:6:10: fatal error: stdarg.h: No such file or directory
#include <stdarg.h>

compilation terminated.

The vanilla kernel is built and installed like has been done forever via:
#make -j#
#make modules_install install

I figured out what I had to do to get these out of kernel modules to compile. I
have to explicitly include "-I/usr/lib64/gcc/x86_64-suse-linux/7/include/".

I have no idea how the kernel handles this but Leap-15 seems to have prohibited
it from happening correctly in all but against the 4.12 Leap-15 kernel.

I suspect this is not intentional. I also suspect it is a bug somewhere. Never
in the history of using opensuse have we had to explicitly make this include in
an out of kernel driver.

Reproducible: Always

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >