I came across a similar problem in the following situation. Maybe it can help you move forward quickly. Because it is base on docker and cross compile.
After that the Docker image is prepared and ready to run
$ docker run -it rtwg-image bash
and then inside the docker
$ cd $HOME/linux_build/linux-raspi
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- LOCALVERSION=-raspi -j `nproc` bindeb-pkg
A error part of screen out;
make KERNELRELEASE=5.4.229-rt80-raspi ARCH=arm64 KBUILD_BUILD_VERSION=1 -f ./Makefile
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC lttng/src/lttng-ring-buffer-client-discard.o
CC lttng/src/lttng-ring-buffer-client-overwrite.o
CC lttng/src/probes/lttng-probe-jbd2.o
CC lttng/src/probes/lttng-probe-scsi.o
CC lttng/src/probes/lttng-probe-vmscan.o
In file included from lttng/src/probes/../../include/lttng/define_trace.h:87, from lttng/src/probes/../../include/instrumentation/events/jbd2.h:293, from lttng/src/probes/lttng-probe-jbd2.c:29:
lttng/src/probes/../../include/lttng/tracepoint-event-impl.h:133:6: error: conflicting types for ‘trace_jbd2_run_stats’
133 | void trace_##_name(_proto);
| ^~~~~~
lttng/src/probes/../../include/lttng/tracepoint-event-impl.h:45:2: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP’
45 | LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto), PARAMS(args))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lttng/src/probes/../../include/lttng/tracepoint-event-impl.h:87:2: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_MAP’
87 | LTTNG_TRACEPOINT_EVENT_MAP(name, name, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
I came across a similar problem in the following situation. Maybe it can help you move forward quickly. Because it is base on docker and cross compile.
git clone https:/ /github. com/ros- realtime/ linux-real- time-kernel- builder. git
$ cd linux-real- time-kernel- builder
$ docker build --no-cache --build-arg UBUNTU_ VERSION= focal --build-arg KERNEL_ VERSION= 5.4.0 --build-arg RT_PATCH= 5.4.230- rt80 --build-arg LTTNG_VERSION=2.13 -t rtwg-image .
After that the Docker image is prepared and ready to run
$ docker run -it rtwg-image bash
and then inside the docker build/linux- raspi aarch64- linux-gnu- LOCALVERSION=-raspi -j `nproc` bindeb-pkg
$ cd $HOME/linux_
$ make ARCH=arm64 CROSS_COMPILE=
A error part of screen out;
make KERNELRELEASE= 5.4.229- rt80-raspi ARCH=arm64 KBUILD_ BUILD_VERSION= 1 -f ./Makefile atomic/ check-atomics. sh checksyscalls. sh generated/ compile. h lttng-ring- buffer- client- discard. o lttng-ring- buffer- client- overwrite. o probes/ lttng-probe- jbd2.o probes/ lttng-probe- scsi.o probes/ lttng-probe- vmscan. o probes/ ../../include/ lttng/define_ trace.h: 87,
from lttng/src/ probes/ ../../include/ instrumentation /events/ jbd2.h: 293,
from lttng/src/ probes/ lttng-probe- jbd2.c: 29: probes/ ../../include/ lttng/tracepoin t-event- impl.h: 133:6: error: conflicting types for ‘trace_ jbd2_run_ stats’ #_name( _proto) ; probes/ ../../include/ lttng/tracepoin t-event- impl.h: 45:2: note: in expansion of macro ‘LTTNG_ TRACEPOINT_ EVENT_INSTANCE_ MAP’ T_EVENT_ INSTANCE_ MAP(map, name, map, PARAMS(proto), PARAMS(args)) ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ probes/ ../../include/ lttng/tracepoin t-event- impl.h: 87:2: note: in expansion of macro ‘LTTNG_ TRACEPOINT_ EVENT_MAP’ T_EVENT_ MAP(name, name, \ ~~~~~~~ ~~~~~~~ ~~~~~
CALL scripts/
CALL scripts/
CHK include/
CC lttng/src/
CC lttng/src/
CC lttng/src/
CC lttng/src/
CC lttng/src/
In file included from lttng/src/
lttng/src/
133 | void trace_#
| ^~~~~~
lttng/src/
45 | LTTNG_TRACEPOIN
| ^~~~~~~
lttng/src/
87 | LTTNG_TRACEPOIN
| ^~~~~~~