How to build cuda-gdb

I tried to build cuda-gdb on TX1. I was able to build it successfully (with some minor changes), but can’t run it. It crashed on startup with “Attempt to register unknown architecture (2)". Any clues?

Here is my configure line, that worked:
./configure --program-prefix=cuda-debug- --enable-cuda --enable-targets=“x86_64-unknown-linux-gnu,aarch64-unknown-linux-gnu” CFLAGS=’-I/usr/local/cuda/include -g’ LDFLAGS=’-lpthread’