You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Library generated with nvcc do not work as link_with arguments.
To Reproduce
I generate a library with some cuda included. The compiler that generates the problematic target is nvcc. I then use executable(... link_with: the_library, ...) but this argument is not respected. i get undefined symbol.... when running the test executable and ldd shows it's not linked. The same general procedure works with gcc and clang.
source code to reproduce is here (requires a tegra board).
excerpt from my library's .build in src/meson.build
@mdegans Could you cut down the test case a bit more, see if you can isolate it from Tegra and JetPack? I don't have a board, and JetPack is a rather big and involved thing to install.
You could start from my own attempt at a minimal reproducer, which I believe to be similar to your codebase in every relevant sense. However, it simply doesn't fail at all, never mind in the way you describe.
Be aware that my testing has been with my work in #8355 merged in. It may be that this is no longer reproducible. If it is not, then you may presumably close this issue; If it is, then it would be helpful to see the full output of ninja clean; ninja -v.
Describe the bug
Library generated with nvcc do not work as
link_with
arguments.To Reproduce
I generate a library with some cuda included. The compiler that generates the problematic target is nvcc. I then use
executable(... link_with: the_library, ...)
but this argument is not respected. i getundefined symbol....
when running the test executable andldd
shows it's not linked. The same general procedure works with gcc and clang.source code to reproduce is here (requires a tegra board).
excerpt from my library's .build in
src/meson.build
test/meson.build has:
when a test is run:
test/test_capture: symbol lookup error: test/test_capture: undefined symbol: _ZTVN7nvcvcam7NvCvCamE
.. and
ldd
shows it's not linkedExpected behavior
a library target generated with cuda to be usable in
executable
withlink_with
system parameters
The text was updated successfully, but these errors were encountered: