[LLVMbugs] [Bug 19503] New: Compile error on Ubuntu 14.04 "Too many bits for uint64_t"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 21 14:46:39 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19503

            Bug ID: 19503
           Summary: Compile error on Ubuntu 14.04 "Too many bits for
                    uint64_t"
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kingdomx at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12417
  --> http://llvm.org/bugs/attachment.cgi?id=12417&action=edit
Preprocessed source and associated run script on the same file separated by a
string of '='

Compiled following this tutorial, http://clang.llvm.org/get_started.html, 6th
step on make.

COMPILE:   clang_linux/full-x86_64/x86_64:
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/llvm/projects/compiler-rt/lib/builtins/popcountti2.c
clang:
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/llvm/include/llvm/ADT/APInt.h:1305:
uint64_t llvm::APInt::getZExtValue() const: Assertion `getActiveBits() <= 64 &&
"Too many bits for uint64_t"' failed.
0  clang           0x00000000038ba4a7 llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1  clang           0x00000000038ba724
2  clang           0x00000000038ba0c9
3  libpthread.so.0 0x00002b0657f67340
4  libc.so.6       0x00002b0658bcff79 gsignal + 57
5  libc.so.6       0x00002b0658bd3388 abort + 328
6  libc.so.6       0x00002b0658bc8e36
7  libc.so.6       0x00002b0658bc8ee2
8  clang           0x000000000120e02a
9  clang           0x0000000001314974
10 clang           0x0000000003108926
isExtractBitsCandidateUse(llvm::Instruction*) + 161
11 clang           0x0000000003108e3a
12 clang           0x000000000311262b
13 clang           0x0000000003112856
14 clang           0x0000000003106e04
15 clang           0x00000000038337e0
llvm::FPPassManager::runOnFunction(llvm::Function&) + 290
16 clang           0x0000000003833950
llvm::FPPassManager::runOnModule(llvm::Module&) + 84
17 clang           0x0000000003833c6e
18 clang           0x0000000003834312
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 244
19 clang           0x000000000383451d
llvm::legacy::PassManager::run(llvm::Module&) + 39
20 clang           0x000000000120d581
21 clang           0x000000000120d650
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 127
22 clang           0x00000000012063ef
23 clang           0x000000000146179e clang::ParseAST(clang::Sema&, bool, bool)
+ 780
24 clang           0x0000000000f799ec clang::ASTFrontendAction::ExecuteAction()
+ 322
25 clang           0x0000000001208068 clang::CodeGenAction::ExecuteAction() +
1362
26 clang           0x0000000000f7951f clang::FrontendAction::Execute() + 139
27 clang           0x0000000000f49816
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 720
28 clang           0x0000000000f121d4
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1029
29 clang           0x0000000000f00c49 cc1_main(char const**, char const**, char
const*, void*) + 717
30 clang           0x0000000000f0cf32 main + 775
31 libc.so.6       0x00002b0658bbaec5 __libc_start_main + 245
32 clang           0x0000000000eff339
Stack dump:
0.    Program arguments:
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/build/Debug+Asserts/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
popcountti2.c -mrelocation-model pic -pic-level 2 -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.24 -momit-leaf-frame-pointer -coverage-file
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/build/tools/clang/runtime/compiler-rt/clang_linux/full-x86_64/x86_64/SubDir.lib__builtins/popcountti2.o
-resource-dir
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/build/Debug+Asserts/bin/../lib/clang/3.5.0
-I
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/llvm/projects/compiler-rt/lib
-I
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/llvm/projects/compiler-rt/include
-isysroot
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/llvm/projects/compiler-rt/SDKs/linux
-internal-isystem
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/llvm/projects/compiler-rt/SDKs/linux/usr/local/include
-internal-isystem
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/build/Debug+Asserts/bin/../lib/clang/3.5.0/include
-internal-externc-isystem
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/llvm/projects/compiler-rt/SDKs/linux/include
-internal-externc-isystem
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/llvm/projects/compiler-rt/SDKs/linux/usr/include
-O3 -Wall -Werror -fdebug-compilation-dir
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/llvm/projects/compiler-rt
-ferror-limit 19 -fmessage-length 107 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -vectorize-loops -vectorize-slp -o
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/build/tools/clang/runtime/compiler-rt/clang_linux/full-x86_64/x86_64/SubDir.lib__builtins/popcountti2.o
-x c
/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/llvm/projects/compiler-rt/lib/builtins/popcountti2.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module
'/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/llvm/projects/compiler-rt/lib/builtins/popcountti2.c'.
4.    Running pass 'CodeGen Prepare' on function '@__popcountti2'
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.5.0 (trunk 206779)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: 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: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/popcountti2-8ed213.c
clang: note: diagnostic msg: /tmp/popcountti2-8ed213.sh
clang: note: diagnostic msg: 

********************
make[5]: ***
[/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/build/tools/clang/runtime/compiler-rt/clang_linux/full-x86_64/x86_64/SubDir.lib__builtins/popcountti2.o]
Error 254
make[5]: Leaving directory
`/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/llvm/projects/compiler-rt'
make[4]: *** [BuildRuntimeLibraries] Error 2
make[4]: Leaving directory
`/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/build/tools/clang/runtime/compiler-rt'
make[3]: *** [compiler-rt/.makeall] Error 2
make[3]: Leaving directory
`/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/build/tools/clang/runtime'
make[2]: *** [all] Error 1
make[2]: Leaving directory
`/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/build/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory
`/media/scorchedpsyche/954d08f4-9281-4023-99a9-3d4bdd2072b1/work/build/tools'
make: *** [all] Error 1

-- 
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/20140421/d40caa9f/attachment.html>


More information about the llvm-bugs mailing list