【求助】OpenHarmony4.0 master分支在Ubuntu22.04下编译rk3588报错
·
[OHOS INFO] [92/49937] ACTION //device/board/hihope/dayu210/kernel:kernel(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS ERROR] [67/49937] ACTION //foundation/communication/netmanager_base/services/netmanagernative/bpf:netsys(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS ERROR] FAILED: obj/foundation/communication/netmanager_base/services/netmanagernative/bpf/netsys.o
[OHOS ERROR] /usr/bin/env ../../build/scripts/bpf.py --clang-path ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang --output-file obj/foundation/communication/netmanager_base/services/netmanagernative/bpf/netsys.o --include-dirs obj/build/templates/bpf/aarch64-linux-ohos/usr/include obj/build/templates/bpf/aarch64-linux-ohos ../../foundation/communication/netmanager_base/services/netmanagernative/bpf/include ../../third_party/libbpf/src --input-file ../../foundation/communication/netmanager_base/services/netmanagernative/bpf/src/netsys.c
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR] File "/home/IFP/Users/SW0011/harmony_public/harmony/out/rk3588/../../build/scripts/bpf.py", line 63, in <module>
[OHOS ERROR] sys.exit(main(sys.argv[1:]))
[OHOS ERROR] File "/home/IFP/Users/SW0011/harmony_public/harmony/out/rk3588/../../build/scripts/bpf.py", line 51, in main
[OHOS ERROR] build_utils.call_and_write_depfile_if_stale(
[OHOS ERROR] File "/home/IFP/Users/SW0011/harmony_public/harmony/build/scripts/util/build_utils.py", line 717, in call_and_write_depfile_if_stale
[OHOS ERROR] md5_check.call_and_record_if_stale(on_stale_md5,
[OHOS ERROR] File "/home/IFP/Users/SW0011/harmony_public/harmony/build/scripts/util/md5_check.py", line 121, in call_and_record_if_stale
[OHOS ERROR] function(*args)
[OHOS ERROR] File "/home/IFP/Users/SW0011/harmony_public/harmony/build/scripts/util/build_utils.py", line 707, in on_stale_md5
[OHOS ERROR] function(*args)
[OHOS ERROR] File "/home/IFP/Users/SW0011/harmony_public/harmony/out/rk3588/../../build/scripts/bpf.py", line 52, in <lambda>
[OHOS ERROR] lambda: bpf_compile(options, cmd),
[OHOS ERROR] File "/home/IFP/Users/SW0011/harmony_public/harmony/out/rk3588/../../build/scripts/bpf.py", line 40, in bpf_compile
[OHOS ERROR] build_utils.check_output(cmd, env=my_env)
[OHOS ERROR] File "/home/IFP/Users/SW0011/harmony_public/harmony/build/scripts/util/build_utils.py", line 245, in check_output
[OHOS ERROR] raise called_process_error(cwd, args, stdout + stderr)
[OHOS ERROR] util.build_utils.called_process_error: Command failed: ( cd /home/IFP/Users/SW0011/harmony_public/harmony/out/rk3588; ../../prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang -v -g -c -O2 -target bpf -I obj/build/templates/bpf/aarch64-linux-ohos/usr/include -I obj/build/templates/bpf/aarch64-linux-ohos -I ../../foundation/communication/netmanager_base/services/netmanagernative/bpf/include -I ../../third_party/libbpf/src -c ../../foundation/communication/netmanager_base/services/netmanagernative/bpf/src/netsys.c -o obj/foundation/communication/netmanager_base/services/netmanagernative/bpf/netsys.o )
[OHOS ERROR] OHOS (dev) clang version 15.0.4 (llvm-project ce1ad3cc89f3688ce0b2fc5c8babd6d23592825f)
[OHOS ERROR] Target: bpf
[OHOS ERROR] Thread model: posix
[OHOS ERROR] InstalledDir: /home/IFP/Users/SW0011/harmony_public/harmony/out/rk3588/../../prebuilts/clang/ohos/linux-x86_64/llvm/bin
[OHOS ERROR] (in-process)
[OHOS ERROR] "/home/IFP/Users/SW0011/harmony_public/harmony/prebuilts/clang/ohos/linux-x86_64/llvm/bin/clang-15" -cc1 -triple bpf -emit-obj --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name netsys.c -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -mllvm -treat-scalable-fixed-error-as-warning -debug-info-kind=constructor -dwarf-version=5 -debugger-tuning=gdb -v -fcoverage-compilation-dir=/home/IFP/Users/SW0011/harmony_public/harmony/out/rk3588 -resource-dir /home/IFP/Users/SW0011/harmony_public/harmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/15.0.4 -I obj/build/templates/bpf/aarch64-linux-ohos/usr/include -I obj/build/templates/bpf/aarch64-linux-ohos -I ../../foundation/communication/netmanager_base/services/netmanagernative/bpf/include -I ../../third_party/libbpf/src -O2 -fdebug-compilation-dir=/home/IFP/Users/SW0011/harmony_public/harmony/out/rk3588 -ferror-limit 19 -fgnuc-version=4.2.1 -vectorize-loops -vectorize-slp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o obj/foundation/communication/netmanager_base/services/netmanagernative/bpf/netsys.o -x c ../../foundation/communication/netmanager_base/services/netmanagernative/bpf/src/netsys.c
[OHOS ERROR] clang -cc1 version 15.0.4 based upon LLVM 15.0.4 default target x86_64-unknown-linux-gnu
[OHOS ERROR] #include "..." search starts here:
[OHOS ERROR] #include <...> search starts here:
[OHOS ERROR] obj/build/templates/bpf/aarch64-linux-ohos/usr/include
[OHOS ERROR] obj/build/templates/bpf/aarch64-linux-ohos
[OHOS ERROR] ../../foundation/communication/netmanager_base/services/netmanagernative/bpf/include
[OHOS ERROR] ../../third_party/libbpf/src
[OHOS ERROR] /usr/local/include
[OHOS ERROR] /home/IFP/Users/SW0011/harmony_public/harmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/15.0.4/include
[OHOS ERROR] /usr/include
[OHOS ERROR] End of search list.
[OHOS ERROR] In file included from ../../foundation/communication/netmanager_base/services/netmanagernative/bpf/src/netsys.c:19:
[OHOS ERROR] In file included from /home/IFP/Users/SW0011/harmony_public/harmony/prebuilts/clang/ohos/linux-x86_64/llvm/lib/clang/15.0.4/include/stdint.h:52:
[OHOS ERROR] /usr/include/stdint.h:26:10: fatal error: 'bits/libc-header-start.h' file not found
[OHOS ERROR] #include <bits/libc-header-start.h>
[OHOS ERROR] ^~~~~~~~~~~~~~~~~~~~~~~~~~
[OHOS ERROR] 1 error generated.
[OHOS ERROR]
[OHOS ERROR] [92/49937] ACTION //device/board/hihope/dayu210/kernel:kernel(//build/toolchain/ohos:ohos_clang_arm64)
[OHOS ERROR] FAILED: ../kernel/src_tmp/linux-5.10/boot_linux
[OHOS ERROR] /usr/bin/env ../../device/board/hihope/dayu210/kernel/build_kernel.sh ../../kernel/linux/linux-5.10 /home/IFP/Users/SW0011/harmony_public/harmony/out/rk3588/packages/phone/images /home/IFP/Users/SW0011/harmony_public/harmony/device/board/hihope/dayu210 vendor/hihope/dayu210 /home/IFP/Users/SW0011/harmony_public/harmony HiHope rk3588 hihope enable_ramdisk
执行sudo ./build.sh --product-name dayu210 --ccache --no-prebuilt-sdk
出现了两个failed,一个是头文件找不到,一个是 util.build_utils.called_process_error: Command failed
请问出现这个问题的原因是什么?需要怎么修改呢
更多推荐

所有评论(0)