The following reasons are possible:
1. You tried to assign a role to itself.
2. You tried to assign role definitions cyclically.
Check for a typing error. If you do not find any, check whether the roles that would result in the cycle can be combined into one role.