Hello, In the Message; Subject : Re: Leap 15.6 Building kernel module Message-ID : <CANkOqwM8E8B1wMixq6uPMtE10+mB5UeVs6EK4tHvEZJZSeG77w@mail.gmail.com> Date & Time: Tue, 23 Jul 2024 10:13:48 +0200 [RO] == Roger Oberholtzer <roger.oberholtzer@gmail.com> has written: [...] RO> *** RO> *** Making pcan driver in netdev mode RO> *** RO> *** Host OS Release=openSUSE Leap v15.6 RO> *** Host machine kernel version=6.4.12-1-default RO> *** Driver kernel version=6.4.0-150600.23.14-default (6.4.0) RO> *** Path to kernel sources=/usr/src/linux RO> *** use KBUILD=yes RO> *** use DKMS= RO> *** gcc version=7 RO> *** RO> make -C /usr/src/linux [...] This is may case; $ make -j16 make[1]: Entering directory '/usr/local/tmp/project/peak-linux-driver-8.18.0/driver' *** *** Making pcan driver in chardev mode *** *** Host OS Release=openSUSE Tumbleweed v20240716 *** Host machine kernel version=6.9.9-1-default *** Driver kernel version=6.9.9-1-default (6.9.9) *** Path to kernel sources=/lib/modules/6.9.9-1-default/build *** use KBUILD=yes *** use DKMS= *** gcc version=14 *** make -C /lib/modules/6.9.9-1-default/build EXTRA_CFLAGS="-I/usr/local/tmp/project/peak-linux-driver-8.18.0/driver -DNO_DEBUG -DMODVERSIONS -DNO_PARPORT_SUBSYSTEM -DUSB_SUPPORT -DPCI_SUPPORT -DPCIEC_SUPPORT -DISA_SUPPORT -DNO_DONGLE_SUPPORT -DNO_PCCARD_SUPPORT -DNO_NETDEV_SUPPORT -DNO_RT -Wno-date-time" V=0 modules M=/usr/local/tmp/project/peak-linux-driver-8.18.0/driver make[2]: Entering directory '/usr/src/linux-6.9.9-1-obj/x86_64/default' warning: the compiler differs from the one used to build the kernel [...] As you can see, in my case, I can build with no problem with these; *** Path to kernel sources=/lib/modules/6.9.9-1-default/build and make -C /lib/modules/6.9.9-1-default/build ..... I understand that sources=/usr/src/linux and make -C /usr/src/linux don't build, but I don't understand why this is the case. Best Regards. --- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ lake.dti.ne.jp ┃\/彡 ┗━━┛ "To hire for skills, firms will need to implement robust and intentional changes in their hiring practices ― and change is hard." -- Employers don’t practice what they preach on skills-based hiring --