The latest release of nasm (2.15.01) emits errors and warnings on dav1d assembly code.
One error and these three warnings to be precise: -Wmacro-params-legacy -Wmacro-params-multi -Wlabel-orphan
Still digging in to see if this is a configuration issue.
Here a sample error:
nasm -DPIC -felf64 -W+error=all -Wno-macro-params-legacy -Wno-macro-params-multi -Wno-label-orphan -P ../../third_party/dav1d/config/linux/x64/config.asm -I../../third_party/dav1d/libdav1d/src// -I../../third_party/dav1d/config/linux/x64/ -I./ -I../../ -Igen/ -DSTACK_ALIGNMENT=32 -MD obj/third_party/dav1d/dav1d_asm/mc_sse.o.d -o obj/third_party/dav1d/dav1d_asm/mc_sse.o ../../third_party/dav1d/libdav1d/src/x86/mc_sse.asm
../../third_party/dav1d/libdav1d/src/x86/mc_sse.asm:5923: error: label `PREP_8TAP_HV_LOAD' inconsistently redefined
../../third_party/dav1d/libdav1d/src/x86/mc_sse.asm:2757: ... from macro `PREP_8TAP_HV' defined here
-Wmacro-params-legacy:
../../third_party/dav1d/libdav1d/src/x86/cpuid.asm:47: warning: dropping trailing empty parameter in call to multi-line macro `DEFINE_ARGS_INTERNAL' [-w+macro-params-legacy]
../../third_party/dav1d/libdav1d/src//ext/x86/x86inc.asm:574: ... from macro `PROLOGUE' defined here
-Wmacro-params-multi:
../../third_party/dav1d/libdav1d/src/x86/mc_sse.asm:5933: warning: multi-line macro `PREP_8TAP_HV_LOAD' exists, but not taking 0 parameters [-w+macro-params-multi]
../../third_party/dav1d/libdav1d/src/x86/mc_sse.asm:2757: ... from macro `PREP_8TAP_HV' defined here
-Wlabel-orphan:
nasm -DPIC -felf64 -W+error=all -Wno-macro-params-legacy -Wno-macro-params-multi -P ../../third_party/dav1d/config/linux/x64/config.asm -I../../third_party/dav1d/libdav1d/src// -I../../third_party/dav1d/config/linux/x64/ -I./ -I../../ -Igen/ -DSTACK_ALIGNMENT=32 -MD obj/third_party/dav1d/dav1d_asm/mc_sse.o.d -o obj/third_party/dav1d/dav1d_asm/mc_sse.o ../../third_party/dav1d/libdav1d/src/x86/mc_sse.asm
../../third_party/dav1d/libdav1d/src/x86/mc_sse.asm:5923: error: label alone on a line without a colon might be in error [-w+error=label-orphan]
../../third_party/dav1d/libdav1d/src/x86/mc_sse.asm:2757: ... from macro `PREP_8TAP_HV' defined here