[OHOS ERROR] [22236/23018] SOLINK useriam/user_auth_framework/libuserauthservice.z.so
[OHOS ERROR] FAILED: useriam/user_auth_framework/libuserauthservice.z.so lib.unstripped/useriam/user_auth_framework/libuserauthservice.z.so
[OHOS ERROR] /usr/bin/env "../../build/toolchain/gcc_solink_wrapper.py" --readelf="../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-readobj" --nm="../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-nm" --strip=../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/llvm-strip --strip-debug-whitelist=../../build/toolchain/strip_debug_whitelist.txt --sofile="./lib.unstripped/useriam/user_auth_framework/libuserauthservice.z.so" --output="useriam/user_auth_framework/libuserauthservice.z.so" --clang-base-dir="/home/ifeilong/Desktop/openharmony4.1/prebuilts/clang/ohos" --mini-debug -- ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ -shared -Wl,--version-script=../../base/useriam/user_auth_framework/services/user_auth_service_map -Wl,--pack-dyn-relocs=android+relr -Wl,--fatal-warnings -Wl,--build-id=md5 -Wl,-z,defs -Wl,--as-needed -fuse-ld=lld -Wl,--icf=all -Wl,--color-diagnostics -flto=thin -Wl,--thinlto-jobs=8 -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy,cache_size=10%:cache_size_bytes=10g:cache_size_files=100000 -Wl,--lto-O0 -march=armv7-a -Wl,--no-undefined -Wl,--exclude-libs=libunwind_llvm.a -Wl,--exclude-libs=libc++_static.a -Wl,--exclude-libs=libvpx_assembly_arm.a --target=arm-linux-ohos -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Werror -Wl,--warn-shared-textrel -Wl,-O2 -Wl,--gc-sections -Wl,--gdb-index --sysroot=obj/third_party/musl -nostdlib -Lobj/third_party/musl/usr/lib/arm-linux-ohos -L../../prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/15.0.4/lib/arm-linux-ohos -Wl,--warn-shared-textrel -fsanitize-trap=all -ftrap-function=abort -flto -fsanitize=cfi -fsanitize-cfi-cross-dso -Wl,--version-script=/home/ifeilong/Desktop/openharmony4.1/build/config/sanitizers/cfi.versionscript -o "./lib.unstripped/useriam/user_auth_framework/libuserauthservice.z.so" @"useriam/user_auth_framework/libuserauthservice.z.so.rsp" -Wl,-soname="libuserauthservice.z.so"
[OHOS ERROR] ld.lld: error: undefined symbol: OHOS::UserIam::UserAuth::IpcCommon::CheckPermission(OHOS::IPCObjectStub&, OHOS::UserIam::UserAuth::Permission)
[OHOS ERROR] >>> referenced by co_auth_service.cpp:81 (../../base/useriam/user_auth_framework/services/ipc/src/co_auth_service.cpp:81)
[OHOS ERROR] >>> lto.tmp:(OHOS::UserIam::UserAuth::CoAuthService::ExecutorRegister(OHOS::UserIam::UserAuth::CoAuthInterface::ExecutorRegisterInfo const&, OHOS::sptrOHOS::UserIam::UserAuth::ExecutorCallbackInterface&))
[OHOS ERROR] clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR] File "/home/ifeilong/Desktop/openharmony4.1/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR] return func(*args, **kwargs)
[OHOS ERROR] File "/home/ifeilong/Desktop/openharmony4.1/build/hb/modules/ohos_build_module.py", line 67, in run
[OHOS ERROR] raise exception
[OHOS ERROR] File "/home/ifeilong/Desktop/openharmony4.1/build/hb/modules/ohos_build_module.py", line 65, in run
[OHOS ERROR] super().run()
[OHOS ERROR] File "/home/ifeilong/Desktop/openharmony4.1/build/hb/modules/interface/build_module_interface.py", line 72, in run
[OHOS ERROR] raise exception
[OHOS ERROR] File "/home/ifeilong/Desktop/openharmony4.1/build/hb/modules/interface/build_module_interface.py", line 70, in run
[OHOS ERROR] self._target_compilation()
[OHOS ERROR] File "/home/ifeilong/Desktop/openharmony4.1/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
[OHOS ERROR] self.target_compiler.run()
[OHOS ERROR] File "/home/ifeilong/Desktop/openharmony4.1/build/hb/services/ninja.py", line 38, in run
[OHOS ERROR] self._execute_ninja_cmd()
[OHOS ERROR] File "/home/ifeilong/Desktop/openharmony4.1/build/hb/services/ninja.py", line 69, in _execute_ninja_cmd
[OHOS ERROR] SystemUtil.exec_command(
[OHOS ERROR] File "/home/ifeilong/Desktop/openharmony4.1/build/hb/util/system_util.py", line 64, in exec_command
[OHOS ERROR] LogUtil.get_failed_log(log_path)
[OHOS ERROR] File "/home/ifeilong/Desktop/openharmony4.1/build/hb/util/log_util.py", line 193, in get_failed_log
[OHOS ERROR] LogUtil.get_compiler_failed_log(log_path)
[OHOS ERROR] File "/home/ifeilong/Desktop/openharmony4.1/build/hb/util/log_util.py", line 180, in get_compiler_failed_log
[OHOS ERROR] raise OHOSException(
[OHOS ERROR] exceptions.ohos_exception.OHOSException: COMPILE Failed! Please check error in /home/ifeilong/Desktop/openharmony4.1/out/rk3568/error.log, and for more build information in /home/ifeilong/Desktop/openharmony4.1/out/rk3568/build.log
[OHOS ERROR]
[OHOS ERROR] Code: 4000
[OHOS ERROR]
[OHOS ERROR] Reason: COMPILE Failed! Please check error in /home/ifeilong/Desktop/openharmony4.1/out/rk3568/error.log, and for more build information in /home/ifeilong/Desktop/openharmony4.1/out/rk3568/build.log
[OHOS ERROR]
[OHOS ERROR] Error Type: Ninja build error
[OHOS ERROR]
[OHOS ERROR] Description: An unknown error occurred while executing 'ninja -C'.
[OHOS ERROR]
[OHOS ERROR] Solution: no solution
[OHOS ERROR]
=====build error=====
更多回帖