Fixing Phoronix Test Suite for Apple Silicon
So..... This is the sort of post that won't mean much to most people, but I think about three people who will be thankful. Right now, Phoronix Test Suite seems to be hard-coded for Intel. This means running many dependencies using x86 binaries and having Homebrew installed as x86 as well as arm64. The jump-off point for me was Phoronix Test Suite #110993 .
For a quick summary, brew
installs to /usr/local/
on x86 and /opt/homebrew/
on macOS. However, if you run, say, the pts/webp on an ARM64 Mac, regardless if you have already installed libjpeg
, it will complain:
This error message gives you the option to reinstall the missing dependencies. Seems great, until you try to use it. If you select option 3, if you already have the dependency installed, it'll report it as installed
After the test attempts to run, we can se that the dependency for jpeg is reporting as not compiled, and thus the test file for jpeg cannot to be read.
You'll need to go into /opt/homebrew/opt/phoronix-test-suite/
, the version number, 10.8.4
then open /share/phoronix-test-suite/pts-core/objects/client/pts_external_dependencies.php
and locate the $possible_paths
declarations (there should be two in all), and add to the array the following, '/opt/homebrew/opt/', '/opt/homebrew/include/', '/opt/homebrew/',
.
This will now enable Phoronix to search for the ARM64 binaries.
You may still encounter issues, I found that I needed to declare in the terminal session the following to run the webp test as libjpeg:
</section>