Problem compiling driver after Ubuntu update

Søren Koch via Linux-gpib-general <[email protected]> Fri, 13 Jan 2023 05:53:37 +0000
Newsgroups gmane.linux.hardware.gpib.general
Message-ID <[email protected]>
Dear all.


I have run into a quite strange problem after updating one of our Ubuntu systems.


When I run make in the kernel driver directory I get the following error:


root@celletest-36:~/linux-gpib-4.3.5/linux-gpib-kernel-4.3.5# make
make -C /lib/modules/`uname -r`/build V=0 modules \
    M="/root/linux-gpib-4.3.5/linux-gpib-kernel-4.3.5/drivers/gpib" \
    GPIB_TOP_DIR=/root/linux-gpib-4.3.5/linux-gpib-kernel-4.3.5 \
    CONFIG_GPIB_ISA="" \
    GPIB_CONFIG_PCMCIA="0" \
    HAVE_DEV_OF_NODE= \
    GPIB_CONFIG_KERNEL_DEBUG=0
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-48-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
  You are using:           gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-48-generic'
root@celletest-36:~/linux-gpib-4.3.5/linux-gpib-kernel-4.3.5#


I have never seen that kind of error before and I have no idea how to 'downgrade' gcc.

(and I have not explicitly upgraded gcc either, I just ran apt-get update...


Anyone got any ideas?

Søren Koch
Senior Development Engineer
Mob: +45 21325247
[email protected]
Fysikvej
Building 310
2800 Kgs. Lyngby

_______________________________________________
Linux-gpib-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-gpib-general