I have been hitting similar errors but randomly.This time I triggered a make -j4,and this is the failure that I saw:
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8-linaro/bin/arm-linux-androideabi-gcc -I external/tcpdump/missing -I external/openssl/include -I external/libpcap -I external/tcpdump -I out/target/product/hi4511/obj/EXECUTABLES/tcpdump_intermediates -I libnativehelper/include/nativehelper -isystem system/core/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem external/skia/include -isystem out/target/product/hi4511/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libstdc++/include -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/arch-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -isystem bionic/libthread_db/include -c -fno-exceptions -Wno-multichar -msoft-float -fpic -fPIE -ffunction-sections -fdata-sections -funwind-tables -fstack-protector -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -march=armv7-a -mfloat-abi=softfp -mfpu=neon -include build/core/combo/include/arch/linux-arm/AndroidConfig.h -I build/core/combo/include/arch/linux-arm/ -Wno-unused-but-set-variable -fno-builtin-sin -fno-strict-volatile-bitfields -Wno-psabi -mthumb-interwork -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -O3 -g -Wstrict-aliasing=2 -Werror=strict-aliasing -DNDEBUG -g -Wstrict-aliasing=2 -Werror=strict-aliasing -fgcse-after-reload -frerun-cse-after-loop -frename-registers -DNDEBUG -UDEBUG -mthumb -O3 -fomit-frame-pointer -fstrict-aliasing -Wstrict-aliasing=2 -Werror=strict-aliasing -g -fno-strict-aliasing -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -MD -MF out/target/product/hi4511/obj/EXECUTABLES/tcpdump_intermediates/print-ascii.d -o out/target/product/hi4511/obj/EXECUTABLES/tcpdump_intermediates/print-ascii.o external/tcpdump/print-ascii.c
external/tcpdump/print-802_11.c: In function 'ieee802_11_print':
external/tcpdump/print-802_11.c:968:23: warning: 'dst' may be used uninitialized in this function [-Wmaybe-uninitialized]
} else if (llc_print(p, length, caplen, dst, src,
^
external/tcpdump/print-802_11.c:968:23: warning: 'src' may be used uninitialized in this function [-Wmaybe-uninitialized]
cp out/target/product/hi4511/obj/EXECUTABLES/tcpdump_intermediates/print-arp.d out/target/product/hi4511/obj/EXECUTABLES/tcpdump_intermediates/print-arp.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$//' -e '/^$/ d' -e 's/$/ :/' < out/target/product/hi4511/obj/EXECUTABLES/tcpdump_intermediates/print-arp.d >> out/target/product/hi4511/obj/EXECUTABLES/tcpdump_intermediates/print-arp.P; rm -f out/target/product/hi4511/obj/EXECUTABLES/tcpdump_intermediates/print-arp.d
target thumb C: tcpdump <= external/tcpdump/print-atalk.c
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8-linaro/bin/arm-linux-androideabi-gcc -I external/tcpdump/missing -I external/openssl/include -I external/libpcap -I external/tcpdump -I out/target/product/hi4511/obj/EXECUTABLES/tcpdump_intermediates -I libnativehelper/include/nativehelper -isystem system/core/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem external/skia/include -isystem out/target/product/hi4511/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libstdc++/include -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/arch-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -isystem bionic/libthread_db/include -c -fno-exceptions -Wno-multichar -msoft-float -fpic -fPIE -ffunction-sections -fdata-sections -funwind-tables -fstack-protector -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -march=armv7-a -mfloat-abi=softfp -mfpu=neon -include build/core/combo/include/arch/linux-arm/AndroidConfig.h -I build/core/combo/include/arch/linux-arm/ -Wno-unused-but-set-variable -fno-builtin-sin -fno-strict-volatile-bitfields -Wno-psabi -mthumb-interwork -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -O3 -g -Wstrict-aliasing=2 -Werror=strict-aliasing -DNDEBUG -g -Wstrict-aliasing=2 -Werror=strict-aliasing -fgcse-after-reload -frerun-cse-after-loop -frename-registers -DNDEBUG -UDEBUG -mthumb -O3 -fomit-frame-pointer -fstrict-aliasing -Wstrict-aliasing=2 -Werror=strict-aliasing -g -fno-strict-aliasing -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -MD -MF out/target/product/hi4511/obj/EXECUTABLES/tcpdump_intermediates/print-atalk.d -o out/target/product/hi4511/obj/EXECUTABLES/tcpdump_intermediates/print-atalk.o external/tcpdump/print-atalk.c
external/tcpdump/print-802_11.c:991:1: internal compiler error: Segmentation fault
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
make: *** [out/target/product/hi4511/obj/EXECUTABLES/tcpdump_intermediates/print-802_11.o] Error 1
make: *** Waiting for unfinished jobs....
But I don't see the error when I compile manually the same file. Are these errors showing up due to resource issue on host or is it genuinely a compiler bug ?