[x264-devel] nasm: error: unrecognised option `-c'

Martin Storsjö martin at martin.st
Fri Apr 29 16:40:23 UTC 2022


On Fri, 29 Apr 2022, Mark Himsley wrote:

> On Fri, 29 Apr 2022 at 15:00, Luca Barbato <lu_zero at gentoo.org> wrote:
>> On 29/04/22 14:10, Mark Himsley wrote:
>> > Am I using the wrong assembler ?
>>
>> yes, aarch64 uses gas.
>
> Interesting, when I run configure having defined AS to be GNU AS :
>
> AS=/usr/bin/aarch64-linux-gnu-as ./configure --host=aarch64-linux-gnu
> --cross-prefix=aarch64-linux-gnu- --prefix=/opt/ffbuild
> --enable-static --disable-lavf --disable-opencl
>
>
> The make fails with a different error:
>
> /usr/bin/aarch64-linux-gnu-as -I. -I. -c -DSTACK_ALIGNMENT=16 -o
> common/aarch64/bitstream-a-8.o common/aarch64/bitstream-a.S
> -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8
> /usr/bin/aarch64-linux-gnu-as: invalid option -- 'S'
> make: *** [Makefile:306: common/aarch64/bitstream-a-8.o] Error 1

You shouldn't need to set AS at all. The tool here should be 
aarch64-linux-gnu-gcc (as it is given assembly that needs to be 
preprocessed) - but if you don't set AS at all, it should default to that 
too. (I wonder how you ended up with nasm in the first case?)

// Martin



More information about the x264-devel mailing list