[x264-devel] nasm: error: unrecognised option `-c'
Mark Himsley
mark.himsley at gmail.com
Fri Apr 29 12:10:18 UTC 2022
I'm cross-compiling libx264 on x86_64-pc-linux-gnu for aarch64-linux-gnu.
This is how I configure:
./configure --host=aarch64-linux-gnu --cross-prefix=aarch64-linux-gnu-
--prefix=/opt/ffbuild --enable-static --disable-lavf --disable-opencl
When I make the build fails here:
/usr/bin/aarch64-linux-gnu-nasm -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
nasm: error: unrecognised option `-c'
type `nasm -h' for help
make: *** [Makefile:306: common/aarch64/bitstream-a-8.o] Error 1
It's only in the parts of configure which detect ARM processors that
-c is added to ASFLAGS, lines 985 and 1000, so I've never seen this
error when previously compiling for x86_64-pc-linux-gnu.
Looking through config.log I also see the same error:
--------------------------------------------------
__attribute__((force_align_arg_pointer))
int main (void) { return 0; }
--------------------------------------------------
checking whether /usr/bin/aarch64-linux-gnu-gcc supports __asm__("cmeq
v0.8h, v0.8h, #0");... yes
checking whether /usr/bin/aarch64-linux-gnu-nasm supports .func test
.endfunc... no
Failed commandline was:
--------------------------------------------------
/usr/bin/aarch64-linux-gnu-nasm conftest.S -I. -I$(SRCPATH) -c -o conftest.o
nasm: error: unrecognised option `-c'
type `nasm -h' for help
--------------------------------------------------
Failed program was:
--------------------------------------------------
.func test
.endfunc
Am I using the wrong assembler ?
Thanks.
--
Mark Himsley
More information about the x264-devel
mailing list