飞同小可 2018-08-08 05:39 采纳率: 33.3%
浏览 3686
已结题

18.04 编译8.1安卓源码报错

我用18.04 编译安卓源码的时候报下面的错误,有人遇到过吗?

1 warning generated.
[ 18% 12030/66759] target C++: libaau...es/oboeservice/AAudioClientTracker.cpp
FAILED: out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/AAudioClientTracker.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I frameworks/av/services/audioflinger -I system/media/audio_utils/include -I frameworks/native/include -I system/core/base/include -I ./frameworks/native/media/libaaudio/include/include -I ./frameworks/av/media/libaaudio/include -I ./frameworks/av/media/utils/include -I frameworks/native/include -I ./external/tinyalsa/include -I ./frameworks/av/media/libaaudio/src -I frameworks/av/services/oboeservice -I out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates -I out/target/product/salvator/gen/SHARED_LIBRARIES/libaaudioservice_intermediates -I libnativehelper/include_deprecated \$(cat out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem out/target/product/salvator/obj/include -isystem bionic/libc/arch-arm64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -fno-strict-aliasing -fstack-protector-strong -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -DNDEBUG -O2 -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -mcpu=cortex-a53 -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -fvisibility-inlines-hidden -std=gnu++14 -fno-rtti -Wno-unused-parameter -Wall -Werror -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/AAudioClientTracker.d -o out/target/product/salvator/obj/SHARED_LIBRARIES/libaaudioservice_intermediates/AAudioClientTracker.o frameworks/av/services/oboeservice/AAudioClientTracker.cpp"
clang++.real: error: unable to execute command: Segmentation fault (core dumped)
clang++.real: error: clang frontend command failed due to signal (use -v to see invocation)

这个错误
clang++.real: error: unable to execute command: Segmentation fault (core dumped)
clang++.real: error: clang frontend command failed due to signal (use -v to see invocation)

  • 写回答

3条回答 默认 最新

  • Mr...........! 2018-08-09 03:14
    关注

    告诉你用-v查看调用,你是不是使用不恰当的分隔符

    评论

报告相同问题?

悬赏问题

  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器