PaddlePaddle / Paddle-Lite

PaddlePaddle High Performance Deep Learning Inference Engine for Mobile and Edge (飞桨高性能深度学习端侧推理引擎)
https://www.paddlepaddle.org.cn/lite
Apache License 2.0
6.93k stars 1.61k forks source link

编译鸿蒙版本时,用鸿蒙提供的ohos工具编译Paddle Lite失败 #10442

Closed fanjiduo closed 7 months ago

fanjiduo commented 7 months ago

Paddle Lite目前在官网并没有找到鸿蒙OS版本的预编译库,自己按照鸿蒙的方式编译又一直有问题编译不出来,鸿蒙给的编译方式如下链接https://gitee.com/openharmony-sig/tpc_c_cplusplus/blob/master/thirdparty/Paddle-Lite/docs/hap_integrate.md,我编译其他库可以成功,但是编译Paddle

Lite一直报错, 咱们飞桨能否提供一下鸿蒙版本的预编译库?

我电脑是MacOS M2芯片的电脑,用同样的方法成功编译了Opencv和openssl,但是唯独paddle Lite一直失败。 鸿蒙是用ohos工具编译的,我编译以后报错:

Please check the dependencies of these items:

/Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus/lycium/../thirdparty//Paddle-Lite

The follow pkg build error!

/Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus/lycium/../thirdparty//glog

能否帮忙试验一下这个鸿蒙提供的编译方式能否编译成功?

zhupengyang commented 7 months ago

看起来是 Paddle-Lite 依赖的三方库 glog 编译失败了,可以单独编译 glog 看下有没有问题

fanjiduo commented 7 months ago

看起来是 Paddle-Lite 依赖的三方库 glog 编译失败了,可以单独编译 glog 看下有没有问题

您好,我试了下glog也是编译错误,编译过程以及错误提示如下: (base) wangp@WangdeMacBook-Pro-2 lycium % ./build.sh glog Build OS Darwin OHOS_SDK=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin CLANG_VERSION=15.0.4 glog not ready. wait googletest gflags Build googletest v1.13.0 start! % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 218 0 218 0 0 799 0 --:--:-- --:--:-- --:--:-- 801 100 1060k 0 1060k 0 0 801k 0 --:--:-- 0:00:01 --:--:-- 1476k googletest-v1.13.0.zip: OK Compile OpenHarmony armeabi-v7a googletest v1.13.0 libs... The test must be on an OpenHarmony device! Compile OpenHarmony arm64-v8a googletest v1.13.0 libs... The test must be on an OpenHarmony device! Build googletest v1.13.0 end! Build gflags v2.2.2 start! % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 215 0 215 0 0 832 0 --:--:-- --:--:-- --:--:-- 833 100 121k 0 121k 0 0 204k 0 --:--:-- --:--:-- --:--:-- 204k gflags-v2.2.2.zip: OK Compile OpenHarmony armeabi-v7a gflags v2.2.2 libs... The test must be on an OpenHarmony device! Compile OpenHarmony arm64-v8a gflags v2.2.2 libs... The test must be on an OpenHarmony device! Build gflags v2.2.2 end! Build glog v0.6.0 start! % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 213 0 213 0 0 744 0 --:--:-- --:--:-- --:--:-- 747 100 251k 0 251k 0 0 309k 0 --:--:-- --:--:-- --:--:-- 812k glog-v0.6.0.zip: OK Compile OpenHarmony armeabi-v7a glog v0.6.0 libs... patching file CMakeLists.txt patching file src/logging_custom_prefix_unittest.cc patching file src/logging_unittest.cc patching file src/symbolize_unittest.cc patching file src/utilities.cc The test must be on an OpenHarmony device! sed: 1: "glog-v0.6.0/armeabi-v7a ...": extra characters at the end of g command ERROR during : check /Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/../thirdparty//glog build ERROR. errno: 1 The follow pkg build error! /Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/../thirdparty//glog

请问应该怎么解决呢?paddle lite能否帮忙提供一个鸿蒙版的so库,谢谢

fanjiduo commented 7 months ago

看起来是 Paddle-Lite 依赖的三方库 glog 编译失败了,可以单独编译 glog 看下有没有问题

