Maybe some timestamp won't match anymore after logout/login. Use verbose build to se what it's doing. Maybe even try ccache if that might help recompiles.