Make sure engine is on the same commit as the flutter tool.
My flutter sdk is downloaded from the internet and placed in ~/src/github.com/flutter/sdk.
The engine source is under ~/src/engine.
# Go into the engine/src/flutter directory
cd ~/src/engine/src/flutter
git checkout `cat ~/src/github.com/flutter/sdk/flutter/bin/internal/engine.version`