'nvlink fatal : Could not open input file' when linking with empty static library

One possible temporary solution is mentionned here:

In your cmake project build dir, just do the following:

touch empty.c
gcc -fpic -c empty.c
ar rcsv libdl.a empty.o
it create an empty valid lib

Then just rerun cmake configure with flags : -DLIBDL_LIBRARY=$PWD/libdl.a
I believe this problem will be fixed in a future release of cuda toolkit for OS with libc >= 2.34

2 Likes