Created attachment 898397 [details] lzip tarball how_it_was_called.txt emerge_--info.txt /var/tmp/portage/dev-build/meson-1.4.1/{build-info/**,files/**,temp/**,work/**.log} elog /etc/portage/** /var/lib/portage/** ``` FAILED: prog nvcc -o prog prog.p/prog.cu.o -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 nvcc fatal : Unknown option '-Wl,-O1' ninja: build stopped: subcommand failed. ``` ``` Run-time dependency CUDA (modules: cudart_static, cublas) found: NO (tried system) test cases/cuda/11 cuda dependency (nvcc)/modules/meson.build:1:50: ERROR: Dependency "cuda" not found, tried system ``` Maybe we need to add a dependency or what I should install? nvidia-drivers are already installed, nvidia-cuda-toolkit too : ``` │ ~ equery l nvidia-cuda-toolkit * Searching for nvidia-cuda-toolkit ... [I-O] [ ] dev-util/nvidia-cuda-toolkit-12.4.0:0/12.4.0 │ ~ equery l nvidia-drivers * Searching for nvidia-drivers ... [IP-] [ ] x11-drivers/nvidia-drivers-560.28.03-r1:0/560 ```
I am not certain what to do about this other than to simply deselect all cuda tests from the ebuild. The cuda compiler strongly dislikes all LDFLAGS.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf408fd63c6aa6e9afd0546c4abdfc0990d9e6a2 commit bf408fd63c6aa6e9afd0546c4abdfc0990d9e6a2 Author: Eli Schwartz <eschwartz@gentoo.org> AuthorDate: 2024-07-29 00:32:45 +0000 Commit: Eli Schwartz <eschwartz@gentoo.org> CommitDate: 2024-07-29 01:19:07 +0000 dev-build/meson: disable CUDA tests If CUDA is installed, we try to test it and everything fails. The issue seems to be that CUDA simply cannot handle the use of LDFLAGS. It may be possible for meson to mangle these for you, but it currently does not. There's a tracking ticket for it. It's preferable to test common functionality rather than work around bugs. Just pretend CUDA doesn't exist as far as src_test is concerned. Closes: https://bugs.gentoo.org/936757 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org> dev-build/meson/meson-1.4.1.ebuild | 10 ++++++++++ dev-build/meson/meson-1.4.2.ebuild | 4 ++++ dev-build/meson/meson-1.5.0.ebuild | 4 ++++ dev-build/meson/meson-9999.ebuild | 4 ++++ 4 files changed, 22 insertions(+)