The name of Agadir originated from the Amazigh word Igudar, which are the collective granaries used as shelters for foodstuffs, livestock, as well as for harsh weather conditions.

Morocco to Include Agadir’s Igudar in UNESCO World Heritage
The name of Agadir originated from the Amazigh word Igoudar, which are the collective granaries used as shelters for foodstuffs, livestock, as well as for harsh weather conditions. @David Rodrigues