analogdevicesinc / linux

Linux kernel variant from Analog Devices; see README.md for details

Home Page:https://github.com/analogdevicesinc/linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raspberry build

DanielMatyas opened this issue · comments

I recently posted an issue with raspberry pi 4 build not working on master, but I closed it, because it was brought to my attention, that these builds should not be done on master: #2349

On the rpi-6.1.y branch I thought I have no issue, but after a restart of the computer I encountered the same error:

scripts/gcc-plugins/.arm_ssp_per_task_plugin.so.cmd:1: *** missing separator. Stop.
make[1]: *** [scripts/Makefile.build:500: scripts/gcc-plugins] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1269: scripts] Error 2
make: *** Waiting for unfinished jobs....

In scripts/gcc-plugins/.arm_ssp_per_task_plugin.so.cmd I have this:

-Wp,-MMD,scripts/gcc-plugins/.arm_ssp_per_task_plugin.so.d
-Wall
-O2
-fPIC
-include
./include/linux/compiler-version.h
-DPLUGIN_VERSION=\6.1.54' -I /usr/lib/gcc/x86_64-linux-gnu/11/plugin/include -I scripts/gcc-plugins -fno-rtti -fno-exceptions -fasynchronous-unwind-tables -ggdb -Wno-narrowing -Wno-unused-variable -Wno-format-diag -shared -o scripts/gcc-plugins/arm_ssp_per_task_plugin.so scripts/gcc-plugins/arm_ssp_per_task_plugin.c

The option highlighted seems to be the problem, because after I delete the contents of the file, the build is executed correctly and the highlighted option changes to this:

-I /home/daniel/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/10.3.1/plugin/include

It seems to me like after a restart the CROSS_COMPILE environment variable is not set up correctly.

It seems to me like after a restart the CROSS_COMPILE environment variable is not set up correctly.

Well, of course :). Env vars are not persistent cross reboots. You need to set them again or maybe just do it in your .bashrc (assuming you have bash) file and then you're done with it. As soon as you open a new terminal the env var will be set. Anyways, this clearly looks like an issue on your setup rather than an issue with the tree.... Closing the issue.

I set the cross_compile, but the change only took effect after manually clearing the file scripts/gcc-plugins/.arm_ssp_per_task_plugin.so.cmd