compatibility issues with nasm 2.15.01 on macOS
try to build x264 on macOS by using homebrew
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
okteto
step
==> Cloning https://code.videolan.org/videolan/x264.git
Updating /Users/jnozsc/Library/Caches/Homebrew/x264--git
==> Checking out revision 296494a4011f58f32adc54304a2654627558c59a
HEAD is now at 296494a4 Fix error "invalid size of malloc" for 10-bit encodes at i686
==> ./configure --prefix=/usr/local/Cellar/x264/r2999 --disable-lsmash --disable-swscale --disable-ffms --enable-shared --enable-static --enable-strip
==> make install
Last 15 lines from /Users/jnozsc/Library/Logs/Homebrew/x264/02.make:
clang -Wshadow -O3 -ffast-math -m64 -fno-stack-check -Wall -I. -I. -mdynamic-no-pic -arch x86_64 -std=gnu99 -D_GNU_SOURCE -mstack-alignment=64 -fPIC -fomit-frame-pointer -fno-tree-vectorize -fvisibility=hidden -DX264_API_EXPORTS -c encoder/me.c -o encoder/me-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10
clang -Wshadow -O3 -ffast-math -m64 -fno-stack-check -Wall -I. -I. -mdynamic-no-pic -arch x86_64 -std=gnu99 -D_GNU_SOURCE -mstack-alignment=64 -fPIC -fomit-frame-pointer -fno-tree-vectorize -fvisibility=hidden -DX264_API_EXPORTS -c encoder/ratecontrol.c -o encoder/ratecontrol-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10
clang -Wshadow -O3 -ffast-math -m64 -fno-stack-check -Wall -I. -I. -mdynamic-no-pic -arch x86_64 -std=gnu99 -D_GNU_SOURCE -mstack-alignment=64 -fPIC -fomit-frame-pointer -fno-tree-vectorize -fvisibility=hidden -DX264_API_EXPORTS -c encoder/set.c -o encoder/set-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10
clang -Wshadow -O3 -ffast-math -m64 -fno-stack-check -Wall -I. -I. -mdynamic-no-pic -arch x86_64 -std=gnu99 -D_GNU_SOURCE -mstack-alignment=64 -fPIC -fomit-frame-pointer -fno-tree-vectorize -fvisibility=hidden -DX264_API_EXPORTS -c encoder/macroblock.c -o encoder/macroblock-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10
clang -Wshadow -O3 -ffast-math -m64 -fno-stack-check -Wall -I. -I. -mdynamic-no-pic -arch x86_64 -std=gnu99 -D_GNU_SOURCE -mstack-alignment=64 -fPIC -fomit-frame-pointer -fno-tree-vectorize -fvisibility=hidden -DX264_API_EXPORTS -c encoder/cabac.c -o encoder/cabac-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10
clang -Wshadow -O3 -ffast-math -m64 -fno-stack-check -Wall -I. -I. -mdynamic-no-pic -arch x86_64 -std=gnu99 -D_GNU_SOURCE -mstack-alignment=64 -fPIC -fomit-frame-pointer -fno-tree-vectorize -fvisibility=hidden -DX264_API_EXPORTS -c encoder/cavlc.c -o encoder/cavlc-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10
clang -Wshadow -O3 -ffast-math -m64 -fno-stack-check -Wall -I. -I. -mdynamic-no-pic -arch x86_64 -std=gnu99 -D_GNU_SOURCE -mstack-alignment=64 -fPIC -fomit-frame-pointer -fno-tree-vectorize -fvisibility=hidden -DX264_API_EXPORTS -c encoder/encoder.c -o encoder/encoder-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10
clang -Wshadow -O3 -ffast-math -m64 -fno-stack-check -Wall -I. -I. -mdynamic-no-pic -arch x86_64 -std=gnu99 -D_GNU_SOURCE -mstack-alignment=64 -fPIC -fomit-frame-pointer -fno-tree-vectorize -fvisibility=hidden -DX264_API_EXPORTS -c encoder/lookahead.c -o encoder/lookahead-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10
clang -Wshadow -O3 -ffast-math -m64 -fno-stack-check -Wall -I. -I. -mdynamic-no-pic -arch x86_64 -std=gnu99 -D_GNU_SOURCE -mstack-alignment=64 -fPIC -fomit-frame-pointer -fno-tree-vectorize -fvisibility=hidden -DX264_API_EXPORTS -c common/threadpool.c -o common/threadpool-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10
clang -Wshadow -O3 -ffast-math -m64 -fno-stack-check -Wall -I. -I. -mdynamic-no-pic -arch x86_64 -std=gnu99 -D_GNU_SOURCE -mstack-alignment=64 -fPIC -fomit-frame-pointer -fno-tree-vectorize -fvisibility=hidden -DX264_API_EXPORTS -c common/x86/mc-c.c -o common/x86/mc-c-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10
clang -Wshadow -O3 -ffast-math -m64 -fno-stack-check -Wall -I. -I. -mdynamic-no-pic -arch x86_64 -std=gnu99 -D_GNU_SOURCE -mstack-alignment=64 -fPIC -fomit-frame-pointer -fno-tree-vectorize -fvisibility=hidden -DX264_API_EXPORTS -c common/x86/predict-c.c -o common/x86/predict-c-10.o -DHIGH_BIT_DEPTH=1 -DBIT_DEPTH=10
nasm -I. -I. -DARCH_X86_64=1 -I./common/x86/ -f macho64 -DPREFIX -DSTACK_ALIGNMENT=64 -DPIC -o common/x86/cpu-a.o common/x86/cpu-a.asm
critical: common/x86/cpu-a.asm:35: out of memory!
make: *** [common/x86/cpu-a.o] Error 2
make: *** Waiting for unfinished jobs....
I meet the same issue on both stable
branch and master
branch