I think you need to modify line 22 to prevent the following error.
arch-meson "$pkgname-$pkgver" builddir -Db_pie=false -Dcuda_link_args=[] -Db_lto=false
Error:
ninja: Entering directory `/build/wicuvanity/src/builddir'
[1/2] Compiling Cuda object wicuvanity.p/main.cu.o
[2/2] Linking target wicuvanity
FAILED: [code=1] wicuvanity
nvcc -o wicuvanity wicuvanity.p/main.cu.o -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto
nvcc fatal : Unknown option '-Wl,-O1'
ninja: build stopped: subcommand failed.
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /build/wicuvanity/src/builddir
Pinned Comments
shtrophic commented on 2024-11-01 23:18 (UTC) (edited on 2024-11-04 09:55 (UTC) by shtrophic)
For issues where
mesonsays thatnvcccan't compile programs:Can you
source /etc/profile.d/cuda.shand try again? I had this issue as well and in the end it seemed to have been about environment variables