The Building Commissioner/Inspector of Buildings shall execute the provisions of this chapter, except when otherwise provided, and in so doing he shall have the same powers as are provided for the execution of the building ordinances of the City. He shall issue no permit for the construction, alteration, enlargement, reconstruction, raising up, moving or use of any building, structure or premises, or part thereof, which would be in violation of the provisions of this chapter or of MGL c. 40A.