Due to the cuda
package not placing the nvcc
binary in /usr/bin
and not all shell can read /etc/profile
, may encounter the following error during build:
ERROR: failed checking for nvcc.
You can resolve this issue by adding the following variable to the build()
, which can be found in /etc/profile.d/cuda.sh
:
export PATH="/opt/cuda/bin:$PATH"
export NVCC_CCBIN='/usr/bin/g++-13'
Hopeing this helps others facing the same issue.
Pinned Comments
dbermond commented on 2024-06-24 15:59 (UTC)
@LordSIGSEGV avoid creating files not tracked by pacman in the system reserved directories, specially symlinks to shared libraries, as this have the potential to completely break your system. I have already notified the quirc maintainer in the aur web page of the package in April-2024. While this issue is not solved in quirc, I recommend to use quirc-git, which currently has a better packaging and does not suffer from this problem.