<div dir="ltr">I'm relatively new to native development and have a question about a build error related to yasm on MacOS.<div><br></div><div>I ran the following commands to build libav on a new Big Sur install after installing xcode command line tools:</div><div><br></div><div>```</div><div>brew install yasm</div><div>brew install pkg-config</div><div>./configure --disable-everything --enable-libvpx --enable-encoder=libvpx_vp8 --enable-encoder=libvpx_vp9 --enable-muxer=webm<br></div><div>make</div><div>```</div><div><br></div><div>This installed yasm 1.3.0 and pkg-config 0.29.2.</div><div><br></div><div>And I get this error from make:</div><div><br></div><div>```</div><div>libavutil/x86/tx_float.asm:842: error: undefined symbol `ff_cos_32_float' (first use)<br>libavutil/x86/tx_float.asm:842: error:  (Each undefined symbol is reported only once.)<br>libavutil/x86/tx_float.asm:1210: error: undefined symbol `ff_cos_64_float' (first use)<br>libavutil/x86/tx_float.asm:1210: error: undefined symbol `ff_cos_128_float' (first use)<br>libavutil/x86/tx_float.asm:1210: error: undefined symbol `ff_cos_256_float' (first use)<br>libavutil/x86/tx_float.asm:1210: error: undefined symbol `ff_cos_512_float' (first use)<br>libavutil/x86/tx_float.asm:1210: error: undefined symbol `ff_cos_1024_float' (first use)<br>libavutil/x86/tx_float.asm:1210: error: undefined symbol `ff_cos_2048_float' (first use)<br>libavutil/x86/tx_float.asm:1210: error: undefined symbol `ff_cos_4096_float' (first use)<br>libavutil/x86/tx_float.asm:1210: error: undefined symbol `ff_cos_8192_float' (first use)<br>libavutil/x86/tx_float.asm:1210: error: undefined symbol `ff_cos_16384_float' (first use)<br>libavutil/x86/tx_float.asm:1210: error: undefined symbol `ff_cos_32768_float' (first use)<br>libavutil/x86/tx_float.asm:1210: error: undefined symbol `ff_cos_65536_float' (first use)<br>libavutil/x86/tx_float.asm:1210: error: undefined symbol `ff_cos_131072_float' (first use)<br>make: *** [libavutil/x86/tx_float.o] Error 1<br></div><div>```</div><div><br></div><div>This line (42) in tx_float.asm seems to provide the undefined symbol but truth be told I've never worked with a project using asm and not sure from what I've seen what the problem is.</div><div><pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:"JetBrains Mono",monospace;font-size:9.8pt"><span style="color:rgb(204,120,50)">cextern </span>cos_ <span style="color:rgb(204,120,50)">%</span>+ i <span style="color:rgb(204,120,50)">%</span>+ _float <span style="color:rgb(128,128,128)">; ff_cos_i_float...</span></pre></div></div>