OpenHarmony开发者论坛

标题: mip架构编译xts和组件 _Atomic无定义问题 [打印本页]

作者: holden-huang    时间: 2024-6-6 15:53
标题: mip架构编译xts和组件 _Atomic无定义问题
[md][OHOS ERROR] ccache /work/openharmony-v3.2.4/OpenHarmony-v3.2.4-Release/OpenHarmony/device/ingenic/x2000/prebuilt/gcc/linux-x86/mips/mips-gcc720-glibc229/bin/mips-linux-gnu-g++ -DOHOS_LITE -D__MUSL__ -D_GNU_SOURCE -DREAD_CHECK -DSTARTUP_INIT_TEST -DPARAM_SUPPORT_DAC -DUSE_MBEDTLS -DSTARTUP_INIT_UT_PATH\ =\"/userdata/init_ut\" -D__LINUX__ -D_XOPEN_SOURCE=700 -DOHOS_DEBUG -D_FORTIFY_SOURCE=2 -D__linux__ -D__LINUX__ -DCJSON_NESTING_LIMIT=\(128\) -I../../../base/startup/init/services/include -I../../../base/startup/init/services/include/param -I../../../base/startup/init/services/init/include -I../../../base/startup/init/services/log -I../../../base/startup/init/services/loopevent/include -I../../../base/startup/init/services/loopevent/timer -I../../../base/startup/init/services/loopevent/task -I../../../base/startup/init/services/loopevent/utils -I../../../base/startup/init/services/param/adapter -I../../../base/startup/init/services/param/base -I../../../base/startup/init/services/param/linux -I../../../base/startup/init/services/param/include -I../../../base/startup/init/services/param/watcher/agent -I../../../base/startup/init/services/param/watcher/include -I../../../base/startup/init/services/param/watcher/proxy -I../../../base/startup/init/services/modules -I../../../base/startup/init/services/modules/init_hook -I../../../base/startup/init/services/modules/selinux -I../../../base/startup/init/test/unittest -I../../../base/startup/init/test/unittest/param -I../../../base/startup/init/interfaces/innerkits/include -I../../../base/startup/init/interfaces/innerkits/include/syspara -I../../../base/startup/init/interfaces/innerkits/init_module_engine/include -I../../../base/startup/init/interfaces/innerkits/syspara -I../../../third_party/cJSON -I../../../third_party/bounds_checking_function/include -I../../../base/hiviewdfx/hilog_lite/interfaces/native/kits -I../../../base/startup/init/interfaces/innerkits/fd_holder -I../../../base/startup/init/interfaces/hals -I../../../third_party/googletest/googletest/include -I../../../commonlibrary/utils_lite/include -I../../../third_party/bounds_checking_function/include -I../../../device/ingenic/x2000/prebuilt/gcc/linux-x86/mips/mips-gcc720-glibc229/mips-linux-gnu/libc/usr/include -I../../../third_party/bounds_checking_function/include -I../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog -I../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits -I../../../third_party/bounds_checking_function/include -I../../../base/startup/init/services/loopevent/include -I../../../third_party/cJSON -I../../../third_party/mbedtls/include -I../../../third_party/mbedtls/library -I../../../third_party/mbedtls/include/mbedtls -I../../../third_party/mbedtls/tests/include -I../../../third_party/googletest/googletest/include -Os -mips32r2 -mfp64 -fpic -mips32r2 -mfp64 -fpic -DSOFTBUS_PRINTF -march=mips32r2 -fno-common -fno-builtin -fno-strict-aliasing -Wall -funwind-tables -fasynchronous-unwind-tables -fstack-protector-all -fexceptions -std=c++11 -fPIE -c ../../../base/startup/init/test/unittest/param/param_stub.cpp -o obj/base/startup/init/test/unittest/param/init_test.param_stub.o
[OHOS ERROR] In file included from ../../../base/startup/init/services/param/include/param_osadp.h:39:0,
[OHOS ERROR]                  from ../../../base/startup/init/services/param/include/param_manager.h:25,
[OHOS ERROR]                  from ../../../base/startup/init/test/unittest/param/param_stub.h:24,
[OHOS ERROR]                  from ../../../base/startup/init/test/unittest/param/param_stub.cpp:16:
[OHOS ERROR] /work/openharmony-v3.2.4/OpenHarmony-v3.2.4-Release/OpenHarmony/device/ingenic/x2000/prebuilt/gcc/linux-x86/mips/mips-gcc720-glibc229/lib/gcc/mips-linux-gnu/7.2.0/include/stdatomic.h:41:9: error: '_Atomic' does not name a type
[OHOS ERROR]  typedef _Atomic _Bool atomic_bool;
[OHOS ERROR]          ^~~~~~~
[OHOS ERROR] /work/openharmony-v3.2.4/OpenHarmony-v3.2.4-Release/OpenHarmony/device/ingenic/x2000/prebuilt/gcc/linux-x86/mips/mips-gcc720-glibc229/lib/gcc/mips-linux-gnu/7.2.0/include/stdatomic.h:42:9: error: '_Atomic' does not name a type
[OHOS ERROR]  typedef _Atomic char atomic_char;
[OHOS ERROR]          ^~~~~~~
[OHOS ERROR] /work/openharmony-v3.2.4/OpenHarmony-v3.2.4-Release/OpenHarmony/device/ingenic/x2000/prebuilt/gcc/linux-x86/mips/mips-gcc720-glibc229/lib/gcc/mips-linux-gnu/7.2.0/include/stdatomic.h:43:9: error: '_Atomic' does not name a type
[OHOS ERROR]  typedef _Atomic signed char atomic_schar;
[OHOS ERROR]          ^~~~~~~
[OHOS ERROR] /work/openharmony-v3.2.4/OpenHarmony-v3.2.4-Release/OpenHarmony/device/ingenic/x2000/prebuilt/gcc/linux-x86/mips/mips-gcc720-glibc229/lib/gcc/mips-linux-gnu/7.2.0/include/stdatomic.h:44:9: error: '_Atomic' does not name a type
[OHOS ERROR]  typedef _Atomic unsigned char atomic_uchar;


错误中说编译链的stdatomic.h找不到_Atomic的定义类型,使用的是编译链带-std=c++11编译的,不知道问题出在哪里,求各路大神献策
[/md]
作者: Dysonnnn    时间: 2024-6-6 17:38
这问题是什么造成的?  帮顶




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