@karrena 重新编译后报错信息不一样,如下:
Starting Ninja...
ninja: Entering directory `/usr/OpenHarmony/out/ohos-riscv64-release'
[1/8521] COPY ../../drivers/peripheral/camera/hal/pipeline_core/pipeline_impl/src/strategy/config/config.c obj/drivers/peripheral/camera/hal/adapter/platform/v4l2/drivers/peripheral/camera/hal/pipeline_core/pipeline_impl/src/strategy/config/config.c
[2/8521] COPY ../../drivers/peripheral/camera/hal/pipeline_core/pipeline_impl/src/strategy/config/params.c obj/drivers/peripheral/camera/hal/adapter/platform/v4l2/drivers/peripheral/camera/hal/pipeline_core/pipeline_impl/src/strategy/config/params.c
[3/8521] STAMP obj/drivers/peripheral/camera/hal/adapter/platform/v4l2/params.c.stamp
[4/8521] STAMP obj/drivers/peripheral/camera/hal/adapter/platform/v4l2/config.c.stamp
[5/8521] CXX obj/third_party/protobuf/src/google/protobuf/protobuf_standard/extension_set.o
FAILED: obj/third_party/protobuf/src/google/protobuf/protobuf_standard/extension_set.o
/usr/bin/ccache ../../prebuilts/clang/ohos/linux-x86_64/llvm-riscv/bin/clang++ -MMD -MF obj/third_party/protobuf/src/google/protobuf/protobuf_standard/extension_set.o.d -DHAVE_PTHREAD -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -D_GNU_SOURCE -DHAVE_SYS_UIO_H -D__MUSL__ -D_LIBCPP_HAS_MUSL_LIBC -D__BUILD_LINUX_WITH_CLANG -D_LIBCPP_NO_NATIVE_SEMAPHORES -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 -Iobj/third_party/musl/usr/include/riscv64-linux-ohosmusl -I../../prebuilts/clang/ohos/linux-x86_64/llvm-riscv/include/c++/v1 -I../.. -Igen -I../../third_party/protobuf/src -I../../third_party/protobuf/src/google -I../../third_party/protobuf/src/google/protobuf -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=riscv64-linux-ohosmusl -mno-relax -march=rv64imafdc -mabi=lp64d -mno-relax -Wall -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 -Wno-gnu-folding-constant -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g2 -ggnu-pubnames -fno-common -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Werror -fPIC -frtti -U__ANDROID__ -Wno-sign-compare -Wno-error=unused-parameter -Wno-error=unused-const-variable -Wno-error=unneeded-internal-declaration -Wno-inconsistent-missing-override -std=c++17 -fno-exceptions --sysroot=obj/third_party/musl -fvisibility-inlines-hidden -frtti -c ../../third_party/protobuf/src/google/protobuf/extension_set.cc -o obj/third_party/protobuf/src/google/protobuf/protobuf_standard/extension_set.o
expected ':' in depfile[6/8521] CXX obj/third_party/protobuf/src/google/protobuf/protobuf_standard/extension_set_heavy.o
FAILED: obj/third_party/protobuf/src/google/protobuf/protobuf_standard/extension_set_heavy.o