Ok I solved it.
Originally Posted by latebeat
The problem is that for some reason, gcc is not including the libraries that aio-stress requires to compile. You can see this by compiling the aio-stress.c file manually with the additional flags: "-laio" and "-lpthread"
Doing this will result in a working aio-stress binary, so you need to pass these flags to the main system gcc when it used by phoronix.
This is how I did it:
First, make sure that libaio-dev is installed
Then re-name gcc "gcc1"
sudo apt-get install libaio-dev
Then create a file named "gcc" and paste in this python code:
sudo mv /usr/bin/gcc /usr/bin/gcc1
sudo vim /usr/bin/gcc
Finally, set the correct permissions:
args = ['gcc1']
if __name__ == '__main__':
Then you should be able to install the test successfully:
sudo chmod +x /usr/bin/gcc
NOTE: Obviously this will change the system-wide gcc to include the two libraries "laio" and "pthread". Once the test has been successfully installed, you can put gcc back to normal with:
phoronix-test-suite install-test pts/aio-stress
Hope this is helpful! I'm so pleased to have this finally working!
sudo mv /usr/bin/gcc1 /usr/bin/gcc