ethercat compile error with kernel "Linux debian 5.10.0-4-rt-amd64" and "Linux debian 5.10.0-5-rt-amd64"
Hi,
I have succesful build a new iso for linux bullseye realtime today. Then i installed linuxcnc with succes. Now for ethercat there is a compile problem.
I tried different sources : ethercat-gh, etherlab, ec-debianize etc. All are failing. I also upgraded to a sid kernel, but error code is the same.
Maybe you know what could be the problem?
The "make" command is oke. Then "make modules" fails.
Here are my actions to install ethercat : https://github.com/grotius-cnc/debian_distro_live_build_post_tweaking/blob/main/another-attempt.md
I have tried to change the source code a little bit, but i don't understand how to get the "timeval_poll" satisfied at the moment. Is it bad?
Produced error : /home/user/etherlab/master/device.h:95:20: error: field ‘timeval_poll’ has incomplete type 95 | struct timeval timeval_poll; | ^~~~~~~~~~~~ /home/user/etherlab/master/cdev.c:91:14: error: initialization of ‘vm_fault_t (*)(struct vm_fault )’ {aka ‘unsigned int ()(struct vm_fault )’} from incompatible pointer type ‘int ()(struct vm_fault *)’ [-Werror=incompatible-pointer-types] 91 | .fault = eccdev_vma_fault | ^~~~~~~~~~~~~~~~
Here comes the iso for reproducing the error : https://sourceforge.net/projects/temponary/files/Debian-11-Bullseye-Rtos.iso/download
If you have any questions, go ahead .. I hope this is solved very soon !