LDFLAGS are passed along with CFLAGS directly to `nvcc` via `-Xcompiler`, and it treats arguments containing commas (such as `-Wl,-z,now`) as separate flags (`-Wl -z now`), causing a build error. Perhaps escaping commas in *FLAGS passed to `nvcc` would help. Source: https://gitlab.kitware.com/cmake/cmake/-/issues/23069
Please attach the build log and emerge --info.
Please attach the requested logs and reopen. I can't reproduce this. And I have nothing else to check for.