Spoiler (click to reveal)
If the benefit is a treasure card, you may take a treasure card from the advancement mat. If there are none there, there is no benefit, so no point in using that building.
Used treasure cards get put into the advancement card discard pile. The discard pile can get reshuffled if the draw pile runs out during the game.