<html>
    <head>
      <base href="https://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 --- - Compilation fails with error on PPC Ubuntu 15.10"
   href="https://llvm.org/bugs/show_bug.cgi?id=28526">28526</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compilation fails with error on PPC Ubuntu 15.10
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>mlpesant@us.ibm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16733" name="attach_16733" title="Preprocessed source">attachment 16733</a> <a href="attachment.cgi?id=16733&action=edit" title="Preprocessed source">[details]</a></span>
Preprocessed source

/home/ubuntu/llvm/build/dev.git/bin/clang -Isrc/include -std=gnu99 -g -Wall
-fPIC -O3 -fno-common -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_REENTRANT
-D_GNU_SOURCE -DMEM_COUNT -DENHANCED_ALLOC -finline-functions -rdynamic
-I/home/ubuntu/aerospike-server-llvm/cf/include -o
target/Linux-ppc64le/obj/common/aerospike/as_module.o -c
src/main/aerospike/as_module.c
clang-3.9: warning: argument unused during compilation: '-rdynamic'
clang-3.9:
/home/ubuntu/llvm/src/dev.git/lib/Target/PowerPC/PPCFrameLowering.cpp:1155:
virtual void llvm::PPCFrameLowering::emitEpilogue(llvm::MachineFunction&,
llvm::MachineBasicBlock&) const: Assertion `SingleScratchReg && "Could not find
an available scratch register"' failed.
#0 0x000000001393aa60 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/home/ubuntu/llvm/src/dev.git/lib/Support/Unix/Signals.inc:402:0
#1 0x000000001393aed8 PrintStackTraceSignalHandler(void*)
/home/ubuntu/llvm/src/dev.git/lib/Support/Unix/Signals.inc:469:0
#2 0x0000000013938650 llvm::sys::RunSignalHandlers()
/home/ubuntu/llvm/src/dev.git/lib/Support/Signals.cpp:45:0
#3 0x0000000013939e44 SignalHandler(int)
/home/ubuntu/llvm/src/dev.git/lib/Support/Unix/Signals.inc:246:0
#4 0x00003fffb3230478  0x478 gsignal
#5 0x00003fffb3230478 
#6 0x00003fffb3230478 abort (+0x478)
#7 0x00003fffb2c3f094 (/lib/powerpc64le-linux-gnu/libc.so.6+0x3f094)
#8 0x00003fffb2c4199c __assert_fail
(/lib/powerpc64le-linux-gnu/libc.so.6+0x4199c)
#9 0x00003fffb2c349e4
llvm::PPCFrameLowering::emitEpilogue(llvm::MachineFunction&,
llvm::MachineBasicBlock&) const
/home/ubuntu/llvm/src/dev.git/lib/Target/PowerPC/PPCFrameLowering.cpp:1154:0
#10 0x00003fffb2c34ad4 (anonymous
namespace)::PEI::insertPrologEpilogCode(llvm::MachineFunction&)
/home/ubuntu/llvm/src/dev.git/lib/CodeGen/PrologEpilogInserter.cpp:978:0
#11 0x00000000122469dc (anonymous
namespace)::PEI::runOnMachineFunction(llvm::MachineFunction&)
/home/ubuntu/llvm/src/dev.git/lib/CodeGen/PrologEpilogInserter.cpp:211:0
#12 0x0000000012cad18c
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
/home/ubuntu/llvm/src/dev.git/lib/CodeGen/MachineFunctionPass.cpp:60:0
#13 0x0000000012ca9258 llvm::FPPassManager::runOnFunction(llvm::Function&)
/home/ubuntu/llvm/src/dev.git/lib/IR/LegacyPassManager.cpp:1526:0
#14 0x0000000012bbcfd0 llvm::FPPassManager::runOnModule(llvm::Module&)
/home/ubuntu/llvm/src/dev.git/lib/IR/LegacyPassManager.cpp:1547:0
#15 0x000000001313c250 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&)
/home/ubuntu/llvm/src/dev.git/lib/IR/LegacyPassManager.cpp:1603:0
#16 0x000000001313c4a0 llvm::legacy::PassManagerImpl::run(llvm::Module&)
/home/ubuntu/llvm/src/dev.git/lib/IR/LegacyPassManager.cpp:1706:0
#17 0x000000001313ca00 llvm::legacy::PassManager::run(llvm::Module&)
/home/ubuntu/llvm/src/dev.git/lib/IR/LegacyPassManager.cpp:1737:0
#18 0x000000001313d36c (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
llvm::raw_pwrite_stream*)
/home/ubuntu/llvm/src/dev.git/tools/clang/lib/CodeGen/BackendUtil.cpp:767:0
#19 0x000000001313d704 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction,
llvm::raw_pwrite_stream*)
/home/ubuntu/llvm/src/dev.git/tools/clang/lib/CodeGen/BackendUtil.cpp:783:0
#20 0x0000000013cae848
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
/home/ubuntu/llvm/src/dev.git/tools/clang/lib/CodeGen/CodeGenAction.cpp:180:0
#21 0x0000000013cae958 clang::ParseAST(clang::Sema&, bool, bool)
/home/ubuntu/llvm/src/dev.git/tools/clang/lib/Parse/ParseAST.cpp:167:0
#22 0x0000000014a204cc clang::ASTFrontendAction::ExecuteAction()
/home/ubuntu/llvm/src/dev.git/tools/clang/lib/Frontend/FrontendAction.cpp:557:0
#23 0x0000000015828e28 clang::CodeGenAction::ExecuteAction()
/home/ubuntu/llvm/src/dev.git/tools/clang/lib/CodeGen/CodeGenAction.cpp:851:0
#24 0x000000001442285c clang::FrontendAction::Execute()
/home/ubuntu/llvm/src/dev.git/tools/clang/lib/Frontend/FrontendAction.cpp:457:0
#25 0x0000000014a1e914
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
/home/ubuntu/llvm/src/dev.git/tools/clang/lib/Frontend/CompilerInstance.cpp:876:0
#26 0x0000000014422054
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
/home/ubuntu/llvm/src/dev.git/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:241:0
#27 0x00000000143a3ab0 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
/home/ubuntu/llvm/src/dev.git/tools/clang/tools/driver/cc1_main.cpp:116:0
#28 0x00000000145c4324 ExecuteCC1Tool(llvm::ArrayRef<char const*>,
llvm::StringRef)
/home/ubuntu/llvm/src/dev.git/tools/clang/tools/driver/driver.cpp:301:0
#29 0x0000000011416288 main
/home/ubuntu/llvm/src/dev.git/tools/clang/tools/driver/driver.cpp:382:0
#30 0x0000000011404274
(/home/ubuntu/llvm/build/dev.git/bin/clang-3.9+0x11404274)
#31 0x0000000011404db0 __libc_start_main
(/home/ubuntu/llvm/build/dev.git/bin/clang-3.9+0x11404db0)
0  clang-3.9 0x000000001393aa60 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
+ 104
1  clang-3.9 0x000000001393aed8
2  clang-3.9 0x0000000013938650 llvm::sys::RunSignalHandlers() + 228
3  clang-3.9 0x0000000013939e44
4            0x00003fffb3230478 __kernel_sigtramp_rt64 + 0
5  libc.so.6 0x00003fffb2c3f094 gsignal + 116
6  libc.so.6 0x00003fffb2c4199c abort + 748
7  libc.so.6 0x00003fffb2c349e4
8  libc.so.6 0x00003fffb2c34ad4 __assert_fail + 100
9  clang-3.9 0x00000000122469dc
llvm::PPCFrameLowering::emitEpilogue(llvm::MachineFunction&,
llvm::MachineBasicBlock&) const + 1136
10 clang-3.9 0x0000000012cad18c
11 clang-3.9 0x0000000012ca9258
12 clang-3.9 0x0000000012bbcfd0
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 596
13 clang-3.9 0x000000001313c250
llvm::FPPassManager::runOnFunction(llvm::Function&) + 444
14 clang-3.9 0x000000001313c4a0 llvm::FPPassManager::runOnModule(llvm::Module&)
+ 172
15 clang-3.9 0x000000001313ca00
16 clang-3.9 0x000000001313d36c
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 380
17 clang-3.9 0x000000001313d704 llvm::legacy::PassManager::run(llvm::Module&) +
56
18 clang-3.9 0x0000000013cae848
19 clang-3.9 0x0000000013cae958
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::DataLayout const&, llvm::Module*, clang::BackendAction,
llvm::raw_pwrite_stream*) + 132
20 clang-3.9 0x0000000014a204cc
21 clang-3.9 0x0000000015828e28 clang::ParseAST(clang::Sema&, bool, bool) +
1028
22 clang-3.9 0x000000001442285c clang::ASTFrontendAction::ExecuteAction() + 484
23 clang-3.9 0x0000000014a1e914 clang::CodeGenAction::ExecuteAction() + 2008
24 clang-3.9 0x0000000014422054 clang::FrontendAction::Execute() + 220
25 clang-3.9 0x00000000143a3ab0
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1488
26 clang-3.9 0x00000000145c4324
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1784
27 clang-3.9 0x0000000011416288 cc1_main(llvm::ArrayRef<char const*>, char
const*, void*) + 1268
28 clang-3.9 0x0000000011404274
29 clang-3.9 0x0000000011404db0 main + 2212
30 libc.so.6 0x00003fffb2c23580
31 libc.so.6 0x00003fffb2c237b4 __libc_start_main + 180
Stack dump:
0.    Program arguments: /home/ubuntu/llvm/build/dev.git/bin/clang-3.9 -cc1
-triple powerpc64le-unknown-linux-gnu -emit-obj -disable-free -main-file-name
as_module.c -mrelocation-model pic -pic-level 2 -mthread-model posix
-mdisable-fp-elim -relaxed-aliasing -fmath-errno -masm-verbose
-mconstructor-aliases -fuse-init-array -target-cpu ppc64le -mfloat-abi hard
-target-abi elfv2 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4
-debugger-tuning=gdb -coverage-file
/home/ubuntu/aerospike-server-llvm/modules/common/target/Linux-ppc64le/obj/common/aerospike/as_module.o
-resource-dir /home/ubuntu/llvm/build/dev.git/bin/../lib/clang/3.9.0 -I
src/include -D _FILE_OFFSET_BITS=64 -D _REENTRANT -D _GNU_SOURCE -D MEM_COUNT
-D ENHANCED_ALLOC -I /home/ubuntu/aerospike-server-llvm/cf/include
-internal-isystem /usr/local/include -internal-isystem
/home/ubuntu/llvm/build/dev.git/bin/../lib/clang/3.9.0/include
-internal-externc-isystem /usr/include/powerpc64le-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-Wall -std=gnu99 -fdebug-compilation-dir
/home/ubuntu/aerospike-server-llvm/modules/common -ferror-limit 19
-fmessage-length 181 -fno-signed-char -finline-functions -fobjc-runtime=gcc
-fno-common -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
-vectorize-slp -o target/Linux-ppc64le/obj/common/aerospike/as_module.o -x c
src/main/aerospike/as_module.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module
'src/main/aerospike/as_module.c'.
4.    Running pass 'Prologue/Epilogue Insertion & Frame Finalization' on
function '@as_module_apply_stream'
clang-3.9: error: unable to execute command: Aborted
clang-3.9: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.9.0 (trunk 274267) (llvm/trunk 274263)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/ubuntu/llvm/build/dev.git/bin
clang-3.9: 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-3.9: note: diagnostic msg: 
********************

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

********************</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>