OE4T / meta-tegra

BSP layer for NVIDIA Jetson platforms, based on L4T
MIT License
384 stars 215 forks source link

cuda-nvvm: update recipe #1558

Closed ichergui closed 1 month ago

ichergui commented 1 month ago
ichergui commented 1 month ago

Using mv is very sensitive and easy to fail. For example, this specific case will fail if you run the same task more than 1 time.

bitbake cuda-nvvm -c do_compile -f

Thanks @quaresmajose

ichergui commented 1 month ago

@madisongh Kindly see the following logs

ERROR: cuda-nvvm-12.2.140-1-r0 do_package: QA Issue: cuda-nvvm: Files/directories were installed but not shipped in any package:
  /usr
  /usr/local
  /usr/local/cuda-12.2
  /usr/local/cuda-12.2/nvvm
  /usr/local/cuda-12.2/nvvm/bin
  /usr/local/cuda-12.2/nvvm/libdevice
  /usr/local/cuda-12.2/nvvm/include
  /usr/local/cuda-12.2/nvvm/lib64
  /usr/local/cuda-12.2/nvvm/bin/cicc
  /usr/local/cuda-12.2/nvvm/libdevice/libdevice.10.bc
  /usr/local/cuda-12.2/nvvm/include/nvvm.h
  /usr/local/cuda-12.2/nvvm/lib64/libnvvm.so
  /usr/local/cuda-12.2/nvvm/lib64/libnvvm.so.4.0.0
  /usr/local/cuda-12.2/nvvm/lib64/libnvvm.so.4
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
cuda-nvvm: 14 installed and not shipped files. [installed-vs-shipped]

This is the issue I'm trying to fix. I can override the install task instead of adding prepend to compile task.

madisongh commented 1 month ago

Better fix is to set FILES:${PN} similar to what's in the cuda-nvcc recipe.

ichergui commented 1 month ago

I will update the recipe