ITADN

The linker reported multiple undefined symbols

#56Closed5-Super-Rookie-5 创建于 2025-07-10
FAILED: libchrome_main_web.so libchrome_main_web.so.TOC lib.unstripped/libchrome_main_web.so "python3" "../../build/toolchain/gcc_solink_wrapper.py" --readelf="../../ohos_sdk/openharmony/native/llvm/bin/llvm-readobj" --nm="../../ohos_sdk/openharmony/native/llvm/bin/llvm-nm" --strip=../../ohos_sdk/openharmony/native/llvm/bin/llvm-strip --sofile="./lib.unstripped/libchrome_main_web.so" --tocfile="./libchrome_main_web.so.TOC" --output="./libchrome_main_web.so" -- ../../ohos_sdk/openharmony/native/llvm/bin/clang++ -shared -Wl,-soname="libchrome_main_web.so" -Werror -fuse-ld=lld -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -w -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -flto=thin -Wl,--thinlto-jobs=all -Wl,-mllvm,-import-instr-limit=100 -Wl,-mllvm,-inlinehint-threshold=360 -fwhole-program-vtables -Wl,--undefined-version -Wl,--no-call-graph-profile-sort -Wl,--exclude-libs=libgcc.a -Wl,--no-undefined -Wl,--exclude-libs=libunwind_llvm.a -Wl,--exclude-libs=libc++_static.a -Wl,--exclude-libs=libvpx_assembly_arm.a --target=x86_64-linux-ohos -m64 -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections -Wl,-z,defs -Wl,--as-needed --sysroot=../../ohos_sdk/native/5.0.5.165/sysroot/ -Wl,-z,max-page-size=4096 -Wl,--hash-style=gnu -L../../ohos_sdk/native/5.0.5.165/sysroot/usr/lib/x86_64-linux-ohos -L../../ohos_sdk/native/5.0.5.165/llvm/lib/x86_64-linux-ohos -L../../ohos_sdk/native/5.0.5.165/llvm/lib/clang/19/lib/x86_64-linux-ohos -Wl,--dynamic-linker,/lib/ld-musl-x86_64.so.1 -Wl,--warn-shared-textrel -Wl,--lto-O2 -fsanitize=cfi-vcall -fsanitize=cfi-icall -Wl,-wrap,calloc -Wl,-wrap,free -Wl,-wrap,malloc -Wl,-wrap,memalign -Wl,-wrap,posix_memalign -Wl,-wrap,pvalloc -Wl,-wrap,realloc -Wl,-wrap,valloc -Wl,-wrap,malloc_usable_size -Wl,-wrap,realpath -Wl,-wrap,strdup -Wl,-wrap,strndup -Wl,-wrap,getcwd -Wl,-wrap,asprintf -Wl,-wrap,vasprintf -o "./lib.unstripped/libchrome_main_web.so" @"./libchrome_main_web.so.rsp" obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libstd_std.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/liballoc_alloc.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libcompiler_builtins_compiler_builtins.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/librustc_std_workspace_core_rustc_std_workspace_core.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libcore_core.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libprofiler_builtins_profiler_builtins.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libcfg_if_cfg_if.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libhashbrown_hashbrown.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/librustc_std_workspace_alloc_rustc_std_workspace_alloc.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libmemchr_memchr.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libpanic_abort_panic_abort.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/liblibc_libc.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libpanic_unwind_panic_unwind.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libunwind_unwind.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/librustc_demangle_rustc_demangle.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libstd_detect_std_detect.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libaddr2line_addr2line.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libgimli_gimli.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libminiz_oxide_miniz_oxide.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libadler_adler.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libobject_object.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libgetopts_getopts.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/librustc_std_workspace_std_rustc_std_workspace_std.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libunicode_width_unicode_width.rlib local_rustc_sysroot/lib/rustlib/x86_64-unknown-linux-ohos/lib/libtest_test.rlib obj/base/libbase_crust_ulogger.rlib obj/base/libbase_clogging_ulog_useverity_ubindgen.rlib obj/build/rust/chromium_prelude/libchromium.rlib obj/base/libbase_clogging_urust_ulog_uintegration_ubindgen.rlib obj/third_party/rust/log/v0_4/lib/liblog_lib.rlib obj/third_party/rust/serde_json_lenient/v0_2/wrapper/libthird_uparty_srust_sserde_ujson_ulenient_sv0_u2_swrapper_cwrapper.rlib obj/third_party/rust/serde/v1/lib/libserde_lib.rlib obj/third_party/rust/serde_json_lenient/v0_2/lib/libserde_json_lenient_lib.rlib obj/third_party/rust/itoa/v1/lib/libitoa_lib.rlib obj/third_party/rust/ryu/v1/lib/libryu_lib.rlib obj/skia/libskia_cbridge_urust_uside.rlib obj/third_party/rust/font_types/v0_7/lib/libfont_types_lib.rlib obj/third_party/rust/bytemuck/v1/lib/libbytemuck_lib.rlib obj/third_party/rust/read_fonts/v0_23/lib/libread_fonts_lib.rlib obj/third_party/rust/skrifa/v0_24/lib/libskrifa_lib.rlib obj/third_party/blink/common/rust_crash/libthird_uparty_sblink_scommon_srust_ucrash_crs.rlib obj/third_party/crabbyavif/libthird_uparty_scrabbyavif_ccrabbyavif.rlib obj/third_party/crabbyavif/libdav1d_sys.rlib obj/third_party/crabbyavif/liblibyuv_sys.rlib obj/third_party/rust/libc/v0_2/lib/liblibc_lib.rlib ld.lld: error: undefined symbol: jsimd_extrgb_ycc_convert_avx2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) >>> did you mean: _jsimd_extrgb_ycc_convert_avx2 >>> defined in: obj/third_party/libjpeg_turbo/libsimd_asm.a(simd_asm/jccolor-avx2.o) ld.lld: error: undefined symbol: jsimd_extrgb_ycc_convert_sse2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) >>> did you mean: _jsimd_extrgb_ycc_convert_sse2 >>> defined in: obj/third_party/libjpeg_turbo/libsimd_asm.a(simd_asm/jccolor-sse2.o) ld.lld: error: undefined symbol: jsimd_extrgbx_ycc_convert_avx2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extrgbx_ycc_convert_sse2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extbgr_ycc_convert_avx2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extbgr_ycc_convert_sse2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extbgrx_ycc_convert_avx2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extbgrx_ycc_convert_sse2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extxbgr_ycc_convert_avx2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extxbgr_ycc_convert_sse2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extxrgb_ycc_convert_avx2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extxrgb_ycc_convert_sse2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_rgb_ycc_convert_avx2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_rgb_ycc_convert_sse2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extrgb_gray_convert_avx2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extrgb_gray_convert_sse2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extrgbx_gray_convert_avx2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extrgbx_gray_convert_sse2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extbgr_gray_convert_avx2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) ld.lld: error: undefined symbol: jsimd_extbgr_gray_convert_sse2 >>> referenced by ld-temp.o >>> ./lib.unstripped/libchrome_main_web.so.lto.o:(jsimd_extrgb_ycc_convert_avx2.cfi_jt) 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) ninja: build stopped: subcommand failed.
关闭于 2025-08-06 2 条评论