Comment 18 for bug 2004644

Revision history for this message
aGan SimSek (mngans) wrote :

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
$ 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, \
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~