glog编译成功了,之前错误的原因是mac下需要再sed后面加一个空字符串“”,现在编译Paddle Lite会报另外一个库的错误,就是abseil-cpp。 然后我尝试单独编译abseil-cpp,报了如下错误: (base) wangp@WangdeMacBook-Pro-2 lycium % ./build.sh abseil-cpp Build OS Darwin OHOS_SDK=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin CLANG_VERSION=15.0.4 Build abseil-cpp 20230802.0 start! /Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/thirdparty/abseil-cpp/abseil-cpp-20230802.0.zip,存在 abseil-cpp-20230802.0.zip: OK Compile OpenHarmony armeabi-v7a abseil-cpp 20230802.0 libs... ERROR during : build -LH -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH=ON -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_TOOLCHAIN_FILE=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/build/cmake/ohos.toolchain.cmake -DCMAKE_INSTALL_PREFIX=/Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/usr/abseil-cpp/armeabi-v7a -G "Unix Makefiles" -DOHOS_ARCH=armeabi-v7a -DCMAKE_FIND_ROOT_PATH="/Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/usr/googletest/armeabi-v7a/" /Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/../thirdparty//abseil-cpp build ERROR. errno: 1 The follow pkg build error! /Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/../thirdparty//abseil-cpp

这个错误有点看不出来原因了,您能帮忙看看吗?谢谢

fanjiduo commented 7 months ago

后来我重新编译Paddle Lite,拿到了编译好的abseil-cpp、googletest、glog、protobuf_v3.6.1、gflags、zlib,但是最后还是报错,报错信息如下: ERROR during : build -LH -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH=ON -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_TOOLCHAIN_FILE=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/build/cmake/ohos.toolchain.cmake -DCMAKE_INSTALL_PREFIX=/Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/usr/Paddle-Lite/armeabi-v7a -G "Unix Makefiles" -DOHOS_ARCH=armeabi-v7a -DCMAKE_FIND_ROOT_PATH=" /Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/usr/protobuf_v3.6.1/armeabi-v7a/; /Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/usr/glog/armeabi-v7a/; /Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/usr/gflags/armeabi-v7a/": 2

zhupengyang commented 7 months ago

后来我重新编译Paddle Lite,拿到了编译好的abseil-cpp、googletest、glog、protobuf_v3.6.1、gflags、zlib,但是最后还是报错,报错信息如下:

有更详细的报错吗,看不出来啥问题,或者单独执行这个命令看下有什么信息不

fanjiduo commented 7 months ago

您可以帮忙编译一下吗?这样您应该会遇到和我一样的错误,就是按照鸿蒙的这个编译教程做的 https://gitee.com/openharmony-sig/tpc_c_cplusplus/blob/master/thirdparty/Paddle-Lite/docs/hap_integrate.md 您可以帮忙按照这个教程执行一下吗?非常感谢! 我的手机号是13693551043,微信号同手机号,您可以加我微信。谢谢

另外下面是我执行的流程和报错信息: (base) wangp@WangdeMacBook-Pro-2 lycium % ./build.sh Paddle-Lite Build OS Darwin OHOS_SDK=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin CLANG_VERSION=15.0.4 Build Paddle-Lite v2.12 start! /Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/thirdparty/Paddle-Lite/Paddle-Lite-v2.12.zip,存在 Paddle-Lite-v2.12.zip: OK Compile OpenHarmony armeabi-v7a Paddle-Lite v2.12 libs... Cloning into 'third-party/gflags'... remote: Enumerating objects: 2458, done. remote: Total 2458 (delta 0), reused 0 (delta 0), pack-reused 2458 Receiving objects: 100% (2458/2458), 1.46 MiB | 3.97 MiB/s, done. Resolving deltas: 100% (1462/1462), done. HEAD is now at 7759264 repair wrong namespace problem Cloning into 'third-party/googletest'... remote: Enumerating objects: 27411, done. remote: Counting objects: 100% (27411/27411), done. remote: Compressing objects: 100% (7054/7054), done. remote: Total 27411 (delta 20475), reused 25135 (delta 18779), pack-reused 0 Receiving objects: 100% (27411/27411), 7.44 MiB | 3.64 MiB/s, done. Resolving deltas: 100% (20475/20475), done. HEAD is now at ec44c6c1 Merge pull request #821 from mazong1123/master patching file cmake/os/common.cmake patching file cmake/os/ohos.cmake patching file cmake/backends/common.cmake patching file cmake/external/gflags.cmake patching file cmake/external/protobuf.cmake patching file cmake/functions.cmake patching file cmake/postproject.cmake patching file lite/api/CMakeLists.txt patching file lite/api/test/CMakeLists.txt patching file lite/CMakeLists.txt patching file lite/backends/arm/math/gemm_prepacked_int8.cc armeabi-v7a-build/lite armeabi-v7a-build/lite/tools armeabi-v7a-build/lite/tools/debug lite/tools/debug/analysis_tool.py -> armeabi-v7a-build/lite/tools/debug/analysis_tool.py armeabi-v7a-build/lite/gen_code ERROR during : build -LH -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH=ON -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_TOOLCHAIN_FILE=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/build/cmake/ohos.toolchain.cmake -DCMAKE_INSTALL_PREFIX=/Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/usr/Paddle-Lite/armeabi-v7a -G "Unix Makefiles" -DOHOS_ARCH=armeabi-v7a -DCMAKE_FIND_ROOT_PATH="/Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/usr/protobuf_v3.6.1/armeabi-v7a/;/Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/usr/glog/armeabi-v7a/;/Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/usr/gflags/armeabi-v7a/" /Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/../thirdparty//Paddle-Lite build ERROR. errno: 1 The follow pkg build error! /Users/wangp/Documents/opencvHarmony/tpc_c_cplusplus/lycium/../thirdparty//Paddle-Lite (base) wangp@WangdeMacBook-Pro-2 lycium %

