You must have "compensation" (income from work) to make IRA contributions. Any amounts (other than combat pay) you exclude from income, such as foreign earned income and housing costs, is not considered compensation for IRA purposes.
Are you using the foreign earned income exclusion?