I was able to reproduce the bug when I tried again. I must have made an error in my previous attempt.

The underlying problem seems to date back to the introduction of opencl-c-base.h in LLVM 9. The PCH loading for comgr was written at a time when opencl-c.h was a stand-alone file and it seems that it never got updated when that changed.

This can be fixed by adding a Depends on libclang-common-21-dev to provide opencl-c-base.h, though I wonder if the better thing to do would be to bundle opencl-c-base.h into the PCH. The status quo of half PCH and half regular includes seems like the worst of both worlds.

I'll probably just add a Depends on libclang-common-21-dev for now and raise the matter upstream.

Sincerely,
Cory Bloor

Reply via email to