terrysha commented 7 months ago

看这个日志中并没有体现构建失败的具体原因,你可以看看是否有CMakeError.log和CMakeOutput.log文件来获取更多信息。

fanjiduo commented 7 months ago

看这个日志中并没有体现构建失败的具体原因,你可以看看是否有CMakeError.log和CMakeOutput.log文件来获取更多信息。

非常感谢您的提醒,下面是tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeError.log中的CMakeError.log

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang++ Build flags: -fobjc-arc;-fdata-sections;-ffunction-sections;-funwind-tables;-fstack-protector-strong;-no-canonical-prefixes;-fno-addrsig;-Wa,--noexecstack;-Wformat;-Werror=format-security;-march=armv7a;;-mfloat-abi=softfp;-Wno-error=register;-Wno-unused-but-set-variable;-march=armv7-a;-DMUSL Id flags:

The output was: 1 clang++: error: unsupported argument 'armv7-a' to option '-march='

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang++ Build flags: -fobjc-arc;-fdata-sections;-ffunction-sections;-funwind-tables;-fstack-protector-strong;-no-canonical-prefixes;-fno-addrsig;-Wa,--noexecstack;-Wformat;-Werror=format-security;-march=armv7a;;-mfloat-abi=softfp;-Wno-error=register;-Wno-unused-but-set-variable;-march=armv7-a;-DMUSL Id flags: -c

The output was: 1 clang++: error: unsupported argument 'armv7-a' to option '-march='

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang++ Build flags: -fobjc-arc;-fdata-sections;-ffunction-sections;-funwind-tables;-fstack-protector-strong;-no-canonical-prefixes;-fno-addrsig;-Wa,--noexecstack;-Wformat;-Werror=format-security;-march=armv7a;;-mfloat-abi=softfp;-Wno-error=register;-Wno-unused-but-set-variable;-march=armv7-a;-DMUSL Id flags: --c++

The output was: 1 clang++: error: unsupported option '--c++' clang++: error: unsupported argument 'armv7-a' to option '-march='

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang++ Build flags: -fobjc-arc;-fdata-sections;-ffunction-sections;-funwind-tables;-fstack-protector-strong;-no-canonical-prefixes;-fno-addrsig;-Wa,--noexecstack;-Wformat;-Werror=format-security;-march=armv7a;;-mfloat-abi=softfp;-Wno-error=register;-Wno-unused-but-set-variable;-march=armv7-a;-DMUSL Id flags: --ec++

The output was: 1 clang++: error: unsupported option '--ec++' clang++: error: unsupported argument 'armv7-a' to option '-march='

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang++ Build flags: -fobjc-arc;-fdata-sections;-ffunction-sections;-funwind-tables;-fstack-protector-strong;-no-canonical-prefixes;-fno-addrsig;-Wa,--noexecstack;-Wformat;-Werror=format-security;-march=armv7a;;-mfloat-abi=softfp;-Wno-error=register;-Wno-unused-but-set-variable;-march=armv7-a;-DMUSL Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3

