Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936757 - dev-build/meson-1.4.1 test fail : 17 tests failed all with cuda
Summary: dev-build/meson-1.4.1 test fail : 17 tests failed all with cuda
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-27 08:13 UTC by Arniii
Modified: 2024-07-29 01:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
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/** (meson-1.4.1.tar.lz,203.91 KB, application/x-lzip)
2024-07-27 08:13 UTC, Arniii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arniii 2024-07-27 08:13:46 UTC
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

```
Comment 1 Eli Schwartz gentoo-dev 2024-07-28 15:43:27 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2024-07-29 01:19:43 UTC
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(+)