OpenHarmony开发者论坛

标题: openharmony-4.0-Release版本代码,linux5.10内核编译报错:ld.lld: error: undefined symbol: __ubsan_handle_cfi_check_fail_abort [打印本页]

作者: ppinger    时间: 2024-1-8 11:02
标题: openharmony-4.0-Release版本代码,linux5.10内核编译报错:ld.lld: error: undefined symbol: __ubsan_handle_cfi_check_fail_abort
[md]环境变量已经配置,内核里增加驱动勾选CONFIG_ROCKCHIP_DW_DP后,使用./make-ohos.sh TB-RK3568X0编译内核报:ld.lld: error: undefined symbol: __ubsan_handle_cfi_check_fail_abort,貌似与hdf_test有关,请教一下这个是什么原因导致的?如何解决?

![image.png](https://forums-obs.openharmony.c ... izepzeje77loplp.png "image.png")
[/md]
作者: yyn1994    时间: 2024-1-25 09:50
OpenHarmony-3.2.1-Release  版本也有类似的问题,defconfig  配置 CONFIG_DRIVERS_HDF_PLATFORM_SDIO 后会有 链接报错的问题
ld.lld: error: undefined symbol: SdioClaimHost
>>> referenced by sdio_test.c:341 (drivers/hdf/khdf/test/../../framework/test/unittest/platform/common/sdio_test.c:341)
>>>               hdf/framework/test/unittest/platform/common/sdio_test.oTestSdioDisableFunc) in archive drivers/built-in.a
>>> referenced by sdio_test.c:326 (drivers/hdf/khdf/test/../../framework/test/unittest/platform/common/sdio_test.c:326)
>>>               hdf/framework/test/unittest/platform/common/sdio_test.oTestSdioEnableFunc) in archive drivers/built-in.a
>>> referenced by sdio_test.c:311 (drivers/hdf/khdf/test/../../framework/test/unittest/platform/common/sdio_test.c:311)
>>>               hdf/framework/test/unittest/platform/common/sdio_test.oTestSdioSetBlockSize) in archive drivers/built-in.a
>>> referenced 6 more times





欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5