1.1K Star 6.3K Fork 5.3K

OpenHarmony / docs

 / 详情

[Bug]: 4.1-Release全量编译问题

待办的
创建于  
2024-05-21 15:04

发生了什么问题?

全量编译问题
[OHOS INFO] [49044/152250] CXX obj/third_party/vixl/src/aarch32/libvixl/disasm-aarch32.o

[OHOS ERROR] [49023/152250] CXX clang_x64/obj/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/libcgx8664/asm_assembler.o
[OHOS ERROR] FAILED: clang_x64/obj/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/libcgx8664/asm_assembler.o
[OHOS ERROR] /usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ -MMD -MF clang_x64/obj/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/libcgx8664/asm_assembler.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCOMPONENT_BUILD -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/litecg -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/ad -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/ad/target -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/be -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_driver/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_me/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mempool/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ipa/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ipa/include/old -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_phase/include -I../../third_party/bounds_checking_function/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64 -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/be/x86_64 -Iclang_x64/override/third_party -I../.. -Iclang_x64/gen -fno-strict-aliasing -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -m64 -march=x86-64 --param=ssp-buffer-size=4 -fstack-protector-strong -fPIC -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=sizeof-array-div -Wno-error=implicit-fallthrough -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=sign-compare -Wno-error=int-in-bool-context -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-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fno-common -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -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 -frtti -O2 -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -Wall -fstack-protector-strong -fvisibility=hidden -pipe -Wno-c99-designator -Wno-range-loop-construct -Werror -Wdate-time -Wfloat-equal -DDYNAMICLANG -DRC_NO_MMAP -DMIR_FEATURE_FULL=1 -DMIR_JAVA=1 -std=c++17 -fno-common -fPIC -DTARGX86_64 -c ../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/asm_assembler.cpp -o clang_x64/obj/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/libcgx8664/asm_assembler.o
[OHOS ERROR] In file included from ../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/asm_assembler.cpp:16:
[OHOS ERROR] In file included from ../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/assembler/asm_assembler.h:19:
[OHOS ERROR] In file included from ../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/assembler/assembler.h:28:
[OHOS ERROR] ../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/assembler/operand.h:142:68: error: implicit instantiation of undefined template 'std::array<std::array<assembler::Reg, 35>, 6>'
[OHOS ERROR] static const std::array<std::array<Reg, kMaxRegNum>, kRegSizeType> kRegArray = {
[OHOS ERROR] ^
[OHOS ERROR] /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/tuple:1595:45: note: template is declared here
[OHOS ERROR] template<typename _Tp, size_t _Nm> struct array;
[OHOS ERROR] ^
[OHOS ERROR] 1 error generated.

[OHOS ERROR] [49025/152250] CXX clang_x64/obj/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/libcgx8664/elf_assembler.o
[OHOS ERROR] FAILED: clang_x64/obj/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/libcgx8664/elf_assembler.o
[OHOS ERROR] /usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ -MMD -MF clang_x64/obj/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/libcgx8664/elf_assembler.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCOMPONENT_BUILD -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/litecg -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/ad -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/ad/target -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/be -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_driver/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_me/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mempool/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ipa/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ipa/include/old -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_phase/include -I../../third_party/bounds_checking_function/include -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64 -I../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/be/x86_64 -Iclang_x64/override/third_party -I../.. -Iclang_x64/gen -fno-strict-aliasing -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -B../../third_party/binutils/Linux_x64/Release/bin -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -m64 -march=x86-64 --param=ssp-buffer-size=4 -fstack-protector-strong -fPIC -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=sizeof-array-div -Wno-error=implicit-fallthrough -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=sign-compare -Wno-error=int-in-bool-context -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-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fno-common -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -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 -frtti -O2 -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -Wall -fstack-protector-strong -fvisibility=hidden -pipe -Wno-c99-designator -Wno-range-loop-construct -Werror -Wdate-time -Wfloat-equal -DDYNAMICLANG -DRC_NO_MMAP -DMIR_FEATURE_FULL=1 -DMIR_JAVA=1 -std=c++17 -fno-common -fPIC -DTARGX86_64 -c ../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/elf_assembler.cpp -o clang_x64/obj/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/libcgx8664/elf_assembler.o
[OHOS ERROR] In file included from ../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/elf_assembler.cpp:17:
[OHOS ERROR] In file included from ../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/assembler/elf_assembler.h:19:
[OHOS ERROR] In file included from ../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/assembler/assembler.h:28:
[OHOS ERROR] ../../arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/assembler/operand.h:142:68: error: implicit instantiation of undefined template 'std::array<std::array<assembler::Reg, 35>, 6>'
[OHOS ERROR] static const std::array<std::array<Reg, kMaxRegNum>, kRegSizeType> kRegArray = {
[OHOS ERROR] ^
[OHOS ERROR] /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/tuple:1595:45: note: template is declared here
[OHOS ERROR] template<typename _Tp, size_t _Nm> struct array;
[OHOS ERROR] ^
[OHOS ERROR] 1 error generated.

[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR] File "/home/laiy/OpenHarmony/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR] return func(*args, **kwargs)
[OHOS ERROR] File "/home/laiy/OpenHarmony/build/hb/modules/ohos_build_module.py", line 67, in run
[OHOS ERROR] raise exception
[OHOS ERROR] File "/home/laiy/OpenHarmony/build/hb/modules/ohos_build_module.py", line 65, in run
[OHOS ERROR] super().run()
[OHOS ERROR] File "/home/laiy/OpenHarmony/build/hb/modules/interface/build_module_interface.py", line 72, in run
[OHOS ERROR] raise exception
[OHOS ERROR] File "/home/laiy/OpenHarmony/build/hb/modules/interface/build_module_interface.py", line 70, in run
[OHOS ERROR] self._target_compilation()
[OHOS ERROR] File "/home/laiy/OpenHarmony/build/hb/modules/ohos_build_module.py", line 103, in _target_compilation
[OHOS ERROR] self.target_compiler.run()
[OHOS ERROR] File "/home/laiy/OpenHarmony/build/hb/services/ninja.py", line 38, in run
[OHOS ERROR] self._execute_ninja_cmd()
[OHOS ERROR] File "/home/laiy/OpenHarmony/build/hb/services/ninja.py", line 69, in _execute_ninja_cmd
[OHOS ERROR] SystemUtil.exec_command(
[OHOS ERROR] File "/home/laiy/OpenHarmony/build/hb/util/system_util.py", line 64, in exec_command
[OHOS ERROR] LogUtil.get_failed_log(log_path)
[OHOS ERROR] File "/home/laiy/OpenHarmony/build/hb/util/log_util.py", line 193, in get_failed_log
[OHOS ERROR] LogUtil.get_compiler_failed_log(log_path)
[OHOS ERROR] File "/home/laiy/OpenHarmony/build/hb/util/log_util.py", line 180, in get_compiler_failed_log
[OHOS ERROR] raise OHOSException(
[OHOS ERROR] exceptions.ohos_exception.OHOSException: COMPILE Failed! Please check error in /home/laiy/OpenHarmony/out/rk3568/error.log, and for more build information in /home/laiy/OpenHarmony/out/rk3568/build.log
[OHOS ERROR]

[OHOS ERROR] Code: 4000
[OHOS ERROR]
[OHOS ERROR] Reason: COMPILE Failed! Please check error in /home/laiy/OpenHarmony/out/rk3568/error.log, and for more build information in /home/laiy/OpenHarmony/out/rk3568/build.log
[OHOS ERROR]
[OHOS ERROR] Error Type: Ninja build error
[OHOS ERROR]
[OHOS ERROR] Description: An unknown error occurred while executing 'ninja -C'.
[OHOS ERROR]
[OHOS ERROR] Solution: no solution
[OHOS ERROR]

期望行为是什么?

因为系统应用需要full-sdk,所以尝试全量编译

如何复现该缺陷

命令执行顺序
repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-4.1-Release --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
bash build/prebuilts_download.sh
python3 -m pip install build/hb
hb set
standard
rk3568
hb build -f

其他补充信息

版本或分支信息

  • master
  • Release 4.1
  • Release 4.0
  • Release 3.2

评论 (1)

my li 创建了任务
my li 添加了
 
bug
标签
展开全部操作日志

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @NEEN @zengyawen @时睿 @Peter_1988 。如果需要调整订阅PR、Issue的变更状态,请访问链接

Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer @NEEN @zengyawen @时睿 @Peter_1988 for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

openharmony_ci 添加了
 
waiting_for_assign
标签

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
7387629 openharmony ci 1656582662
其他
1
https://gitee.com/openharmony/docs.git
git@gitee.com:openharmony/docs.git
openharmony
docs
docs

搜索帮助