libvpx fails to compile on ~x86_64 Reproducible: Always Steps to Reproduce: 1. emerge libvpx 2. 3. Actual Results: Failed compilation Expected Results: Successful compilation Specific point of compile failure: x86_64-pc-linux-gnu-g++ -L. -Wl,-O1 -Wl,--as-needed -m64 -o examples/vp9_spatial_svc_encoder args.c.o ivfenc.c.o y4minput.c.o tools_common.c.o video_writer.c.o vpxstats.c.o examples/svc_encodeframe.c.o examples/vp9_spatial_svc_encoder.c.o -lvpx -lm -lpthread /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: examples/vp9_spatial_svc_encoder.c.o: in function `sum_squares_visible': vp9_spatial_svc_encoder.c:(.text+0xd98): undefined reference to `num_4x4_blocks_wide_lookup' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: vp9_spatial_svc_encoder.c:(.text+0xdaf): undefined reference to `num_4x4_blocks_high_lookup' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: vp9_spatial_svc_encoder.c:(.text+0xdc6): undefined reference to `num_4x4_blocks_wide_lookup' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: vp9_spatial_svc_encoder.c:(.text+0xddd): undefined reference to `num_4x4_blocks_high_lookup' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: vp9_spatial_svc_encoder.c:(.text+0xe5c): undefined reference to `vpx_sum_squares_2d_i16_sse2' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: vp9_spatial_svc_encoder.c:(.text+0xef0): undefined reference to `vpx_sum_squares_2d_i16_sse2' collect2: error: ld returned 1 exit status make[1]: *** [/var/tmp/portage/media-libs/libvpx-1.14.0/work/libvpx-1.14.0/examples.mk:338: examples/vp9_spatial_svc_encoder] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:17: .DEFAULT] Error 2 * ERROR: media-libs/libvpx-1.14.0::gentoo failed (compile phase): * emake failed
Created attachment 884577 [details] emerge --info
>CFLAGS="-march=znver2 --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512" Seems it doesn't react well to being compiled without optimizations, try adding -O2 to your CFLAGS and CXXFLAGS.
Well I'll be... That solved it, thank you. Never expected that to be a possible cause of failure.