2 looks like somewhere in USA because of the way the locomotive numbers are displayed on the angled boxes just behind the chimney.
Perhaps San Bernardino, California?
Probably ... This is certainly a workshop of the Atchison, Topeka, and Santa Fe Railroad, but there is some disagreement on where.
A sharper image of that photograph appears on
Flickr (Tom Wigley), and following the reference data it was copied from
Shorpy, and then onto Pinterest, wheelsmuseum, and
The Guide to New Mexico Architecture - the section on the Albuquerque Rail Yards of the Atchison, Topeka, & Santa Fe Railway. As it gives no further source reference, you might think the one on Shorpy is the original. But no - it is in the
Library of Congress (and like almost all US government material it is public domain).
The Guide to New Mexico Architecture has it as:
Erecting Bay of the Machine Shop with a Full House of Locomotives to be Repaired. Looking West. Seeking information about photographer and date.There are other photos here of the Erecting Bay of the Machine Shop of the Albuquerque Rail Yards, which do look like the same building. But when you look closely there are some small differences. As this was a modular construction, using factory-made frames, with standard equipment including things like the gantry cranes, I can believe that the AT&SFRR built two nearly identical ones in Albuquerque (much of which survives) and San Bernardino (which was entirely demolished).