The common reason that clang crashes come up on this mailing list is that
your system has run out of memory during the build -- you might want to
watch `top` during a build, or look at the kernel logs afterwards and see
if it was OOM-killed or crashed due to some other reason. Sometimes it's a
bug in clang too, but that's rarer (and with clang & code that old, not all
that useful to track down).

- Dan

On Tue, Jun 22, 2021 at 10:12 PM sazer kpla <[email protected]>
wrote:

> Android Building
>
> [  0% 13/29446] //external/llvm/lib/LTO:libLLVMLTO clang++ LTOModule.cpp
> FAILED:
> out/soong/.intermediates/external/llvm/lib/LTO/libLLVMLTO/android_x86_64_static_core/obj/external/llvm/lib/LTO/LTOModule.o
> PWD=/proc/self/cwd
> prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -c
> -Iexternal/llvm/lib/LTO  -fno-exceptions -Wno-multichar -O2
> -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2
> -Wstrict-aliasing=2 -ffunction-sections -fno-short-enums -fstrict-aliasing
> -funwind-tables -fstack-protector-strong -no-canonical-prefixes
> -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast
> -Werror=implicit-function-declaration -O2 -g -fno-strict-aliasing -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 -m64 -march=x86-64 -DUSE_SSSE3 -mssse3
> -msse4 -msse4.1 -msse4.2 -mpopcnt -Iexternal/llvm/include
> -Iexternal/llvm/device/include
> -Iout/soong/.intermediates/external/llvm/llvm-gen-attributes/gen
> -Iout/soong/.intermediates/external/llvm/llvm-gen-intrinsics/gen
> -Iexternal/libcxx/include -Iexternal/libcxxabi/include
> -Isystem/core/include -Isystem/media/audio/include
> -Ihardware/libhardware/include -Ihardware/libhardware_legacy/include
> -Ihardware/ril/include -Ilibnativehelper/include
> -Iframeworks/native/include -Iframeworks/native/opengl/include
> -Iframeworks/av/include -isystem bionic/libc/arch-x86_64/include -isystem
> bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem
> bionic/libc/kernel/uapi/asm-x86 -isystem bionic/libc/kernel/android/scsi
> -isystem bionic/libc/kernel/android/uapi
> -Ilibnativehelper/include_deprecated -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
> -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -fomit-frame-pointer -Wall
> -W -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers
> -Wwrite-strings -Werror -Dsprintf=sprintf -Wno-error=unused-lambda-capture
> -Wno-error=user-defined-warnings -target x86_64-linux-android
> -Bprebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin
> -fPIC -D_USING_LIBCXX -std=gnu++14 -Wsign-promo
> -Wno-inconsistent-missing-override -Wno-null-dereference
> -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative
> -Wno-sign-promo -std=c++11 -Woverloaded-virtual -fno-rtti
> -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
> -Werror=address-of-temporary -Werror=return-type -MD -MF
> out/soong/.intermediates/external/llvm/lib/LTO/libLLVMLTO/android_x86_64_static_core/obj/external/llvm/lib/LTO/LTOModule.o.d
> -o
> out/soong/.intermediates/external/llvm/lib/LTO/libLLVMLTO/android_x86_64_static_core/obj/external/llvm/lib/LTO/LTOModule.o
> external/llvm/lib/LTO/LTOModule.cpp
> clang++.real: error: unable to execute command: Bus error
> clang++.real: error: clang frontend command failed due to signal (use -v
> to see invocation)
> Android clang version 5.0.300080  (based on LLVM 5.0.300080)
> Target: x86_64--linux-android
> Thread model: posix
> InstalledDir: prebuilts/clang/host/linux-x86/clang-4053586/bin
> clang++.real: note: diagnostic msg: PLEASE submit a bug report to
> http://llvm.org/bugs/ and include the crash backtrace, preprocessed
> source, and associated run script.
> clang++.real: error: unable to execute command: Bus error
> clang++.real: note: diagnostic msg: Error generating preprocessed
> source(s).
> [  0% 20/29446] //external/llvm/lib/Transforms/IPO:libLLVMipo clang++
> SampleProfile.cpp
> ninja: build stopped: subcommand failed.
> 21:30:12 ninja failed with: exit status 1
> any idea ?????????????
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/d05c1108-dde4-4230-96fc-62bb89ca20f7n%40googlegroups.com
> <https://groups.google.com/d/msgid/android-building/d05c1108-dde4-4230-96fc-62bb89ca20f7n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CALQgHd%3DuXxexuk1wsnEh4_6-a82-aP8dwLZAHRfSDTrVQtVL%3DA%40mail.gmail.com.

Reply via email to