<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 --- - Broken module found, compilation aborted, stack dump, while compiling Zoltan"
   href="http://llvm.org/bugs/show_bug.cgi?id=20027">20027</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Broken module found, compilation aborted, stack dump,  while compiling Zoltan
          </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>MacOS X
          </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>ilja.j.honkonen@nasa.gov
          </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>Steps to reproduce: compile openmpi-1.7.3 with clang 3.4 from macports then try
to compile zoltan-3.8 after configuring with: ../Zoltan_v3.8/configure
--prefix=... --enable-mpi --with-mpi-compilers --with-gnumake
--with-id-type=ullong

...
Making all in src
Making all in .
/Users/iljah/libraries/clang-3.4/openmpi-1.7.3/bin/mpicc -DHAVE_CONFIG_H -I.
-I../../Zoltan_v3.8/src -I../src/include 
-I/Users/iljah/Ohjelmat/zoltan-build/src/include
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/include
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/all
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/coloring
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/ha
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/hier
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/hsfc
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/lb
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/oct
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/order
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/par
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/params
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/tpls
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/ccolamd
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/phg
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/rcb
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/reftree
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/timer
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/Utilities/Communication
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/Utilities/Timer
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/Utilities/DDirectory
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/Utilities/Memory
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/Utilities/shared
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/zz
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/graph
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/matrix
-I/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/simple  
-DAUTOTOOLS_BUILD    -g -O2 -MT phg_coarse.o -MD -MP -MF .deps/phg_coarse.Tpo
-c -o phg_coarse.o `test -f '../../Zoltan_v3.8/src/phg/phg_coarse.c' || echo
'../../Zoltan_v3.8/src/'`../../Zoltan_v3.8/src/phg/phg_coarse.c
Instruction does not dominate all uses!
  %arrayidx1050 = getelementptr inbounds double* %368, i64 %indvars.iv3136,
!dbg !1433
  %bound13263 = icmp ule double* %arrayidx1050, %scevgep3259
Instruction does not dominate all uses!
  %arrayidx1050 = getelementptr inbounds double* %368, i64 %indvars.iv3136,
!dbg !1433
  %bound03262 = icmp ule double* %scevgep3256, %arrayidx1050
Broken module found, compilation aborted!
0  libLLVM-3.4.dylib        0x0000000104d29388
llvm::sys::PrintStackTrace(__sFILE*) + 40
1  libLLVM-3.4.dylib        0x0000000104d29884 SignalHandler(int) + 548
2  libsystem_platform.dylib 0x00007fff953c15aa _sigtramp + 26
3  libsystem_platform.dylib 0x0000000000003c00 _sigtramp + 1791239792
4  libLLVM-3.4.dylib        0x0000000104d29646 abort + 22
5  libLLVM-3.4.dylib        0x00000001046b5066 (anonymous
namespace)::Verifier::abortIfBroken() + 550
6  libLLVM-3.4.dylib        0x00000001046b4ae8 (anonymous
namespace)::Verifier::runOnFunction(llvm::Function&) + 1864
7  libLLVM-3.4.dylib        0x000000010469190b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 347
8  libLLVM-3.4.dylib        0x0000000104691b9b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
9  libLLVM-3.4.dylib        0x0000000104692179
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1081
10 libLLVM-3.4.dylib        0x000000010469258d
llvm::legacy::PassManager::run(llvm::Module&) + 13
11 clang                    0x0000000102cea2ce
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5694
12 clang                    0x0000000102df1117
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 455
13 clang                    0x0000000102e44984 clang::ParseAST(clang::Sema&,
bool, bool) + 516
14 clang                    0x0000000102deffaa
clang::CodeGenAction::ExecuteAction() + 122
15 clang                    0x0000000102b913a6 clang::FrontendAction::Execute()
+ 134
16 clang                    0x0000000102b6bc1d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
17 clang                    0x0000000102b33c84
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4276
18 clang                    0x0000000102b2ba83 cc1_main(char const**, char
const**, char const*, void*) + 835
19 clang                    0x0000000102b2ff92 main + 1138
20 libdyld.dylib            0x00007fff8fe595fd start + 1
Stack dump:
0.    Program arguments: /opt/local/libexec/llvm-3.4/bin/clang -cc1 -triple
x86_64-apple-macosx10.9.0 -emit-obj -disable-free -main-file-name phg_coarse.c
-mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 136 -gdwarf-2
-coverage-file /Users/iljah/Ohjelmat/zoltan-build/src/phg_coarse.o
-resource-dir /opt/local/libexec/llvm-3.4/bin/../lib/clang/3.4 -dependency-file
.deps/phg_coarse.Tpo -sys-header-deps -MP -MT phg_coarse.o -D HAVE_CONFIG_H -D
AUTOTOOLS_BUILD -I . -I ../../Zoltan_v3.8/src -I ../src/include -I
/Users/iljah/Ohjelmat/zoltan-build/src/include -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/include -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/all -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/coloring -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/ha -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/hier -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/hsfc -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/lb -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/oct -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/order -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/par -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/params -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/tpls -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/ccolamd -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/phg -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/rcb -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/reftree -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/timer -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/Utilities/Communication
-I /Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/Utilities/Timer -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/Utilities/DDirectory -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/Utilities/Memory -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/Utilities/shared -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/zz -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/graph -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/matrix -I
/Users/iljah/Ohjelmat/zoltan-build/../Zoltan_v3.8/src/simple -I
/Users/iljah/libraries/clang-3.4/openmpi-1.7.3/include -O2
-fdebug-compilation-dir /Users/iljah/Ohjelmat/zoltan-build/src -ferror-limit 19
-fmessage-length 125 -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.9.0 -fencode-extended-block-signature
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o phg_coarse.o -x c ../../Zoltan_v3.8/src/phg/phg_coarse.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module
'../../Zoltan_v3.8/src/phg/phg_coarse.c'.
4.    Running pass 'Module Verifier' on function '@Zoltan_PHG_Coarsening'
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-apple-darwin13.2.0
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:
/var/folders/ff/m6cylxhd2csdz9fh62g3djtm0000gq/T/phg_coarse-d7092c.c
clang: note: diagnostic msg:
/var/folders/ff/m6cylxhd2csdz9fh62g3djtm0000gq/T/phg_coarse-d7092c.sh
clang: note: diagnostic msg: 

********************
make[2]: *** [phg_coarse.o] Error 254
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1


Compilation script has:  "/opt/local/libexec/llvm-3.4/bin/clang" -cc1 -triple
x86_64-apple-macosx10.9.0 -emit-obj -disable-free -main-file-name phg_coarse.c
-mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 136 -gdwarf-2
-sys-header-deps -D "HAVE_CONFIG_H" -D "AUTOTOOLS_BUILD" -O2 -ferror-limit 19
-fmessage-length 125 -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.9.0 -fencode-extended-block-signature
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-x c phg_coarse-d7092c.c

The preprocessed c file has:
"This file contains Original Code and/or Modifications of Original Code
 * as defined in and that are subject to the Apple Public Source License
 * Version 2.0 (the 'License'). You may not use this file except in
 * compliance with the License. Please obtain a copy of the License at
 * <a href="http://www.opensource.apple.com/apsl/">http://www.opensource.apple.com/apsl/</a> and read it before using this
 * file." so I'm not going to attach it here.

Zoltan is available at
<a href="http://www.cs.sandia.gov/~kddevin/Zoltan_Distributions/zoltan_distrib_v3.8.tar.gz">http://www.cs.sandia.gov/~kddevin/Zoltan_Distributions/zoltan_distrib_v3.8.tar.gz</a></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>