Looks like constructions I've seen in the Alps. They were put in dry riverbeds to slow down landslides or avalanches where they might threaten inhabited areas.
Many years ago, these two were waiting for fresh crews, to resume their eastward marches. Whitefish, Montana: