diff --git a/pyopencl/cache.py b/pyopencl/cache.py
index 670134e898d13e174733243b13e9e9bab4c2b449..48b6270edcdc107b1aa006b4202feb3e6a29b36f 100644
--- a/pyopencl/cache.py
+++ b/pyopencl/cache.py
@@ -374,7 +374,7 @@ def _create_built_program_from_source_cached(ctx, src, options_bytes,
             if log is not None and log.strip())
 
     if message:
-        from pyopencl.cffi_cl import compiler_output
+        from pyopencl import compiler_output
         compiler_output(
                 "Built kernel retrieved from cache. Original from-source "
                 "build had warnings:\n"+message)