samplerCubeShadow doesn't work, "Sampler object 1 does not have depth compare enabled"

I tested the code above on another PC, I get the same results:
Hard shadows work, but when I switch to samplerCubeShadow, I don’t get any shadows any more…