ld.lld: error: undefined symbol: ff_yuv2yuv_422p10to8_sse2 >>> referenced by colorspacedsp_init.c:96 (/src/ffmpeg/libavfilter/x86/colorspacedsp_init.c:96) >>> colorspacedsp_init.o:(ff_colorspacedsp_x86_init) in archive libavfilter/libavfilter.a
ld.lld: error: undefined symbol: ff_yuv2yuv_422p10to10_sse2 >>> referenced by colorspacedsp_init.c:96 (/src/ffmpeg/libavfilter/x86/colorspacedsp_init.c:96) >>> colorspacedsp_init.o:(ff_colorspacedsp_x86_init) in archive libavfilter/libavfilter.a
ld.lld: error: undefined symbol: ff_yuv2yuv_422p10to12_sse2 >>> referenced by colorspacedsp_init.c:96 (/src/ffmpeg/libavfilter/x86/colorspacedsp_init.c:96) >>> colorspacedsp_init.o:(ff_colorspacedsp_x86_init) in archive libavfilter/libavfilter.a
ld.lld: error: undefined symbol: ff_yuv2yuv_422p12to8_sse2 >>> referenced by colorspacedsp_init.c:96 (/src/ffmpeg/libavfilter/x86/colorspacedsp_init.c:96) >>> colorspacedsp_init.o:(ff_colorspacedsp_x86_init) in archive libavfilter/libavfilter.a
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors) clang++: error: linker command failed with exit code 1 (use -v to see invocation)
root@2c0808a63794:/src/ffmpeg# nm -g /tmp/ffconf.0T9GnOK3/test.o 0000000000000008 C ___asan_globals_registered U __asan_init U __asan_register_elf_globals U __asan_unregister_elf_globals U __asan_version_mismatch_check_v8 0000000000000000 B __odr_asan_gen_ff_extern w __start_asan_globals w __stop_asan_globals 0000000000000000 B ff_extern
正常的构建
1 2 3 4 5 6
root@c043e1ed694c:/src# nm -g /tmp/ffconf.OTqSYv4r/test.o U __asan_init U __asan_register_globals U __asan_unregister_globals U __asan_version_mismatch_check_v8 0000000000000000 B ff_extern