problems compiling an out of tree driver for a xM on kernel 5.4.24

Has anyone else seen this error message when compiling an out of tree module?

make: Entering directory ‘/usr1/github.com.RoberCNelson.arm7-multiplatform/armv7-multiplatform/KERNEL’
AR /usr1/BeagleXmDrivers/built-in.a
CC [M] /usr1/BeagleXmDrivers/hello.o
cc1: error: cannot load plugin ./scripts/gcc-plugins/arm_ssp_per_task_plugin.so
./scripts/gcc-plugins/arm_ssp_per_task_plugin.so: undefined symbol: _Z9rtx_alloc8rtx_code
make[1]: *** [scripts/Makefile.build:266: /usr1/BeagleXmDrivers/hello.o] Error 1
make: *** [Makefile:1690: /usr1/BeagleXmDrivers] Error 2
make: Leaving directory ‘/usr1/github.com.RoberCNelson.arm7-multiplatform/armv7-multiplatform/KERNEL’
t

Mike

Hi! I’m having the same error when trying to compile a out of tree driver.
Have you found the solution?
I’m also using the kernel from RobertCNelson/armv7-multiplatform.
Thanks!

Hi Jake,

Yes, I did find a solution! Using the cross development tools downloaded by Nelson’s script makes things work correctly. This the script I’m using to build drivers:

CROSS_COMPILE_PATH=/usr1/github.com.RoberCNelson.arm7-multiplatform/armv7-multiplatform/dl/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
make -C $KERNEL_ROOT M=$(pwd) ARCH=arm CROSS_COMPILE=$CROSS_COMPILE_PATH

Mike

Hi Mike,

Thank you for your solution! This works flawlessly!

Jake