Running "make" gives many errors related to modpost. The general format is:
ERROR: modpost: < path >: '<funtion?> ' exported twice. Previous export was in < path to kernel module >.ko
Running "sudo make" also fails with this error:
Compiling PS PCIe DMA Driver
make[1]: Entering directory '/home/user1/repos/zynqmp-pspcie-epdma/driver'
make -C /lib/modules/6.2.0-32-generic/build M=/driver SUBDIRS= modules
make[2]: Entering directory '/usr/src/linux-headers-6.2.0-32-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
You are using: gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
scripts/Makefile.build:41: /driver/Makefile: No such file or directory
make[3]: *** No rule to make target '/driver/Makefile'. Stop.
make[2]: *** [Makefile:2026: /driver] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-6.2.0-32-generic'
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/home/user1/repos/zynqmp-pspcie-epdma/driver'
make: *** [Makefile:9: all] Error 2
But the file < path to repo >/driver/Makefile exisits
I am running Ubuntu 22.04 and using the latest version of the repository.
Running "make" gives many errors related to modpost. The general format is:
ERROR: modpost: < path >: '<funtion?> ' exported twice. Previous export was in < path to kernel module >.ko
Running "sudo make" also fails with this error:
But the file < path to repo >/driver/Makefile exisits
I am running Ubuntu 22.04 and using the latest version of the repository.