Compiler panics when targeting NVPTX

I’m trying to write CUDA kernels in zig, however I cannot even compile an empty file. I tried:

zig build-exe -target nvptx-freestanding -mcpu sm_30 empty.zig

it fails with

TODO implement mapping for c_longdoublethread 86440 panic: 
Unable to dump stack trace: debug info stripped

So is NVPTX targets not fully supported yet? Or I’m missing some options?

that means its missing some of the boilerplate needed for codegen to properly work in stage1