It’s possible that some dependencies were not properly installed or configured. Try running the following commands to ensure that all necessary dependencies are installed before running the build:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get install libasound2-dev
sudo apt-get install cmake