It turns out that the "invalid argument type 'X *' to unary expression" compiler error is the result of a known bug in LLVM. See here for details:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857623 The "unsupported call to function get_local_size" compiler error is the result of a known bug in Mesa. See here for details: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857591 Patches are available upstream for both of those problems, as I have explained in the above two bug reports. -- Ian Bruce