Subject: | Build failed on Pi2/Debian Jessie for Exec.pm |
On a Raspberry Pi Model 2 with the latest Jessie image, the build fails with the following:
Exec.pm can't find _compress_buffer() function (from Exec.xs)
Exec.pm contains the line:
XSLoader::load 'HiPi::Utils::Exec', $VERSION if is_raspberry;
I checked the is_raspberry() function (from HiPi::Utils), and it's set by checking if /proc/cpuinfo matches /BCM2708/. The Pi2 uses the BCM2709, so it fails to match.
I was able to fix it by changing it to /BCM270[89]/. I'm also thinking there must be a better way to set this flag (since it will break again with another CPU revision), though I'm not sure what that would be.