The output was: 1 ld.lld: error: unable to find library -lc++ ld.lld: error: unable to find library -lc++abi ld.lld: error: unable to find library -lunwind ld.lld: error: unable to find library -lc ld.lld: error: unable to find library -lm ld.lld: error: unable to find library -lclang_rt.builtins-arm clang++: error: ld.lld command failed with exit code 1 (use -v to see invocation)

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang++ Build flags: Id flags:

The output was: 1 ld: library not found for -lc++ clang-15: error: linker command failed with exit code 1 (use -v to see invocation)

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang Build flags: -fobjc-arc;-fdata-sections;-ffunction-sections;-funwind-tables;-fstack-protector-strong;-no-canonical-prefixes;-fno-addrsig;-Wa,--noexecstack;-Wformat;-Werror=format-security;-march=armv7a;-mfloat-abi=softfp;-march=armv7-a;-DMUSL Id flags:

The output was: 1 clang: error: unsupported argument 'armv7-a' to option '-march='

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang Build flags: -fobjc-arc;-fdata-sections;-ffunction-sections;-funwind-tables;-fstack-protector-strong;-no-canonical-prefixes;-fno-addrsig;-Wa,--noexecstack;-Wformat;-Werror=format-security;-march=armv7a;-mfloat-abi=softfp;-march=armv7-a;-DMUSL Id flags: -c

The output was: 1 clang: error: unsupported argument 'armv7-a' to option '-march='

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang Build flags: -fobjc-arc;-fdata-sections;-ffunction-sections;-funwind-tables;-fstack-protector-strong;-no-canonical-prefixes;-fno-addrsig;-Wa,--noexecstack;-Wformat;-Werror=format-security;-march=armv7a;-mfloat-abi=softfp;-march=armv7-a;-DMUSL Id flags: -Aa

The output was: 1 clang: error: unsupported argument 'armv7-a' to option '-march='

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang Build flags: -fobjc-arc;-fdata-sections;-ffunction-sections;-funwind-tables;-fstack-protector-strong;-no-canonical-prefixes;-fno-addrsig;-Wa,--noexecstack;-Wformat;-Werror=format-security;-march=armv7a;-mfloat-abi=softfp;-march=armv7-a;-DMUSL Id flags: -D__CLASSIC_C__

The output was: 1 clang: error: unsupported argument 'armv7-a' to option '-march='

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang Build flags: -fobjc-arc;-fdata-sections;-ffunction-sections;-funwind-tables;-fstack-protector-strong;-no-canonical-prefixes;-fno-addrsig;-Wa,--noexecstack;-Wformat;-Werror=format-security;-march=armv7a;-mfloat-abi=softfp;-march=armv7-a;-DMUSL Id flags: --target=arm-arm-none-eabi;-mcpu=cortex-m3

The output was: 1 ld.lld: error: unable to find library -lc ld.lld: error: unable to find library -lm ld.lld: error: unable to find library -lclang_rt.builtins-arm clang: error: ld.lld command failed with exit code 1 (use -v to see invocation)

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang Build flags: Id flags:

The output was: 1 ld: library not found for -lSystem clang-15: error: linker command failed with exit code 1 (use -v to see invocation)

Performing C++ SOURCE FILE Test FMA_FOUND failed with the following output: Change Dir: /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_b83ab/fast && make -j32 -f CMakeFiles/cmTC_b83ab.dir/build.make CMakeFiles/cmTC_b83ab.dir/build Building CXX object CMakeFiles/cmTC_b83ab.dir/src.cxx.o /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang++ --target=arm-linux-ohos --gcc-toolchain=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm --sysroot=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/sysroot -fobjc-arc -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -march=armv7a -mfloat-abi=softfp -Wno-error=register -Wno-unused-but-set-variable -march=armv7-a -DMUSL -DFMA_FOUND -mfma -fPIE -o CMakeFiles/cmTC_b83ab.dir/src.cxx.o -c /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx clang++: warning: argument unused during compilation: '--gcc-toolchain=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm' [-Wunused-command-line-argument] clang++: warning: argument unused during compilation: '-mfma' [-Wunused-command-line-argument] In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"

error "This header is only meant to be used on x86 and x64 architecture"

