[llvm-bugs] [Bug 25838] New: AOSP build fails due to assertion failure at llvm/include/llvm/Support/BranchProbability.h:183

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 15 14:56:19 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25838

            Bug ID: 25838
           Summary: AOSP build fails due to assertion failure at
                    llvm/include/llvm/Support/BranchProbability.h:183
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: pzheng at codeaurora.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Failed when building AOSP for shamu with LLVM tip. This only fails with LLVM
tip, not with the prebuilts/clang in AOSP.

FAILED: /bin/bash -c "(true) && (mkdir -p
out/target/product/shamu/obj/SHARED_LIBRARIES/libft2_intermediates/src/base/)
&& (PWD=/proc/self/cwd
/home/aosp/nightly/install/community-mainline/cross/latest/bin/clang -I
external/freetype/include -I external/libpng -I external/zlib -I
external/freetype -I
out/target/product/shamu/obj/SHARED_LIBRARIES/libft2_intermediates -I
out/target/product/shamu/gen/SHARED_LIBRARIES/libft2_intermediates -I
libnativehelper/include/nativehelper \$(cat
out/target/product/shamu/obj/SHARED_LIBRARIES/libft2_intermediates/import_includes)
-isystem system/core/include -isystem system/media/audio/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
out/target/product/shamu/obj/include -isystem
hardware/qcom/msm8x84/kernel-headers -isystem bionic/libc/arch-arm/include
-isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem
bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm -isystem
bionic/libm/include -isystem bionic/libm/include/arm -c    -fno-exceptions
-Wno-multichar -msoft-float -ffunction-sections -fdata-sections -funwind-tables
-fstack-protector -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums
-no-canonical-prefixes -mcpu=cortex-a15 -D__ARM_FEATURE_LPAE=1
-mfloat-abi=softfp -mfpu=neon -DANDROID -fmessage-length=0 -W -Wall -Wno-unused
-Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor
-Werror=address -Werror=sequence-point -DNDEBUG -g -Wstrict-aliasing=2 -DNDEBUG
-UDEBUG  -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion
-Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument
-fcolor-diagnostics -nostdlibinc  -mcpu=krait -mfpu=neon-vfpv4 -target
arm-linux-androideabi    -target arm-linux-androideabi
-Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin
   -std=gnu99     -O2 -fomit-frame-pointer -fstrict-aliasing   -W -Wall -fPIC
-DPIC \"-DDARWIN_NO_CARBON\" \"-DFT2_BUILD_LIBRARY\" -O2 -fPIC -D_USING_LIBCXX 
 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast 
-Werror=address-of-temporary -Werror=null-dereference -Werror=return-type   -MD
-MF
out/target/product/shamu/obj/SHARED_LIBRARIES/libft2_intermediates/src/base/ftbase.d
-o
out/target/product/shamu/obj/SHARED_LIBRARIES/libft2_intermediates/src/base/ftbase.o
external/freetype/src/base/ftbase.c) && (cp
out/target/product/shamu/obj/SHARED_LIBRARIES/libft2_intermediates/src/base/ftbase.d
out/target/product/shamu/obj/SHARED_LIBRARIES/libft2_intermediates/src/base/ftbase.P;
sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/
:/' <
out/target/product/shamu/obj/SHARED_LIBRARIES/libft2_intermediates/src/base/ftbase.d
>>
out/target/product/shamu/obj/SHARED_LIBRARIES/libft2_intermediates/src/base/ftbase.P)"
clang:
/home/aosp/nightly/src/community-mainline/llvm/include/llvm/Support/BranchProbability.h:183:
static void llvm::BranchProbability::normalizeProbabilities(ProbabilityIter,
ProbabilityIter) [ProbabilityIter =
std::__1::__wrap_iter<llvm::BranchProbability *>]: Assertion `(UnknownProbCount
== 0 || UnknownProbCount == std::distance(Begin, End)) && "Cannot normalize
probabilities with known and unknown ones."' failed.
0  clang           0x00000000011e3ce8
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  clang           0x00000000011e21f6 llvm::sys::RunSignalHandlers() + 70
2  clang           0x00000000011e4509
3  libpthread.so.0 0x00002ada99f9ecb0
4  libc.so.6       0x00002ada9ab0b0d5 gsignal + 53
5  libc.so.6       0x00002ada9ab0e83b abort + 379
6  libc.so.6       0x00002ada9ab03d9e
7  libc.so.6       0x00002ada9ab03e42
8  clang           0x00000000007eb117
9  clang           0x0000000000b927d4
10 clang           0x0000000000b913a6
11 clang           0x0000000000bdb31c
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 124
12 clang           0x0000000000ea8ffd
llvm::FPPassManager::runOnFunction(llvm::Function&) + 349
13 clang           0x0000000000ea924b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
14 clang           0x0000000000ea97f2
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1074
15 clang           0x000000000130371d
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*,
std::__1::unique_ptr<llvm::FunctionInfoIndex,
std::__1::default_delete<llvm::FunctionInfoIndex> >) + 9005
16 clang           0x00000000019d97ae
17 clang           0x0000000001df12c6 clang::ParseAST(clang::Sema&, bool, bool)
+ 598
18 clang           0x00000000019d7b21 clang::CodeGenAction::ExecuteAction() +
113
19 clang           0x00000000016223a6 clang::FrontendAction::Execute() + 70
20 clang           0x00000000015eef51
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1121
21 clang           0x00000000016a4d87
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3271
22 clang           0x0000000000701e0d cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 989
23 clang           0x000000000070030f main + 11871
24 libc.so.6       0x00002ada9aaf676d __libc_start_main + 237
25 clang           0x00000000006fd32d
Stack dump:
0.            Program arguments:
/home/aosp/nightly/install/community-mainline/cross/latest/bin/clang -cc1
-triple armv7--linux-android -emit-obj -disable-free -main-file-name ftbase.c
-mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu krait -target-feature +soft-float-abi -target-feature -fp-only-sp
-target-feature -d16 -target-feature +vfp4 -target-feature -fp-armv8
-target-feature +neon -target-feature -crypto -target-abi aapcs-linux
-mfloat-abi soft -dwarf-column-info -debug-info-kind=limited -dwarf-version=4
-ffunction-sections -fdata-sections -coverage-file
/proc/self/cwd/out/target/product/shamu/obj/SHARED_LIBRARIES/libft2_intermediates/src/base/ftbase.o
-nostdsysteminc -resource-dir
/home/aosp/nightly/install/community-mainline/cross/latest/bin/../lib/clang/3.8.0
-dependency-file
out/target/product/shamu/obj/SHARED_LIBRARIES/libft2_intermediates/src/base/ftbase.d
-MT
out/target/product/shamu/obj/SHARED_LIBRARIES/libft2_intermediates/src/base/ftbase.o
-sys-header-deps -isystem system/core/include -isystem
system/media/audio/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 out/target/product/shamu/obj/include -isystem
hardware/qcom/msm8x84/kernel-headers -isystem bionic/libc/arch-arm/include
-isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem
bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm -isystem
bionic/libm/include -isystem bionic/libm/include/arm -I
external/freetype/include -I external/libpng -I external/zlib -I
external/freetype -I
out/target/product/shamu/obj/SHARED_LIBRARIES/libft2_intermediates -I
out/target/product/shamu/gen/SHARED_LIBRARIES/libft2_intermediates -I
libnativehelper/include/nativehelper -I external/libpng -I external/zlib -I
external/libcxx/include -I external/libcxxabi/include -D _FORTIFY_SOURCE=2 -D
__ARM_FEATURE_LPAE=1 -D ANDROID -D NDEBUG -D NDEBUG -U DEBUG -D
__compiler_offsetof=__builtin_offsetof -D PIC -D DARWIN_NO_CARBON -D
FT2_BUILD_LIBRARY -D _USING_LIBCXX -isysroot
/home/aosp/common/build_tools/64_bit_crosstool_gcc-fsf-arm-linux-gnueabi-4.9.0/arm-linux-gnueabi/libc
-internal-isystem
/home/aosp/nightly/install/community-mainline/cross/latest/bin/../lib/clang/3.8.0/include
-O2 -Wno-multichar -Werror=format-security -W -Wall -Wno-unused -Winit-self
-Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address
-Werror=sequence-point -Wstrict-aliasing=2 -Werror=int-conversion
-Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument
-W -Wall -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
-Werror=address-of-temporary -Werror=null-dereference -Werror=return-type
-std=gnu99 -fdebug-compilation-dir /proc/self/cwd -ferror-limit 19
-fmessage-length 0 -femulated-tls -stack-protector 1
-fallow-half-arguments-and-returns -fno-signed-char -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o
out/target/product/shamu/obj/SHARED_LIBRARIES/libft2_intermediates/src/base/ftbase.o
-x c external/freetype/src/base/ftbase.c 
1.            <eof> parser at end of file
2.            Code generation
3.            Running pass 'Function Pass Manager' on module
'external/freetype/src/base/ftbase.c'.
4.            Running pass 'If Converter' on function '@FT_Vector_Length'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (http://llvm.org/git/clang.git
9ea793601531c610b9f8b913b91b19b809a289f5) (http://llvm.org/git/llvm.git
3fd61c3bf5ae22f85ab6682fcb29a452201cf189)
Target: arm--linux-android
Thread model: posix

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151215/adee2389/attachment.html>


More information about the llvm-bugs mailing list