ntload failes – Compile error
Hi,
After a reboot of my server the ntload.sh fails. Compile error. The output from ntload looks like this:
sudo ./ntload.sh
Compiling the nt3gd driver [Failed]
~~~~~~[ compile output: ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: Entering directory ‘/opt/napatech3/driver/src/driver/os/linux’
MAKEFLAGS=”” make -C /lib/modules/6.5.0-14-generic/build M=/opt/napatech3/driver/src/driver/os/linux clean
make[1]: Entering directory ‘/usr/src/linux-headers-6.5.0-14-generic’
make[1]: Leaving directory ‘/usr/src/linux-headers-6.5.0-14-generic’
make: Leaving directory ‘/opt/napatech3/driver/src/driver/os/linux’
make: Entering directory ‘/opt/napatech3/driver/src/driver/os/linux’
MAKEFLAGS=”” make -C /lib/modules/6.5.0-14-generic/build CC=”cc” M=/opt/napatech3/driver/src/driver/os/linux modules
make[1]: Entering directory ‘/usr/src/linux-headers-6.5.0-14-generic’
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
You are using: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
CC [M] /opt/napatech3/driver/src/driver/os/linux/drv.o
cc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
make[3]: *** [scripts/Makefile.build:251: /opt/napatech3/driver/src/driver/os/linux/drv.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.5.0-14-generic/Makefile:2037: /opt/napatech3/driver/src/driver/os/linux] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-6.5.0-14-generic’
make: *** [Makefile:91: build] Error 2
make: Leaving directory ‘/opt/napatech3/driver/src/driver/os/linux’
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~[ Build Error ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: It is not possible to build the Napatech kernel modules.
The error means the driver cannot load and start.
Please refer to the Napatech driver release notes for information on
supported Linux distributions and kernel versions.
The preceding `compile output:` section from the build process may
help explain the problem.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jens@NTA4:/opt/napatech3/bin$ cat /boot/config-$(uname -r) | grep GCC
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=120300
CONFIG_GCC11_NO_ARRAY_BOUNDS=y
CONFIG_HAVE_GCC_PLUGINS=y
jens@NTA4:/opt/napatech3/bin$ cat /proc/version
Linux version 6.5.0-14-generic (buildd@lcy02-amd64-110) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2
jens@NTA4:/opt/napatech3/bin$ uname -r
6.5.0-14-generic
jens@NTA4:/opt/napatech3/bin$ uname -a
Linux NTA4 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Should I user a newer Napatech driver, and if Yes which one?