Building ROS2 master on Ubuntu 16 fails

I tried a fresh build in a container yesterday evening and could not reproduce this issue.
Just to clarify, did you try to remove your build folder before recompiling ?
Do you have the exact same error after your fresh checkout ?
If you run vcs status --hide in your source directory, do you have any outstanding changes on this packages or its dependencies?