sanity: Add sanity test for 'bad' gcc installs on ubuntu 24.04
Installing emacs on Ubuntu 24.04 pulls in emacs-gtk which leads to libgcc-14-dev
despite gcc being 13. This breaks libcxx-native and compiler-rt-native builds.
We've tried various ways of addressing this buit they don't work. Instead, detect
this situation and tell the user to either install or remove a package.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>