openharmony4.0release版本编译的时候报错,错误码4000,有没有大佬知道的指点一下
求助,这是截图和报错信息:

报错:
[OHOS ERROR] [2928/46454] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_badge.o
[OHOS ERROR] FAILED: obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_badge.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_badge.o.d -DOHOS_PLATFORM -DOHOS_STANDARD_SYSTEM -DIMAGE_SUPPORTED -DVIDEO_SUPPORTED -DSUPPORT_JSSTACK -DWEB_SUPPORTED -DABILITY_COMPONENT_SUPPORTED -DGPU_DISABLED -DREMOTE_WINDOW_SUPPORTED -DEFFECT_COMPONENT_SUPPORTED -DXCOMPONENT_SUPPORTED -DPIXEL_MAP_SUPPORTED -DENABLE_ROSEN_BACKEND -DENABLE_STANDARD_INPUT -DMULTIPLE_WINDOW_SUPPORTED -DHIDDEN_SYMBOL -DWINDOW_SCENE_SUPPORTED -DENABLE_DRAG_FRAMEWORK -DMEDIA_LIBRARY_EXISTS -DFORM_SUPPORTED -DPLUGIN_COMPONENT_SUPPORTED -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 -DCOMPONENT_BUILD -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DACE_LOG_TAG=\"Ace\" -DACE_INSTANCE_LOG -DUSE_GRAPHIC_TEXT_GINE -DOS_ACCOUNT_EXISTS -DSECURITY_COMPONENT_ENABLE -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 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -flto=thin -fsplit-lto-unit -ffunction-sections -fno-short-enums --target=arm-linux-ohos -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a --param=ssp-buffer-size=4 -fstack-protector-strong -fPIC -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-unused-but-set-variable -Wno-deprecated-declarations -Wno-unused-but-set-parameter -Wno-null-pointer-subtraction -Wno-unqualified-std-cast-call -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 -Werror=return-stack-address -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_badge.cpp -o obj/foundation/arkui/ace_engine/frameworks/bridge/common/dom/bridge_common_ohos/dom_badge.o
[OHOS ERROR] [2934/46454] CXX obj/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/card_frontend_ohos/card_frontend_declarative.o
[OHOS ERROR] FAILED: obj/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/card_frontend_ohos/card_frontend_declarative.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_declarative.o.d -DOHOS_PLATFORM -DOHOS_STANDARD_SYSTEM -DIMAGE_SUPPORTED -DVIDEO_SUPPORTED -DSUPPORT_JSSTACK -DWEB_SUPPORTED -DABILITY_COMPONENT_SUPPORTED -DGPU_DISABLED -DREMOTE_WINDOW_SUPPORTED -DEFFECT_COMPONENT_SUPPORTED -DXCOMPONENT_SUPPORTED -DPIXEL_MAP_SUPPORTED -DENABLE_ROSEN_BACKEND -DENABLE_STANDARD_INPUT -DMULTIPLE_WINDOW_SUPPORTED -DHIDDEN_SYMBOL -DWINDOW_SCENE_SUPPORTED -DENABLE_DRAG_FRAMEWORK -DMEDIA_LIBRARY_EXISTS -DFORM_SUPPORTED -DPLUGIN_COMPONENT_SUPPORTED -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 -DCOMPONENT_BUILD -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DACE_LOG_TAG=\"Ace\" -DACE_INSTANCE_LOG -DUSE_GRAPHIC_TEXT_GINE -DOS_ACCOUNT_EXISTS -DSECURITY_COMPONENT_ENABLE -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 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -flto=thin -fsplit-lto-unit -ffunction-sections -fno-short-enums --target=arm-linux-ohos -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a --param=ssp-buffer-size=4 -fstack-protector-strong -fPIC -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-unused-but-set-variable -Wno-deprecated-declarations -Wno-unused-but-set-parameter -Wno-null-pointer-subtraction -Wno-unqualified-std-cast-call -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 -Werror=return-stack-address -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_declarative.cpp -o obj/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/card_frontend_ohos/card_frontend_declarative.o
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR] File "/work/origin40/build/hb/services/ninja.py", line 69, in _execute_ninja_cmd
[OHOS ERROR] SystemUtil.exec_command(
[OHOS ERROR] File "/work/origin40/build/hb/util/system_util.py", line 64, in exec_command
[OHOS ERROR] raise OHOSException(
[OHOS ERROR] exceptions.ohos_exception.OHOSException: Please check build log in /work/origin40/out/rk3568/build.log
[OHOS ERROR]
[OHOS ERROR] During handling of the above exception, another exception occurred:
[OHOS ERROR]
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR] File "/work/origin40/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR] return func(*args, **kwargs)
[OHOS ERROR] File "/work/origin40/build/hb/modules/ohos_build_module.py", line 67, in run
[OHOS ERROR] raise exception
[OHOS ERROR] File "/work/origin40/build/hb/modules/ohos_build_module.py", line 65, in run
[OHOS ERROR] super().run()
[OHOS ERROR] File "/work/origin40/build/hb/modules/interface/build_module_interface.py", line 72, in run
[OHOS ERROR] raise exception
[OHOS ERROR] File "/work/origin40/build/hb/modules/interface/build_module_interface.py", line 70, in run
[OHOS ERROR] self._target_compilation()
[OHOS ERROR] File "/work/origin40/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
[OHOS ERROR] self.target_compiler.run()
[OHOS ERROR] File "/work/origin40/build/hb/services/ninja.py", line 38, in run
[OHOS ERROR] self._execute_ninja_cmd()
[OHOS ERROR] File "/work/origin40/build/hb/services/ninja.py", line 76, in _execute_ninja_cmd
[OHOS ERROR] raise OHOSException('ninja phase failed', '4000')
[OHOS ERROR] exceptions.ohos_exception.OHOSException: ninja phase failed
[OHOS ERROR]
[OHOS ERROR] Code: 4000
[OHOS ERROR]
[OHOS ERROR] Reason: ninja phase failed
[OHOS ERROR]
[OHOS ERROR] Solution: Please check the compile log at out/{compiling product}/build.log, If you could analyze build logs.
[OHOS ERROR] Or you can try the following steps to solve this problem:
[OHOS ERROR] 1. cd to OHOS root path
[OHOS ERROR] 2. run 'hb clean --all' or 'rm -rf out build/resources/args/*.json'.
[OHOS ERROR] 3. repo sync
[OHOS ERROR] 4. repo forall -c 'git lfs pull'
[OHOS ERROR] 5. bash build/prebuilts_download.sh
[OHOS ERROR] 6. rebuild your product or component
[OHOS ERROR] 7. check if any environment variables required by the building process are not set in build/compile_env_allowlist.json
[OHOS ERROR]
[OHOS ERROR] If you still cannot solve this problem, you could post this problem on:
[OHOS ERROR] https://gitee.com/openharmony/build/issues
[OHOS ERROR]
=====build error=====
更多推荐

所有评论(0)