Do you happen to have old qmake-qt3 in path? Could you paste a full compiler command, please?