【求助】clang18适配clang15编译报错找不到utility
有没有大神碰到编译工具栏,报错的问题... -- Build files have been written to: /home/water/llvm/out/lib/clangrt-arm-linux-ohos INFO:__main__:check_call:17:39:59 /home/water/llvm/prebuilts/cmake/bin/ninja [15/368] Buildi
有没有大神碰到编译工具栏,报错的问题...
-- Build files have been written to: /home/water/llvm/out/lib/clangrt-arm-linux-ohos
INFO:__main__:check_call:17:39:59 /home/water/llvm/prebuilts/cmake/bin/ninja
[15/368] Building CXX object lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.arm.dir/sanitizer_errno.cpp.o
FAILED: lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.arm.dir/sanitizer_errno.cpp.o
/home/water/llvm/out/llvm-install/bin/clang++ --sysroot=/home/water/llvm/out/sysroot -DHAVE_RPC_XDR_H=0 -I/home/water/llvm/toolchain/llvm-project/compiler-rt/lib/sanitizer_common/.. -fstack-protector-strong --target=arm-linux-ohos -ffunction-sections -fdata-sections -march=armv7-a -mfloat-abi=soft -ffile-prefix-map=/home/water/llvm=. -Wall -Wno-unused-parameter -O3 -DNDEBUG -fPIC -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -nostdinc++ -Wno-format -fno-rtti -Wframe-larger-than=570 -Wglobal-constructors -std=c++17 -MD -MT lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.arm.dir/sanitizer_errno.cpp.o -MF lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.arm.dir/sanitizer_errno.cpp.o.d -o lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.arm.dir/sanitizer_errno.cpp.o -c /home/water/llvm/toolchain/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_errno.cpp
In file included from /home/water/llvm/toolchain/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_errno.cpp:20:
In file included from /home/water/llvm/toolchain/llvm-project/compiler-rt/lib/sanitizer_common/../orc/error.h:14:
/home/water/llvm/toolchain/llvm-project/compiler-rt/lib/sanitizer_common/../orc/stl_extras.h:16:10: fatal error: 'utility' file not found
16 | #include <utility>
| ^~~~~~~~~
1 error generated.
[20/368] Building CXX object lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.arm.dir/sanitizer_deadlock_detector1.cpp.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "./toolchain/llvm-project/llvm-build/build.py", line 2342, in <module>
main()
File "./toolchain/llvm-project/llvm-build/build.py", line 2301, in main
llvm_libs.build_crt_libs(configs, llvm_install)
File "./toolchain/llvm-project/llvm-build/build.py", line 1104, in build_crt_libs
self.build_libs(llvm_install,
File "./toolchain/llvm-project/llvm-build/build.py", line 1210, in build_libs
self.build_crts(llvm_install, arch, llvm_triple, cflags, ldflags, multilib_suffix, defines)
File "./toolchain/llvm-project/llvm-build/build.py", line 1371, in build_crts
self.invoke_ninja(out_path=crt_path,
File "./toolchain/llvm-project/llvm-build/build.py", line 333, in invoke_ninja
self.check_call([ninja_bin_path] + ninja_list + ninja_target, cwd=out_path, env=env)
File "./toolchain/llvm-project/llvm-build/build.py", line 402, in check_call
subprocess.check_call(cmd, *args, **kwargs)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/water/llvm/prebuilts/cmake/bin/ninja']' returned non-zero exit status 1.
更多推荐
所有评论(0)