查看: 797|回复: 1

风火轮YY3568开发板编译OpenHarmony 4.1报错

[复制链接]

1

主题

0

回帖

211

积分

中级会员

Rank: 3Rank: 3

积分
211
发表于 2024-8-9 15:22:55 | 显示全部楼层 |阅读模式
(为了高效,请按如下格式提问)

硬件主板型号:风火轮YY3568开发板
固件名称/系统版本:OpenHarmony 4.1
自编的或固件下载地址:自编的
Log日志: (可以导出,用TXT附件上传)
[OHOS ERROR] The symbol rockchip_clk_register_armclk is exported and annotated __init
[OHOS ERROR] Fix this by removing the __init annotation of rockchip_clk_register_armclk or drop the export.
[OHOS ERROR]
[OHOS ERROR]   MODINFO modules.builtin.modinfo
[OHOS ERROR]   GEN     modules.builtin
[OHOS ERROR]   LD      .tmp_vmlinux.btf
[OHOS ERROR] ld.lld: error: undefined symbol: memset_s
[OHOS ERROR] >>> 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)
[OHOS ERROR] >>>               tzdriver/core/teek_client_api.oteek_open_session) in archive drivers/built-in.a
[OHOS ERROR] >>> 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)
[OHOS ERROR] >>>               tzdriver/core/teek_client_api.oteek_close_session) in archive drivers/built-in.a
[OHOS ERROR] >>> 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)
[OHOS ERROR] >>>               tzdriver/core/teek_client_api.oteek_init_context) in archive drivers/built-in.a
[OHOS ERROR] >>> referenced 13 more times
[OHOS ERROR]
[OHOS ERROR] ld.lld: error: undefined symbol: memcpy_s
[OHOS ERROR] >>> 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)
[OHOS ERROR] >>>               tzdriver/core/teek_client_api.oteek_open_session) in archive drivers/built-in.a
[OHOS ERROR] >>> 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)
[OHOS ERROR] >>>               tzdriver/core/teek_client_api.oteek_init_context) in archive drivers/built-in.a
[OHOS ERROR] >>> 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)
[OHOS ERROR] >>>               tzdriver/core/smc_smp.osmp_smc_send_func) in archive drivers/built-in.a
[OHOS ERROR] >>> referenced 28 more times
[OHOS ERROR]
[OHOS ERROR] ld.lld: error: undefined symbol: strncpy_s
[OHOS ERROR] >>> 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)
[OHOS ERROR] >>>               tzdriver/core/tc_client_driver.otc_client_ioctl) in archive drivers/built-in.a
[OHOS ERROR] >>> 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)
[OHOS ERROR] >>>               tzdriver/core/cmdmonitor.oget_pid_name) in archive drivers/built-in.a
[OHOS ERROR]
[OHOS ERROR] ld.lld: error: undefined symbol: snprintf_s
[OHOS ERROR] >>> 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)
[OHOS ERROR] >>>               tzdriver/core/mailbox_mempool.omb_dbg_opt_read) in archive drivers/built-in.a
[OHOS ERROR] >>> 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)
[OHOS ERROR] >>>               tzdriver/core/agent.ocheck_ext_agent_access) in archive drivers/built-in.a
[OHOS ERROR] >>> 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)
[OHOS ERROR] >>>               tzdriver/core/tzdebug.o:(tz_dbg_opt_read) in archive drivers/built-in.a
[OHOS ERROR]   BTF     .btf.vmlinux.bin.o
[OHOS ERROR] pahole: .tmp_vmlinux.btf: No such file or directory
[OHOS ERROR]   LD      .tmp_vmlinux.kallsyms1
[OHOS ERROR] ld.lld: error: .btf.vmlinux.bin.o: unknown file type
[OHOS ERROR] /home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/src_tmp/linux-5.10/Makefile:1225: recipe for target 'vmlinux' failed
[OHOS ERROR] make[2]: *** [vmlinux] Error 1
[OHOS ERROR] arch/arm64/Makefile:208: recipe for target 'rk3568-yyt-x0-linux.img' failed
[OHOS ERROR] make[1]: *** [rk3568-yyt-x0-linux.img] Error 2
[OHOS ERROR] make[1]: Leaving directory '/home/apptest/Harmony/OpenHarmony_4.1_yy3568/out/kernel/OBJ/linux-5.10'
[OHOS ERROR] Makefile:192: recipe for target '__sub-make' failed
[OHOS ERROR] make: *** [__sub-make] Error 2

[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR]   File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR]     return func(*args, **kwargs)
[OHOS ERROR]   File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/modules/ohos_build_module.py", line 67, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/modules/ohos_build_module.py", line 65, in run
[OHOS ERROR]     super().run()
[OHOS ERROR]   File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/modules/interface/build_module_interface.py", line 72, in run
[OHOS ERROR]     raise exception
[OHOS ERROR]   File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/modules/interface/build_module_interface.py", line 70, in run
[OHOS ERROR]     self._target_compilation()
[OHOS ERROR]   File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
[OHOS ERROR]     self.target_compiler.run()
[OHOS ERROR]   File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/services/ninja.py", line 38, in run
[OHOS ERROR]     self._execute_ninja_cmd()
[OHOS ERROR]   File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/services/ninja.py", line 69, in _execute_ninja_cmd
[OHOS ERROR]     SystemUtil.exec_command(
[OHOS ERROR]   File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/build/hb/util/system_util.py", line 64, in exec_command
[OHOS ERROR]     LogUtil.get_failed_log(log_path)
[OHOS ERROR]   File "/home/apptest/Harmony/OpenHarmony_4.1_yy3568/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/apptest/Harmony/OpenHarmony_4.1_yy3568/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/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
[OHOS ERROR]

[OHOS ERROR] Code:        4000
[OHOS ERROR]
[OHOS ERROR] 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
[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=====

问题描述及复现步骤:
编译报错:
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
前面拉去源码,安装依赖都没问题,最后编译报错了,请问下如何解决呢?


回复

使用道具 举报

0

主题

1

回帖

204

积分

中级会员

Rank: 3Rank: 3

积分
204
发表于 6 天前 | 显示全部楼层
同样的问题,求解决办法
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|风火轮WIKI|手机版|小黑屋|深圳风火轮团队 ( 粤ICP备17095099号 )

GMT+8, 2024-11-21 14:57 , Processed in 0.054177 second(s), 19 queries .

快速回复 返回顶部 返回列表
 
【客服1】 商务合作 15289193
【客服2】 业务洽谈 13257599
【客服3】 售前咨询 510313198
【邮箱】
smartfire@smartfire.cn