I recently went through this problem with ubuntu 20.10 on a RPI4 and CM4 and even running GPIO -v simply SEGV's..
As long as you have the dependancies.. its simple enough to upgrade to WiringPI 2.6 which works..
#git clone firstname.lastname@example.org:WiringPi/WiringPi.git
At which point
root@ys:~/git/WiringPi# gpio -v
gpio version: 2.60