使用LinuxMint-20.3系统编译OpenHarmony 3.2 Release时遇到如下错误:

[OHOS ERROR] [26/28687] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_image_animator.o
[OHOS ERROR] FAILED: obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_image_animator.o 
[OHOS ERROR] /usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ -MMD -MF obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_image_animator.o.d -DOHOS_PLATFORM -DOHOS_STANDARD_SYSTEM -DIMAGE_SUPPORTED -DVIDEO_SUPPORTED -DWEB_SUPPORTED -DABILITY_COMPONENT_SUPPORTED -DGPU_DISABLED -DFORM_SUPPORTED -DREMOTE_WINDOW_SUPPORTED -DXCOMPONENT_SUPPORTED -DPLUGIN_COMPONENT_SUPPORTED -DPIXEL_MAP_SUPPORTED -DENABLE_ROSEN_BACKEND -DENABLE_STANDARD_INPUT -DMULTIPLE_WINDOW_SUPPORTED -DHIDDEN_SYMBOL -DOHOS_PLATFORM -DOHOS_STANDARD_SYSTEM -DIMAGE_SUPPORTED -DVIDEO_SUPPORTED -DWEB_SUPPORTED -DABILITY_COMPONENT_SUPPORTED -DGPU_DISABLED -DFORM_SUPPORTED -DREMOTE_WINDOW_SUPPORTED -DXCOMPONENT_SUPPORTED -DPLUGIN_COMPONENT_SUPPORTED -DPIXEL_MAP_SUPPORTED -DENABLE_ROSEN_BACKEND -DENABLE_STANDARD_INPUT -DMULTIPLE_WINDOW_SUPPORTED -DHIDDEN_SYMBOL -DV8_DEPRECATION_WARNINGS -D_GNU_SOURCE -DHAVE_SYS_UIO_H -D__MUSL__ -D_LIBCPP_HAS_MUSL_LIBC -D__BUILD_LINUX_WITH_CLANG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DCOMPONENT_BUILD -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__MUSL__ -D_LIBCPP_HAS_MUSL_LIBC -D__BUILD_LINUX_WITH_CLANG -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DACE_LOG_TAG=\"Ace\" -DACE_INSTANCE_LOG -DOS_ACCOUNT_EXISTS -Iobj/third_party/musl/usr/include/arm-linux-ohos -Ioverride/third_party -I../.. -Igen -I../../foundation/arkui/ace_engine -I../../foundation/arkui/ace_engine/frameworks -Iarkui/framework -I../../third_party/zlib -I../../base/global/resource_management/frameworks/resmgr/include -I../../base/global/resource_management/interfaces/inner_api/include -I../../foundation/arkui/ace_engine/adapter/ohos/services/uiservice/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector-strong -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -ffunction-sections -fno-short-enums --target=arm-linux-ohos -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -mfpu=neon -mthumb -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-error=c99-designator -Wno-error=anon-enum-enum-conversion -Wno-error=implicit-fallthrough -Wno-error=sizeof-array-div -Wno-error=reorder-init-list -Wno-error=range-loop-construct -Wno-error=deprecated-copy -Wno-error=implicit-int-float-conversion -Wno-error=inconsistent-dllimport -Wno-error=unknown-warning-option -Wno-error=abstract-final-class -Wno-error=sign-compare -Wno-error=int-in-bool-context -Wno-error=xor-used-as-pow -Wno-error=return-stack-address -Wno-error=dangling-gsl -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g2 -ggnu-pubnames -fno-common -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -fvisibility=hidden -fdata-sections -ffunction-sections -Wno-non-c-typedef-for-linkage -Os -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -std=c++17 -fno-exceptions -fno-rtti --sysroot=obj/third_party/musl -fvisibility-inlines-hidden -fvisibility-inlines-hidden -Wno-non-c-typedef-for-linkage -Os -c ../../foundation/arkui/ace_engine/frameworks/bridge/common/dom/dom_image_animator.cpp -o obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_image_animator.o
[OHOS ERROR] [27/28687] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/card_frontend_ohos/card_frontend_delegate.o
[OHOS ERROR] FAILED: obj/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/card_frontend_ohos/card_frontend_delegate.o 
[OHOS ERROR] /usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ -MMD -MF obj/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/card_frontend_ohos/card_frontend_delegate.o.d -DOHOS_PLATFORM -DOHOS_STANDARD_SYSTEM -DIMAGE_SUPPORTED -DVIDEO_SUPPORTED -DWEB_SUPPORTED -DABILITY_COMPONENT_SUPPORTED -DGPU_DISABLED -DFORM_SUPPORTED -DREMOTE_WINDOW_SUPPORTED -DXCOMPONENT_SUPPORTED -DPLUGIN_COMPONENT_SUPPORTED -DPIXEL_MAP_SUPPORTED -DENABLE_ROSEN_BACKEND -DENABLE_STANDARD_INPUT -DMULTIPLE_WINDOW_SUPPORTED -DHIDDEN_SYMBOL -DOHOS_PLATFORM -DOHOS_STANDARD_SYSTEM -DIMAGE_SUPPORTED -DVIDEO_SUPPORTED -DWEB_SUPPORTED -DABILITY_COMPONENT_SUPPORTED -DGPU_DISABLED -DFORM_SUPPORTED -DREMOTE_WINDOW_SUPPORTED -DXCOMPONENT_SUPPORTED -DPLUGIN_COMPONENT_SUPPORTED -DPIXEL_MAP_SUPPORTED -DENABLE_ROSEN_BACKEND -DENABLE_STANDARD_INPUT -DMULTIPLE_WINDOW_SUPPORTED -DHIDDEN_SYMBOL -DV8_DEPRECATION_WARNINGS -D_GNU_SOURCE -DHAVE_SYS_UIO_H -D__MUSL__ -D_LIBCPP_HAS_MUSL_LIBC -D__BUILD_LINUX_WITH_CLANG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DCOMPONENT_BUILD -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__MUSL__ -D_LIBCPP_HAS_MUSL_LIBC -D__BUILD_LINUX_WITH_CLANG -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DACE_LOG_TAG=\"Ace\" -DACE_INSTANCE_LOG -DOS_ACCOUNT_EXISTS -Iobj/third_party/musl/usr/include/arm-linux-ohos -Ioverride/third_party -I../.. -Igen -I../../foundation/arkui/ace_engine -I../../foundation/arkui/ace_engine/frameworks -Iarkui/framework -I../../third_party/zlib -I../../base/global/resource_management/frameworks/resmgr/include -I../../base/global/resource_management/interfaces/inner_api/include -I../../foundation/arkui/ace_engine/adapter/ohos/services/uiservice/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector-strong -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -ffunction-sections -fno-short-enums --target=arm-linux-ohos -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -mfpu=neon -mthumb -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-error=c99-designator -Wno-error=anon-enum-enum-conversion -Wno-error=implicit-fallthrough -Wno-error=sizeof-array-div -Wno-error=reorder-init-list -Wno-error=range-loop-construct -Wno-error=deprecated-copy -Wno-error=implicit-int-float-conversion -Wno-error=inconsistent-dllimport -Wno-error=unknown-warning-option -Wno-error=abstract-final-class -Wno-error=sign-compare -Wno-error=int-in-bool-context -Wno-error=xor-used-as-pow -Wno-error=return-stack-address -Wno-error=dangling-gsl -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -O2 -fno-ident -fdata-sections -ffunction-sections -fomit-frame-pointer -gdwarf-3 -g2 -ggnu-pubnames -fno-common -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -fvisibility=hidden -fdata-sections -ffunction-sections -Wno-non-c-typedef-for-linkage -Os -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -std=c++17 -fno-exceptions -fno-rtti --sysroot=obj/third_party/musl -fvisibility-inlines-hidden -fvisibility-inlines-hidden -Wno-non-c-typedef-for-linkage -Os -c ../../foundation/arkui/ace_engine/frameworks/bridge/card_frontend/card_frontend_delegate.cpp -o obj/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/card_frontend_ohos/card_frontend_delegate.o
[OHOS INFO] ---------------------------------------------
[OHOS INFO] ccache summary:
[OHOS INFO] cache hit (direct)  : 0
[OHOS INFO] cache hit (preprocessed)  : 0
[OHOS INFO] cache miss  : 0
[OHOS INFO] hit rate:  0.00% 
[OHOS INFO] mis rate: 0.00% 
[OHOS INFO] ---------------------------------------------
[OHOS INFO] c targets overlap rate statistics
[OHOS INFO] subsystem       	files NO.	percentage	builds NO.	percentage	overlap rate
[OHOS INFO] aafwk           	      21	2.1%	      21	2.1%	1.00
[OHOS INFO] ability         	      21	2.1%	      21	2.1%	1.00
[OHOS INFO] arkXtest        	       1	0.1%	       1	0.1%	1.00
[OHOS INFO] arkcompiler     	     323	31.8%	     323	31.8%	1.00
[OHOS INFO] arkui           	      79	7.8%	      79	7.8%	1.00
[OHOS INFO] barrierfree     	       2	0.2%	       2	0.2%	1.00
[OHOS INFO] commonlibrary   	      39	3.8%	      39	3.8%	1.00
[OHOS INFO] customization   	       3	0.3%	       3	0.3%	1.00
[OHOS INFO] developtools    	      43	4.2%	      43	4.2%	1.00
[OHOS INFO] distributeddatamgr	       2	0.2%	       2	0.2%	1.00
[OHOS INFO] filemanagement  	       1	0.1%	       1	0.1%	1.00
[OHOS INFO] graphic         	       1	0.1%	       1	0.1%	1.00
[OHOS INFO] hdf             	     113	11.1%	     113	11.1%	1.00
[OHOS INFO] hiviewdfx       	      10	1.0%	      10	1.0%	1.00
[OHOS INFO] inputmethod     	       2	0.2%	       2	0.2%	1.00
[OHOS INFO] multimedia      	       1	0.1%	       1	0.1%	1.00
[OHOS INFO] resourceschedule	       2	0.2%	       2	0.2%	1.00
[OHOS INFO] securec         	      78	7.7%	      78	7.7%	1.00
[OHOS INFO] security        	       6	0.6%	       6	0.6%	1.00
[OHOS INFO] startup         	      59	5.8%	      59	5.8%	1.00
[OHOS INFO] test            	       1	0.1%	       1	0.1%	1.00
[OHOS INFO] theme           	       2	0.2%	       2	0.2%	1.00
[OHOS INFO] third_party     	     291	28.6%	     291	28.6%	1.00
[OHOS INFO] thirdparty      	     291	28.6%	     291	28.6%	1.00
[OHOS INFO] updater         	       2	0.2%	       2	0.2%	1.00
[OHOS INFO] window          	       3	0.3%	       3	0.3%	1.00
[OHOS INFO] 
[OHOS INFO] c overall build overlap rate: 1.00
[OHOS INFO] 
[OHOS INFO] 
[OHOS ERROR] Please check build log in /home/ufo/openharmony/rk3568/out/rk3568/build.log
=====build  error=====

添加内存大于16GB,错误消除。但是曾经使用8GB内存编译过同样的源码而没有出现问题,不知什么原因,还是跟交换分区大小有关系?

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