Ok, I updated the patch the COMPILER_VERSION issue (committed) and have a local patch for the Q_FOREACH problem based on a qt 5 commit:

https://github.com/qt/qtbase/commit/c35a3f519007af44c3b364b9af86f6a336f6411b

With both of those problems fixed the build still fails probably due to gcc 9 being more pedantic than previous versions.

With my scratch build[1] I'm getting this strange error that I don't get on a local mock build:

collect2: fatal error: cannot find 'ld'

So I'm pretty much out of my league at this point. I can commit the Q_FOREACH patch if needed.

Thanks,
Richard

[1] https://koji.fedoraproject.org/koji/taskinfo?taskID=33069763