error: variable 'kpack' set but not used [-Werror=unused-but-set-variable]