Ubuntu 22.04 (Kernel 6.5) PCAN-Driver 8.17.0 (CharDev) -> ERROR: could not insert 'pcan': Exec format error
Posted: Fri 8. Mar 2024, 09:38
Dear Peak Support,
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: According to the topic found in this forum viewtopic.php?f=59&t=7337, I installed gcc-12. The building of the library seems to work now.
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:
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