^ In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2: In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:17: In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/x86gprintrin.h:15: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/hresetintrin.h:42:27: error: invalid input constraint 'a' in asm asm ("hreset $0" :: "a"(eax)); ^ In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2: In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:17: In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/x86gprintrin.h:25: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:33:10: error: use of undeclared identifier 'builtin_ia32_crc32qi' return builtin_ia32_crc32qi(C, D); ^ /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:53:10: error: use of undeclared identifier 'builtin_ia32_crc32hi'; did you mean 'builtin_arm_crc32h'? return builtin_ia32_crc32hi(C, D); ^ /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:53:10: note: '__builtin_arm_crc32h' declared here /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:73:10: error: use of undeclared identifier 'builtin_ia32_crc32si' return builtin_ia32_crc32si(C, D); ^ In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2: In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:21: /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"

error "This header is only meant to be used on x86 and x64 architecture"

^ /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:5: error: use of undeclared identifier 'builtin_ia32_emms'; did you mean 'builtin_isless'? __builtin_ia32_emms(); ^ /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:5: note: 'builtin_isless' declared here /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:25: error: too few arguments to function call, expected 2, have 0 builtin_ia32_emms();


/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:54:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:71:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
    return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
           ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:133:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
    return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:163:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
    return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:193:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
    return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:220:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
    return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:243:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
    return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:264:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
    return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:291:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
    return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:314:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
    return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:335:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
    return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [CMakeFiles/cmTC_b83ab.dir/src.cxx.o] Error 1
make: *** [cmTC_b83ab/fast] Error 2

...and run output:

Return value: 1
Source file was:

