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

Mark Himsley mark.himsley at gmail.com
Fri Apr 29 14:49:03 UTC 2022


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


gas in not liking the -D options, and is failing on the S of -DSTACK_ALIGNMENT.


Maybe I'm using a version of gas which is too old?
I'm using the gas which comes with Ubuntu 20.04.3 LTS.

/usr/bin/aarch64-linux-gnu-as --version
GNU assembler (GNU Binutils for Ubuntu) 2.34
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `aarch64-linux-gnu'.


Thanks.

-- 
Mark Himsley


More information about the x264-devel mailing list