I’m attempting to compile the kernel via the instructions here:
I get the following error:
cc1: error: include location "/usr/local/include/external" is unsafe for cross-compilation [-Werror=poison-system-directories] cc1: all warnings being treated as errors /home/sam/tmp-nvidia/Drive/5050bL_SDK/DriveSDK/drive-oss-src/kernel/scripts/Makefile.build:296: recipe for target 'crypto/api.o' failed make: *** [crypto/api.o] Error 1 /home/sam/tmp-nvidia/Drive/5050bL_SDK/DriveSDK/drive-oss-src/kernel/Makefile:994: recipe for target 'crypto' failed make: *** [crypto] Error 2 make: Leaving directory '/home/sam/tmp-nvidia/Drive/5050bL_SDK/DriveSDK/drive-oss-src/out-t186ref-linux' Makefile:150: recipe for target 'sub-make' failed
The clue seems to be the “…is unsafe for cross-compilation…”
Is there something that needs to be set or unset?