OE4T / linux-tegra-5.10

NVIDIA downstream Linux kernel for Jetson platforms in single-repo form, derived from L4T R35.x series BSP
Other
16 stars 25 forks source link

two problems #14

Open Benyamin-AI-Blox opened 2 months ago

Benyamin-AI-Blox commented 2 months ago

Hi. I have two problems during the compilation of the code:

1-

codes/linux-tegra-5.10/nvidia/nvgpu/drivers/gpu/nvgpu/include/nvgpu/static_analysis.h:820:2: error: #error "__ARM_FEATURE_UNALIGNED not defined. Check static_analysis.h"
  820 | #error "__ARM_FEATURE_UNALIGNED not defined. Check static_analysis.h"

2-

drivers/dma/hsu/hsu.c:389:27: error: passing argument 1 of ‘spinlock_check’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  389 |         spin_lock_irqsave(&hsuc->vchan.lock, flags);
      |                           ^~~~~~~~~~~~~~~~~
      |                           |
      |                           raw_spinlock_t * {aka struct raw_spinlock *}

How can I resolve these two issues ?

I also added below line to the makefile:

KBUILD_CFLAGS   += $(call cc-option,-Werror=incompatible-pointer-types)

but didn't help.

thanks

madisongh commented 2 months ago

If you're attempting to cross-compile, did you follow the instructions on the wiki page? Based on the errors you're seeing, it looks like you're trying to build for an x86 target, which isn't really going to work with this kernel.