Closed Dazzingdusk closed 3 years ago
error log:
In file included from clockadj.c:25:0:
missing.h:79:40: error: missing binary operator before token "("
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,8,0)
^
DEPEND clock.c
In file included from clock.c:35:0:
missing.h:79:40: error: missing binary operator before token "("
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,8,0)
^
DEPEND bmc.c
arm-none-eabi-gcc -Wall -DVER=3.1.1-g4367d83-dirty -D_GNU_SOURCE -DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC -c -o ptp4l.o ptp4l.c
In file included from filter.h:23:0,
from ds.h:25,
from clock.h:24,
from ptp4l.c:26:
tmv.h:23:10: fatal error: linux/ptp_clock.h: No such file or directory
#include <linux/ptp_clock.h>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
<builtin>: recipe for target 'ptp4l.o' failed
make: *** [ptp4l.o] Error 1
Just replace the cross compiler that supports glibc, for example arm-linux-.....; instead of arm-none-.....
HI, I modified the source code and tried to cross-compile, but at present, it seems that there is a problem with the reference path of the header file, which will cause the build to fail. modify patch: