【求助】【已解决】4.0-Beta2版本rk3568产品编译/third_party/chromium报错
1、问题描述 我按照third_party/chromium项目指导文档测试编译NWeb HAP,前面2步都成功了,但是执行到步骤3(./build.sh rk3568)一开始就遇到编译报错。 之所以要自己编译NWeb HAP是需要调研验证编译过程正常,为移植到loongarch做准备。 以下是第一条报错信息,完整
·
1、问题描述
我按照third_party/chromium项目指导文档 测试编译NWeb HAP,前面2步都成功了,但是执行到步骤3(./build.sh rk3568)一开始就遇到编译报错。
之所以要自己编译NWeb HAP是需要调研验证编译过程正常,为移植到loongarch做准备。
以下是第一条报错信息,完整编译日志见附件。虽然编译报错有明确的处理指引,但是自己尝试解决这个报错后,还会有其他新报错。提交这个求助消息的目的还是想确认指引文档是不是完备准确。
FAILED: obj/third_party/webrtc/rtc_base/criticalsection/recursive_critical_section.o
../../../../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang++ -MMD -MF obj/third_party/webrtc/rtc_base/criticalsection/recursive_critical_section.o.d -DUSE_AURA=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DNO_UNWIND_TABLES -D_GNU_SOURCE -DOSOHOS -DHAVE_SYS_UIO_H -D__MUSL__ -D_LIBCPP_HAS_MUSL_LIBC -D__BUILD_LINUX_WITH_CLANG -DCR_CLANG_REVISION=\"llvmorg-14-init-12719-gc4b45eeb-3\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBRTC_ENABLE_PROTOBUF=1 -DRTC_ENABLE_VP9 -DRTC_DAV1D_IN_INTERNAL_DECODER_FACTORY -DWEBRTC_HAVE_SCTP -DENABLE_EXTERNAL_AUTH -DWEBRTC_USE_H264 -DHAVE_WEBRTC_VIDEO -DLOGGING_INSIDE_WEBRTC -DWEBRTC_ARCH_ARM -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_HAS_NEON -DWEBRTC_LIBRARY_IMPL -DWEBRTC_ENABLE_AVX2 -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -I/openharmony/prebuilts/clang/ohos/linux-x86_64/llvm/include/libcxx-ohos/include/c++/v1 -I../.. -Igen -I../../third_party/webrtc_overrides -I../../third_party/webrtc -Igen/third_party/webrtc -I../../third_party/abseil-cpp -fprofile-sample-use=../../chrome/android/profiles/afdo.prof -fprofile-sample-accurate -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -ffp-contract=off -flto=thin -fsplit-lto-unit -fwhole-program-vtables -ffunction-sections -fno-short-enums --target=arm-linux-ohosmusl -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -no-canonical-prefixes -mfpu=neon -mthumb -Wall -Werror -Wextra -Wimplicit-fallthrough -Wunreachable-code-aggressive -Wthread-safety -Wno-psabi -Wno-unknown-pragmas -Wno-cpp -Wno-extra-tokens -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-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-error=implicit-function-declaration -Wno-error=non-c-typedef-for-linkage -Wno-c++11-narrowing -Wno-builtin-assume-aligned-alignment -Wno-missing-field-initializers -Wno-unused-parameter -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-psabi -Wno-ignored-pragma-optimize -Wshadow -Oz -fdata-sections -ffunction-sections -fno-unique-section-names -fomit-frame-pointer -g1 -gdwarf-aranges -fdebug-info-for-profiling -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors -Wglobal-constructors -Wno-shadow -std=c++17 -Wno-trigraphs -fno-aligned-new -fno-exceptions -fno-rtti --sysroot=../../../../../out/rk3568/obj/third_party/musl -fvisibility-inlines-hidden -c ../../third_party/webrtc/rtc_base/deprecated/recursive_critical_section.cc -o obj/third_party/webrtc/rtc_base/criticalsection/recursive_critical_section.o
In file included from ../../third_party/webrtc/rtc_base/deprecated/recursive_critical_section.cc:16:
In file included from ../../third_party/webrtc/rtc_base/checks.h:57:
../../third_party/abseil-cpp/absl/meta/type_traits.h:301:36: error: builtin __has_trivial_destructor is deprecated; use __is_trivially_destructible instead [-Werror,-Wdeprecated-builtins]
: std::integral_constant<bool, __has_trivial_destructor(T) &&
^
../../third_party/abseil-cpp/absl/meta/type_traits.h:350:36: error: builtin __has_trivial_constructor is deprecated; use __is_trivially_constructible instead [-Werror,-Wdeprecated-builtins]
: std::integral_constant<bool, __has_trivial_constructor(T) &&
^
../../third_party/abseil-cpp/absl/meta/type_traits.h:494:17: error: builtin __has_trivial_assign is deprecated; use __is_trivially_assignable instead [-Werror,-Wdeprecated-builtins]
bool, __has_trivial_assign(typename std::remove_reference<T>::type) &&
^
../../third_party/abseil-cpp/absl/meta/type_traits.h:559:8: error: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Werror,-Wdeprecated-builtins]
(__has_trivial_copy(ExtentsRemoved) || !kIsCopyOrMoveConstructible) &&
^
../../third_party/abseil-cpp/absl/meta/type_traits.h:560:8: error: builtin __has_trivial_assign is deprecated; use __is_trivially_assignable instead [-Werror,-Wdeprecated-builtins]
(__has_trivial_assign(ExtentsRemoved) || !kIsCopyOrMoveAssignable) &&
^
5 errors generated.
附,版本信息
root@builder:/openharmony# repo info -o
Manifest branch: OpenHarmony-4.0-Beta2
Manifest merge branch: refs/heads/OpenHarmony-4.0-Beta2
Manifest groups: all,-notdefault
----------------------------
root@builder:/openharmony# hb env
[OHOS INFO] Necessary package: bison, ccache, default-jdk, flex, gcc-arm-linux-gnueabi, gcc-arm-none-eabi, genext2fs, libssl-dev, libtinfo5, mtd-utils, mtools, ruby, scons, u-boot-tools, zip
[OHOS INFO] Installed package: bison, ccache, default-jdk, flex, gcc-arm-linux-gnueabi, gcc-arm-none-eabi, genext2fs, libssl-dev, libtinfo5, mtd-utils, mtools, ruby, scons, u-boot-tools, zip
[OHOS INFO] Uninstalled package:
[OHOS INFO] root path: /openharmony
[OHOS INFO] board: rk3568
[OHOS INFO] kernel: None
[OHOS INFO] product: rk3568
[OHOS INFO] product path: /openharmony/vendor/hihope/rk3568
[OHOS INFO] device path: /openharmony/device/board/rockchip/rk3568
[OHOS INFO] device company: rockchip
root@builder:/openharmony# prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --version
OHOS (dev) clang version 15.0.4 (llvm-project d1aa604d90b55a96aa22af9992d170fccbd41938)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /openharmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin
root@builder:/openharmony# prebuilts/clang/ohos/linux-x86_64/llvm/bin/ld.lld --version
LLD 15.0.4 (compatible with GNU linkers)
root@builder:/openharmony/third_party/chromium/src# git status -b
On branch 99.0.4844.88
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: .gn
modified: BUILD.gn
modified: DEPS
modified: PRESUBMIT.py
modified: base/BUILD.gn
modified: base/allocator/BUILD.gn
modified: base/allocator/allocator.gni
modified: base/allocator/allocator_shim.cc
modified: base/allocator/allocator_shim_internals.h
modified: base/allocator/partition_allocator/partition_bucket.cc
modified: base/allocator/partition_allocator/partition_page.cc
........
更多推荐
已为社区贡献14条内容
所有评论(0)