风火轮YY3568开发板编译OpenHarmony 4.1报错
(为了高效,请按如下格式提问)硬件主板型号:风火轮YY3568开发板
固件名称/系统版本:OpenHarmony 4.1
自编的或固件下载地址:自编的
Log日志: (可以导出,用TXT附件上传)
The symbol rockchip_clk_register_armclk is exported and annotated __init
Fix this by removing the __init annotation of rockchip_clk_register_armclk or drop the export.
MODINFO modules.builtin.modinfo
GEN modules.builtin
LD .tmp_vmlinux.btf
ld.lld: error: undefined symbol: memset_s
>>> referenced by teek_client_api.c:420 (/home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/OBJ/linux-5.10/../../../../kernel/linux/common_modules/tzdriver/core/teek_client_api.c:420)
>>> tzdriver/core/teek_client_api.o:(teek_open_session) in archive drivers/built-in.a
>>> referenced by teek_client_api.c:610 (/home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/OBJ/linux-5.10/../../../../kernel/linux/common_modules/tzdriver/core/teek_client_api.c:610)
>>> tzdriver/core/teek_client_api.o:(teek_close_session) in archive drivers/built-in.a
>>> referenced by teek_client_api.c:158 (/home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/OBJ/linux-5.10/../../../../kernel/linux/common_modules/tzdriver/core/teek_client_api.c:158)
>>> tzdriver/core/teek_client_api.o:(teek_init_context) in archive drivers/built-in.a
>>> referenced 13 more times
ld.lld: error: undefined symbol: memcpy_s
>>> referenced by teek_client_api.c:425 (/home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/OBJ/linux-5.10/../../../../kernel/linux/common_modules/tzdriver/core/teek_client_api.c:425)
>>> tzdriver/core/teek_client_api.o:(teek_open_session) in archive drivers/built-in.a
>>> referenced by teek_client_api.c:166 (/home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/OBJ/linux-5.10/../../../../kernel/linux/common_modules/tzdriver/core/teek_client_api.c:166)
>>> tzdriver/core/teek_client_api.o:(teek_init_context) in archive drivers/built-in.a
>>> referenced by smc_smp.c:1492 (/home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/OBJ/linux-5.10/../../../../kernel/linux/common_modules/tzdriver/core/smc_smp.c:1492)
>>> tzdriver/core/smc_smp.o:(smp_smc_send_func) in archive drivers/built-in.a
>>> referenced 28 more times
ld.lld: error: undefined symbol: strncpy_s
>>> referenced by tc_client_driver.c:422 (/home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/OBJ/linux-5.10/../../../../kernel/linux/common_modules/tzdriver/core/tc_client_driver.c:422)
>>> tzdriver/core/tc_client_driver.o:(tc_client_ioctl) in archive drivers/built-in.a
>>> referenced by cmdmonitor.c:133 (/home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/OBJ/linux-5.10/../../../../kernel/linux/common_modules/tzdriver/core/cmdmonitor.c:133)
>>> tzdriver/core/cmdmonitor.o:(get_pid_name) in archive drivers/built-in.a
ld.lld: error: undefined symbol: snprintf_s
>>> referenced by mailbox_mempool.c:471 (/home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/OBJ/linux-5.10/../../../../kernel/linux/common_modules/tzdriver/core/mailbox_mempool.c:471)
>>> tzdriver/core/mailbox_mempool.o:(mb_dbg_opt_read) in archive drivers/built-in.a
>>> referenced by agent.c:198 (/home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/OBJ/linux-5.10/../../../../kernel/linux/common_modules/tzdriver/core/agent.c:198)
>>> tzdriver/core/agent.o:(check_ext_agent_access) in archive drivers/built-in.a
>>> referenced by tzdebug.c:225 (/home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/OBJ/linux-5.10/../../../../kernel/linux/common_modules/tzdriver/core/tzdebug.c:225)
>>> tzdriver/core/tzdebug.o:(tz_dbg_opt_read) in archive drivers/built-in.a
BTF .btf.vmlinux.bin.o
pahole: .tmp_vmlinux.btf: No such file or directory
LD .tmp_vmlinux.kallsyms1
ld.lld: error: .btf.vmlinux.bin.o: unknown file type
/home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/src_tmp/linux-5.10/Makefile:1225: recipe for target 'vmlinux' failed
make: *** Error 1
arch/arm64/Makefile:208: recipe for target 'rk3568-yyt-x0-linux.img' failed
make: *** Error 2
make: Leaving directory '/home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/OBJ/linux-5.10'
Makefile:192: recipe for target '__sub-make' failed
make: *** Error 2
Traceback (most recent call last):
File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/containers/status.py", line 47, in wrapper
return func(*args, **kwargs)
File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/modules/ohos_build_module.py", line 67, in run
raise exception
File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/modules/ohos_build_module.py", line 65, in run
super().run()
File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/modules/interface/build_module_interface.py", line 72, in run
raise exception
File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/modules/interface/build_module_interface.py", line 70, in run
self._target_compilation()
File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
self.target_compiler.run()
File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/services/ninja.py", line 38, in run
self._execute_ninja_cmd()
File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/services/ninja.py", line 69, in _execute_ninja_cmd
SystemUtil.exec_command(
File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/util/system_util.py", line 64, in exec_command
LogUtil.get_failed_log(log_path)
File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/util/log_util.py", line 193, in get_failed_log
LogUtil.get_compiler_failed_log(log_path)
File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/util/log_util.py", line 180, in get_compiler_failed_log
raise OHOSException(
exceptions.ohos_exception.OHOSException: COMPILE Failed! Please check error in /home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/YY3568/error.log, and for more build information in /home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/YY3568/build.log
Code: 4000
Reason: COMPILE Failed! Please check error in /home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/YY3568/error.log, and for more build information in /home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/YY3568/build.log
Error Type:Ninja build error
Description: An unknown error occurred while executing 'ninja -C'.
Solution: no solution
=====builderror=====
问题描述及复现步骤:
编译报错:
ld.lld: undefined symbol: memset_s
ld.lld: error: undefined symbol: memcpy_s
ld.lld: error: undefined symbol: strncpy_s
ld.lld: error: undefined symbol: snprintf_s
ld.lld: error: .btf.vmlinux.bin.o: unknown file type
使用Ubuntu 18.0.4编译OpenHarmony4.1源码报了如上错误,
操作步骤是按照:https://wiki.youyeetoo.cn/zh/YY3568/OUENV
前面拉去源码,安装依赖都没问题,最后编译报错了,请问下如何解决呢?
同样的问题,求解决办法
页:
[1]