gcc6 does not like it, if -isystem /usr/include is last (or at all?) in the list of -isystem paths. Just removing this path from the QMAKE_DEFAULT_INCDIRS solves problems when compiling packages depending on qt5.