Nvcc fatal : failed to preprocess host compiler properties.

I'm using nvcc in a very standard way:

nvcc -ccbin g++ mycode.cu

And it's suddenly stopped working, giving the error:

nvcc fatal : Failed to detect host compiler properties

Why might this be?

asked Aug 25, 2019 at 18:40

Nvcc fatal : failed to preprocess host compiler properties.

In this case, the issue was caused by the root partition running out of memory, as verified by df -h:

/dev/nvme0n1p2      24G   23G     0 100% /

As a quick way to get memory back, I ran:

sudo apt clean

Which recovered 2.4GB.

After this, nvcc again works without problems.

answered Aug 25, 2019 at 18:41

Nvcc fatal : failed to preprocess host compiler properties.

RichardRichard

51.3k30 gold badges167 silver badges240 bronze badges

Not the answer you're looking for? Browse other questions tagged nvcc or ask your own question.