<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - crash while building application for ppc64 with O3"
   href="https://bugs.llvm.org/show_bug.cgi?id=37856">37856</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>crash while building application for ppc64 with O3
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>joel@jms.id.au
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20443" name="attach_20443" title="source">attachment 20443</a> <a href="attachment.cgi?id=20443&action=edit" title="source">[details]</a></span>
source

building a firmware application with clang trunk (Ubuntu package
1:7~svn335024-1~exp1+0~20180619072109.325~1.gbp76c9a0)

Stack dump:
0.      Program arguments: /usr/lib/llvm-7/bin/clang -cc1 -triple
powerpc64--linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name chip.c -mrelocation-model static
-mthread-model posix -mllvm -warn-stack-size=2048 -relaxed-aliasing
-fmath-errno -masm-verbose -mconstructor-aliases -ffreestanding
-fuse-init-array -target-cpu pwr8 -target-feature -vsx -target-feature
-direct-move -target-feature -altivec -target-feature -hard-float -msoft-float
-mfloat-abi soft -target-abi elfv1 -dwarf-column-info -debug-info-kind=limited
-dwarf-version=4 -debugger-tuning=gdb -momit-leaf-frame-pointer
-coverage-notes-file /home/joel/dev/skiboot/core/chip.gcno -nostdsysteminc
-nobuiltininc -resource-dir /usr/lib/llvm-7/lib/clang/7.0.0 -dependency-file
core/chip.d -MT core/chip.o -include /home/joel/dev/skiboot/include/config.h
-isystem /usr/lib/llvm-7/lib/clang/7.0.0/include -I
/home/joel/dev/skiboot/include -I include -I /home/joel/dev/skiboot/libfdt -I
/home/joel/dev/skiboot/libflash -I /home/joel/dev/skiboot/libxz -I
/home/joel/dev/skiboot/libc/include -I /home/joel/dev/skiboot -I
/home/joel/dev/skiboot/libpore -D __SKIBOOT__ -D BITS_PER_LONG=64 -D
HAVE_BIG_ENDIAN -D USE_VALGRIND=1 -O3 -Wjump-misses-init
-Wsuggest-attribute=const -Wsuggest-attribute=noreturn -Wstack-usage=1024 -Wall
-Wundef -Wstrict-prototypes -Wno-trigraphs
-Werror-implicit-function-declaration -Wdeclaration-after-statement
-Wno-pointer-sign -Wextra -Wno-sign-compare -Wmissing-prototypes
-Wmissing-declarations -Wwrite-strings -Wcast-align -Winit-self
-Wno-stringop-truncation -Werror -Wno-cast-align
-Wno-unused-command-line-argument -Wno-unknown-warning-option
-Wno-gnu-variable-sized-type-not-at-end -Wno-address-of-packed-member
-std=gnu11 -fconst-strings -fdebug-compilation-dir /home/joel/dev/skiboot
-ferror-limit 19 -fmessage-length 106 -fno-signed-char -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o core/chip.o -x c core/chip.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'core/chip.c'.
4.      Running pass 'Linux PPC Assembly Printer' on function '@pir_to_core_id'
#0 0x00007efeac0e1d9a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x8f1d9a)
#1 0x00007efeac0e04a4 llvm::sys::RunSignalHandlers()
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x8f04a4)
#2 0x00007efeac0e05e2 (/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x8f05e2)
#3 0x00007efeaf6e4890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#4 0x00007efeadcaa076 (/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x24ba076)
#5 0x00007efeadcae61e (/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x24be61e)
#6 0x00007efead12d395 llvm::MCELFStreamer::EmitInstToData(llvm::MCInst const&,
llvm::MCSubtargetInfo const&)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x193d395)
#7 0x00007efead13d172 llvm::MCObjectStreamer::EmitInstructionImpl(llvm::MCInst
const&, llvm::MCSubtargetInfo const&)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x194d172)
#8 0x00007efead13d1ab llvm::MCObjectStreamer::EmitInstruction(llvm::MCInst
const&, llvm::MCSubtargetInfo const&, bool)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x194d1ab)
#9 0x00007efeadbd1908 (/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x23e1908)
#10 0x00007efeadbd3a33 (/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x23e3a33)
#11 0x00007efeac76e930 llvm::AsmPrinter::EmitFunctionBody()
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0xf7e930)
#12 0x00007efeadbcd26c (/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x23dd26c)
#13 0x00007efeac3a51d0
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0xbb51d0)
#14 0x00007efeac1ccc58 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x9dcc58)
#15 0x00007efeac1ccca3 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x9dcca3)
#16 0x00007efeac1cc457 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/lib/llvm-7/bin/../lib/libLLVM-7.so.1+0x9dc457)
#17 0x00005576d46e86da clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/usr/lib/llvm-7/bin/clang+0x4e56da)
#18 0x00005576d4ce37e4 (/usr/lib/llvm-7/bin/clang+0xae07e4)
#19 0x00005576d537c4d9 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/lib/llvm-7/bin/clang+0x11794d9)
#20 0x00005576d4ce2967 clang::CodeGenAction::ExecuteAction()
(/usr/lib/llvm-7/bin/clang+0xadf967)
#21 0x00005576d4b14486 clang::FrontendAction::Execute()
(/usr/lib/llvm-7/bin/clang+0x911486)
#22 0x00005576d4adbf2c
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/lib/llvm-7/bin/clang+0x8d8f2c)
#23 0x00005576d4bc714b
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/lib/llvm-7/bin/clang+0x9c414b)
#24 0x00005576d4689e68 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/lib/llvm-7/bin/clang+0x486e68)
#25 0x00005576d467799e main (/usr/lib/llvm-7/bin/clang+0x47499e)
#26 0x00007efeaa8afb97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#27 0x00005576d468771a _start (/usr/lib/llvm-7/bin/clang+0x48471a)
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 7.0.0- (trunk)
Target: powerpc64--linux-gnu
Thread model: posix
InstalledDir: /usr/bin</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>