Firstly, Audacity does not officially support Raspberry Pi. It “may” work, but we have not tested on Raspberry Pi.
I think you might find Audacity 2.3.3 easier to build. I posted instructions for Debian here: https://forum.audacityteam.org/t/building-audacity-2-3-3-on-debian-ubuntu/54761/1