Composite anomalies in supergravity