This means that your spec or upstream build script contain a word which doesn't belong to system command or RPM macro, and in this case RPM will show such error.

Also, I see something not good in the build log is that you didn't disable the silent build, I see many CXX or LD but no details displayed. Please disable the silent build to help check if the flags has been inserted correctly.