Are you sure this is a GCC (GAS) error? Usually GAS assembly files have a .S suffix and NASM etc use .asm. Of course it is not a hard and fast rule. If NASM, the usual fix is to do more passes, -O2 IIRC.
If using silent rules like too much stuff does now, set V=1 or make V=1 will display the whole command, perhaps post it