In theory if you copy the contents of contrib archive into AROS directory, compiler should run out of the box - it should be alredy correctly configured. At least that's how it works on x86_64. To be on a safe side, set 128MB RAM and 512KB stack for gcc/g++ to work.