Ah yes, the age old problem of "Update your stuff"
We were using the defacto-gcc but Qt needs the 10 toolset. Once we did that, WSL had problems with all these bytes but we're passed the issue in this thread.
RUN dnf install gcc-toolset-10 -y
ENV CXX=/opt/rh/gcc-toolset-10/root/bin/g++
ENV CC=/opt/rh/gcc-toolset-10/root/bin/gcc
WORKDIR /build/python-pyside/pyside-setup
python setup.py ... # Same as above