<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 --- - clang 3.7.0 segfaults during mpich3.1.4 compile"
   href="https://llvm.org/bugs/show_bug.cgi?id=25397">25397</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang 3.7.0 segfaults during mpich3.1.4 compile
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.7
          </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>cwsmith07@gmail.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=15214" name="attach_15214" title="tarball with the following files:">attachment 15214</a> <a href="attachment.cgi?id=15214&action=edit" title="tarball with the following files:">[details]</a></span>
tarball with the following files:

clang 3.7.0 segfaults when compiling mpich3.1.4 
<a href="http://www.mpich.org/static/downloads/3.1.4/mpich-3.1.4.tar.gz">http://www.mpich.org/static/downloads/3.1.4/mpich-3.1.4.tar.gz</a>

Mpich was configured with the following command:

../configure --disable-fortran
--prefix=/home/cwsmith/software/mpich-3.1.4/installClang370
--enable-threads=multiple CC=clang CXX=clang++ --enable-yield=sched_yield 

The files suggested for submission with the bug report by the diagnostic
message are attached.

Compilation failed with the following output:

  CC       src/mpi/pt2pt/lib_libmpi_la-greq_start.lo
../src/mpi/pt2pt/greq_start.c:239:62: error: alias must point to a defined
variable or function
        MPIX_Grequest_class *greq_class)
__attribute__((weak,alias("MPIX_Grequest_class_create")));
                                                             ^
0  libLLVM.so.3.7  0x00007fdbdca92228
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 56
1  libLLVM.so.3.7  0x00007fdbdca91041
2  libpthread.so.0 0x00007fdbdc323d60
3  clang-3.7       0x0000000000699256
clang::CodeGen::CodeGenModule::checkAliases() + 598
4  clang-3.7       0x00000000006a4519 clang::CodeGen::CodeGenModule::Release()
+ 25
5  clang-3.7       0x000000000098370d
6  clang-3.7       0x0000000000ab70d2 clang::ParseAST(clang::Sema&, bool, bool)
+ 802
7  clang-3.7       0x0000000000908b06 clang::FrontendAction::Execute() + 502
8  clang-3.7       0x00000000008e2e79
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 313
9  clang-3.7       0x0000000000982624
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1940
10 clang-3.7       0x0000000000652958 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 2280
11 clang-3.7       0x000000000064db7b main + 1003
12 libc.so.6       0x00007fdbdb9f7610 __libc_start_main + 240
13 clang-3.7       0x0000000000650839 _start + 41
Stack dump:
0.    Program arguments: /usr/bin/clang-3.7 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-main-file-name greq_start.c -mrelocation-model pic -pic-level 2 -mthread-model
posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer
-dwarf-column-info -coverage-file
/home/cwsmith/software/mpich-3.1.4/buildClang370/src/mpi/pt2pt/.libs/lib_libmpi_la-greq_start.o
-resource-dir /usr/bin/../lib/clang/3.7.0 -dependency-file
src/mpi/pt2pt/.deps/lib_libmpi_la-greq_start.Tpo -sys-header-deps -MP -MT
src/mpi/pt2pt/lib_libmpi_la-greq_start.lo -D HAVE_CONFIG_H -D _REENTRANT -D PIC
-I . -I .. -I ./src/include -I ../src/include -I ../src/mpi/datatype -I
../src/mpi/spawn -I src/util/logging/common -I ../src/util/wrappers -I
./src/util/wrappers -I ./src/binding/cxx -I ../src/mpid/ch3/include -I
./src/mpid/ch3/include -I ../src/mpid/ch3/channels/nemesis/include -I
./src/mpid/ch3/channels/nemesis/include -I
../src/mpid/ch3/channels/nemesis/utils/monitor -I ../src/mpid/common/datatype
-I ../src/mpid/common/datatype -I ../src/mpid/common/sched -I
../src/mpid/common/thread -I ../src/pmi/simple -I
/home/cwsmith/software/mpich-3.1.4/buildClang370/src/mpl/include -I
/home/cwsmith/software/mpich-3.1.4/src/mpl/include -I
/home/cwsmith/software/mpich-3.1.4/src/openpa/src -I
/home/cwsmith/software/mpich-3.1.4/buildClang370/src/openpa/src -I
/home/cwsmith/software/mpich-3.1.4/buildClang370/src/mpi/romio/include
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.7.0/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O2 -fdebug-compilation-dir
/home/cwsmith/software/mpich-3.1.4/buildClang370 -ferror-limit 19
-fmessage-length 211 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o src/mpi/pt2pt/.libs/lib_libmpi_la-greq_start.o -x c
../src/mpi/pt2pt/greq_start.c 
1.    <eof> parser at end of file
2.    Per-file LLVM IR generation
clang-3.7: error: unable to execute command: Segmentation fault (core dumped)
clang-3.7: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.0 (tags/RELEASE_370/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix</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>