/home/shahzad/arm/osmocom-bb/src/target/firmware/include/asm/swab.h:
Assembler messages:
/home/shahzad/arm/osmocom-bb/src/target/firmware/include/asm/swab.h:32:
Error: no such instruction: `eor %edx,%ecx,%ecx,ror'
Looks like a path
problem. Ensure the assembler (AS) for the target is
on-path; and not the host's assembler.
Read the error message and think about that one more time.
The problem is not the assembler but the header file.
The original poster isn't building against a cross-compiled libosmocore.
//Peter