<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Compile error on Ubuntu 14.04 "Too many bits for uint64_t""
   href="http://llvm.org/bugs/show_bug.cgi?id=19503">19503</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compile error on Ubuntu 14.04 "Too many bits for uint64_t"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.4
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kingdomx@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=12417" name="attach_12417" title="Preprocessed source and associated run script on the same file separated by a string of '='">attachment 12417</a> <a href="attachment.cgi?id=12417&action=edit" title="Preprocessed source and associated run script on the same file separated by a string of '='">[details]</a></span>
Preprocessed source and associated run script on the same file separated by a
string of '='

Compiled following this tutorial, <a href="http://clang.llvm.org/get_started.html">http://clang.llvm.org/get_started.html</a>, 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
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>