I am trying to install chardev peak 8.17.0 driver in order to use PCAN-USB on a fresh Ubuntu 22.04 install. With the preinstalled gcc-11, the make fails with error:
Code: Select all
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
For console output of `make NET=NO_NETDEV_SUPPRT` see attached txt file.
For completeness I attached the output of `sudo make install` as well.
Afterwards I cannot run `sudo modprobe pcan`. I get the following error:
Code: Select all
modprobe: ERROR: could not insert 'pcan': Exec format error
modprobe: ERROR: ../libkmod/libkmod-module.c:990 command_do() Error running install command 'modprobe --ignore-install pcan' for module pcan: retcode 1
modprobe: ERROR: could not insert 'pcan': Invalid argument