https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109904
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >--enable-offload-targets=nvptx-none I suspect this might be the issue. offloading only works with targets that have dlopen . Maybe you need to link with -ldl to get it working.