#include <immintrin.h>
int main()
{
    __m256 _a = _mm256_set1_ps(1.f);
    __m256 _b = _mm256_set1_ps(2.f);
    __m256 _c = _mm256_set1_ps(3.f);
    __m256 _res = _mm256_fmadd_ps(_a, _b, _c);
    return 0;
}
Performing C++ SOURCE FILE Test MMX_FOUND failed with the following output:
Change Dir: /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_4f8eb/fast && make -j32 -f CMakeFiles/cmTC_4f8eb.dir/build.make CMakeFiles/cmTC_4f8eb.dir/build
Building CXX object CMakeFiles/cmTC_4f8eb.dir/src.cxx.o
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang++ --target=arm-linux-ohos --gcc-toolchain=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm --sysroot=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/sysroot    -fobjc-arc -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -march=armv7a  -mfloat-abi=softfp -Wno-error=register -Wno-unused-but-set-variable -march=armv7-a -D__MUSL__ -DMMX_FOUND -mmmx -fPIE   -o CMakeFiles/cmTC_4f8eb.dir/src.cxx.o -c /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx
clang++: warning: argument unused during compilation: '--gcc-toolchain=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-mmmx' [-Wunused-command-line-argument]
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
 ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
    __builtin_ia32_emms();
    ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:5: note: '__builtin_isless' declared here
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:25: error: too few arguments to function call, expected 2, have 0
    __builtin_ia32_emms();
    ~~~~~~~~~~~~~~~~~~~~^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:54:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:71:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
    return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
           ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:133:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
    return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:163:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
    return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:193:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
    return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:220:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
    return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:243:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
    return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:264:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
    return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:291:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
    return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:314:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
    return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:335:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
    return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:356:19: error: use of undeclared identifier '__builtin_ia32_paddb'
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:377:19: error: use of undeclared identifier '__builtin_ia32_paddw'
    return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:398:19: error: use of undeclared identifier '__builtin_ia32_paddd'
    return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:420:19: error: use of undeclared identifier '__builtin_ia32_paddsb'
    return (__m64)__builtin_ia32_paddsb((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:443:19: error: use of undeclared identifier '__builtin_ia32_paddsw'
    return (__m64)__builtin_ia32_paddsw((__v4hi)__m1, (__v4hi)__m2);
                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [CMakeFiles/cmTC_4f8eb.dir/src.cxx.o] Error 1
make: *** [cmTC_4f8eb/fast] Error 2

...and run output:

Return value: 1
Source file was:

#include <mmintrin.h>
int main()
{
    _mm_setzero_si64();
    return 0;
}
Performing C++ SOURCE FILE Test SSE2_FOUND failed with the following output:
Change Dir: /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_4c3dd/fast && make -j32 -f CMakeFiles/cmTC_4c3dd.dir/build.make CMakeFiles/cmTC_4c3dd.dir/build
Building CXX object CMakeFiles/cmTC_4c3dd.dir/src.cxx.o
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang++ --target=arm-linux-ohos --gcc-toolchain=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm --sysroot=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/sysroot    -fobjc-arc -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -march=armv7a  -mfloat-abi=softfp -Wno-error=register -Wno-unused-but-set-variable -march=armv7-a -D__MUSL__ -DSSE2_FOUND -msse2 -fPIE   -o CMakeFiles/cmTC_4c3dd.dir/src.cxx.o -c /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx
clang++: warning: argument unused during compilation: '--gcc-toolchain=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-msse2' [-Wunused-command-line-argument]
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/emmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
 ^
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/emmintrin.h:17:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/xmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
 ^
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/emmintrin.h:17:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/xmmintrin.h:17:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
 ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
    __builtin_ia32_emms();
    ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:5: note: '__builtin_isless' declared here
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:25: error: too few arguments to function call, expected 2, have 0
    __builtin_ia32_emms();
    ~~~~~~~~~~~~~~~~~~~~^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:54:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:71:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
    return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
           ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:133:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
    return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:163:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
    return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:193:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
    return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:220:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
    return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:243:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
    return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:264:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
    return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:291:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
    return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:314:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
    return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:335:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
    return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:356:19: error: use of undeclared identifier '__builtin_ia32_paddb'
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:377:19: error: use of undeclared identifier '__builtin_ia32_paddw'
    return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:398:19: error: use of undeclared identifier '__builtin_ia32_paddd'
    return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2);
                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [CMakeFiles/cmTC_4c3dd.dir/src.cxx.o] Error 1
make: *** [cmTC_4c3dd/fast] Error 2

...and run output:

Return value: 1
Source file was:

#include <emmintrin.h>
int main()
{
    _mm_setzero_si128();
    return 0;
}
Performing C++ SOURCE FILE Test SSE3_FOUND failed with the following output:
Change Dir: /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_41aa1/fast && make -j32 -f CMakeFiles/cmTC_41aa1.dir/build.make CMakeFiles/cmTC_41aa1.dir/build
Building CXX object CMakeFiles/cmTC_41aa1.dir/src.cxx.o
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang++ --target=arm-linux-ohos --gcc-toolchain=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm --sysroot=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/sysroot    -fobjc-arc -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -march=armv7a  -mfloat-abi=softfp -Wno-error=register -Wno-unused-but-set-variable -march=armv7-a -D__MUSL__ -DSSE3_FOUND -msse3 -fPIE   -o CMakeFiles/cmTC_41aa1.dir/src.cxx.o -c /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx
clang++: warning: argument unused during compilation: '--gcc-toolchain=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/pmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
 ^
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/pmmintrin.h:17:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/emmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
 ^
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/pmmintrin.h:17:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/emmintrin.h:17:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/xmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
 ^
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/pmmintrin.h:17:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/emmintrin.h:17:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/xmmintrin.h:17:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
 ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
    __builtin_ia32_emms();
    ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:5: note: '__builtin_isless' declared here
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:25: error: too few arguments to function call, expected 2, have 0
    __builtin_ia32_emms();
    ~~~~~~~~~~~~~~~~~~~~^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:54:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:71:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
    return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
           ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:133:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
    return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:163:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
    return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:193:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
    return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:220:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
    return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:243:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
    return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:264:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
    return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:291:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
    return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:314:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
    return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:335:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
    return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:356:19: error: use of undeclared identifier '__builtin_ia32_paddb'
    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:377:19: error: use of undeclared identifier '__builtin_ia32_paddw'
    return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [CMakeFiles/cmTC_41aa1.dir/src.cxx.o] Error 1
make: *** [cmTC_41aa1/fast] Error 2

...and run output:

Return value: 1
Source file was:

#include <pmmintrin.h>
int main()
{
    __m128d a = _mm_set1_pd(6.28);
    __m128d b = _mm_set1_pd(3.14);
    __m128d result = _mm_addsub_pd(a, b);
    result = _mm_movedup_pd(result);
    return 0;
}
Performing C++ SOURCE FILE Test AVX_FOUND failed with the following output:
Change Dir: /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_ed148/fast && make -j32 -f CMakeFiles/cmTC_ed148.dir/build.make CMakeFiles/cmTC_ed148.dir/build
Building CXX object CMakeFiles/cmTC_ed148.dir/src.cxx.o
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang++ --target=arm-linux-ohos --gcc-toolchain=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm --sysroot=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/sysroot    -fobjc-arc -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -march=armv7a  -mfloat-abi=softfp -Wno-error=register -Wno-unused-but-set-variable -march=armv7-a -D__MUSL__ -DAVX_FOUND -mavx -fPIE   -o CMakeFiles/cmTC_ed148.dir/src.cxx.o -c /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx
clang++: warning: argument unused during compilation: '--gcc-toolchain=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-mavx' [-Wunused-command-line-argument]
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
 ^
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:17:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/x86gprintrin.h:15:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/hresetintrin.h:42:27: error: invalid input constraint 'a' in asm
  __asm__ ("hreset $0" :: "a"(__eax));
                          ^
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:17:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/x86gprintrin.h:25:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:33:10: error: use of undeclared identifier '__builtin_ia32_crc32qi'
  return __builtin_ia32_crc32qi(__C, __D);
         ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:53:10: error: use of undeclared identifier '__builtin_ia32_crc32hi'; did you mean '__builtin_arm_crc32h'?
  return __builtin_ia32_crc32hi(__C, __D);
         ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:53:10: note: '__builtin_arm_crc32h' declared here
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:73:10: error: use of undeclared identifier '__builtin_ia32_crc32si'
  return __builtin_ia32_crc32si(__C, __D);
         ^
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:21:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
 ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
    __builtin_ia32_emms();
    ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:5: note: '__builtin_isless' declared here
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:25: error: too few arguments to function call, expected 2, have 0
    __builtin_ia32_emms();
    ~~~~~~~~~~~~~~~~~~~~^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:54:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:71:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
    return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
           ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:133:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
    return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:163:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
    return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:193:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
    return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:220:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
    return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:243:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
    return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:264:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
    return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:291:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
    return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:314:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
    return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:335:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
    return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [CMakeFiles/cmTC_ed148.dir/src.cxx.o] Error 1
make: *** [cmTC_ed148/fast] Error 2

...and run output:

Return value: 1
Source file was:

#include <immintrin.h>
int main()
{
    __m256 a = _mm256_set_ps (-1.0f, 2.0f, -3.0f, 4.0f, -1.0f, 2.0f, -3.0f, 4.0f);
    __m256 b = _mm256_set_ps (1.0f, 2.0f, 3.0f, 4.0f, 1.0f, 2.0f, 3.0f, 4.0f);
    __m256 result = _mm256_add_ps (a, b);
    return 0;
}
Performing C++ SOURCE FILE Test AVX2_FOUND failed with the following output:
Change Dir: /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_7ab52/fast && make -j32 -f CMakeFiles/cmTC_7ab52.dir/build.make CMakeFiles/cmTC_7ab52.dir/build
Building CXX object CMakeFiles/cmTC_7ab52.dir/src.cxx.o
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang++ --target=arm-linux-ohos --gcc-toolchain=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm --sysroot=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/sysroot    -fobjc-arc -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -march=armv7a  -mfloat-abi=softfp -Wno-error=register -Wno-unused-but-set-variable -march=armv7-a -D__MUSL__ -DAVX2_FOUND -mavx2 -fPIE   -o CMakeFiles/cmTC_7ab52.dir/src.cxx.o -c /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx
clang++: warning: argument unused during compilation: '--gcc-toolchain=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-mavx2' [-Wunused-command-line-argument]
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
 ^
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:17:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/x86gprintrin.h:15:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/hresetintrin.h:42:27: error: invalid input constraint 'a' in asm
  __asm__ ("hreset $0" :: "a"(__eax));
                          ^
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:17:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/x86gprintrin.h:25:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:33:10: error: use of undeclared identifier '__builtin_ia32_crc32qi'
  return __builtin_ia32_crc32qi(__C, __D);
         ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:53:10: error: use of undeclared identifier '__builtin_ia32_crc32hi'; did you mean '__builtin_arm_crc32h'?
  return __builtin_ia32_crc32hi(__C, __D);
         ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:53:10: note: '__builtin_arm_crc32h' declared here
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:73:10: error: use of undeclared identifier '__builtin_ia32_crc32si'
  return __builtin_ia32_crc32si(__C, __D);
         ^
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:21:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
 ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
    __builtin_ia32_emms();
    ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:5: note: '__builtin_isless' declared here
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:25: error: too few arguments to function call, expected 2, have 0
    __builtin_ia32_emms();
    ~~~~~~~~~~~~~~~~~~~~^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:54:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:71:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
    return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
           ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:133:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
    return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:163:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
    return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:193:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
    return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:220:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
    return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:243:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
    return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:264:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
    return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:291:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
    return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:314:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
    return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:335:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
    return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [CMakeFiles/cmTC_7ab52.dir/src.cxx.o] Error 1
make: *** [cmTC_7ab52/fast] Error 2

...and run output:

Return value: 1
Source file was:

#include <immintrin.h>
int main()
{
    __m256i a = _mm256_set_epi32 (-1, 2, -3, 4, -1, 2, -3, 4);
    __m256i result = _mm256_abs_epi32 (a);
    return 0;
}
Performing C++ SOURCE FILE Test AVX512F_FOUND failed with the following output:
Change Dir: /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_47686/fast && make -j32 -f CMakeFiles/cmTC_47686.dir/build.make CMakeFiles/cmTC_47686.dir/build
Building CXX object CMakeFiles/cmTC_47686.dir/src.cxx.o
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/bin/clang++ --target=arm-linux-ohos --gcc-toolchain=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm --sysroot=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/sysroot    -fobjc-arc -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -march=armv7a  -mfloat-abi=softfp -Wno-error=register -Wno-unused-but-set-variable -march=armv7-a -D__MUSL__ -DAVX512F_FOUND -mavx512f -fPIE   -o CMakeFiles/cmTC_47686.dir/src.cxx.o -c /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx
clang++: warning: argument unused during compilation: '--gcc-toolchain=/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-mavx512f' [-Wunused-command-line-argument]
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
 ^
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:17:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/x86gprintrin.h:15:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/hresetintrin.h:42:27: error: invalid input constraint 'a' in asm
  __asm__ ("hreset $0" :: "a"(__eax));
                          ^
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:17:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/x86gprintrin.h:25:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:33:10: error: use of undeclared identifier '__builtin_ia32_crc32qi'
  return __builtin_ia32_crc32qi(__C, __D);
         ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:53:10: error: use of undeclared identifier '__builtin_ia32_crc32hi'; did you mean '__builtin_arm_crc32h'?
  return __builtin_ia32_crc32hi(__C, __D);
         ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:53:10: note: '__builtin_arm_crc32h' declared here
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/crc32intrin.h:73:10: error: use of undeclared identifier '__builtin_ia32_crc32si'
  return __builtin_ia32_crc32si(__C, __D);
         ^
In file included from /Users/wangp/Documents/opencvHarmonyTwo/tpc_c_cplusplus-master/thirdparty/Paddle-Lite/Paddle-Lite-v2.12/armeabi-v7a-build/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/immintrin.h:21:
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
 ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
    __builtin_ia32_emms();
    ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:5: note: '__builtin_isless' declared here
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:37:25: error: too few arguments to function call, expected 2, have 0
    __builtin_ia32_emms();
    ~~~~~~~~~~~~~~~~~~~~^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:54:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:71:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
    return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
           ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:133:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
    return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:163:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
    return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:193:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
    return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:220:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
    return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:243:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
    return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:264:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
    return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:291:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
    return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:314:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
    return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
                  ^
/Users/wangp/Library/Huawei/ohos/tools/OH_SDK/ohos-sdk/darwin/native/llvm/lib/clang/15.0.4/include/mmintrin.h:335:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
    return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [CMakeFiles/cmTC_47686.dir/src.cxx.o] Error 1
make: *** [cmTC_47686/fast] Error 2

...and run output:

Return value: 1
Source file was:

#include <immintrin.h>
int main()
{
    __m512i a = _mm512_set_epi32 (-1, 2, -3, 4, -1, 2, -3, 4,
                                  13, -5, 6, -7, 9, 2, -6, 3);
    __m512i result = _mm512_abs_epi32 (a);
    return 0;
}
zhupengyang commented 7 months ago

clang++: error: unsupported argument 'armv7-a' to option '-march='

把 cmake 文件中的 -march=armv7-a 删掉,用默认选项试下。或者查下鸿蒙支持的选项是什么

hong19860320 commented 7 months ago

Hi @fanjiduo ,问题解决了吗?如果没有其它问题,可以关闭 issue 哈~