<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 --- - openmp code prevents lto bootstrap"
   href="https://llvm.org/bugs/show_bug.cgi?id=25679">25679</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>openmp code prevents lto bootstrap
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>OpenMP
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>Runtime Library
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>ismail@i10z.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>Trying to compile clang with -flto -fuse-ld=gold on Linux x86-64 results in:

FAILED: : && /opt/clang/bin/clang  -fPIC -fuse-ld=gold -flto -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic
-Wno-long-long -Wno-comment -fcolor-diagnostics -O3  -stdlib=libc++ -Wl,-z,defs
 -Wl,--warn-shared-textrel -Wl,--as-needed
-Wl,--version-script=/home/abuild/rpmbuild/BUILD/llvm/projects/openmp/runtime/src/exports_so.txt
-static-libgcc -Wl,-z,noexecstack -Wl,-fini=__kmp_internal_end_fini -shared
-Wl,-soname,libomp.so -o lib64/libomp.so
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_alloc.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_atomic.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_debug.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_itt.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_environment.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_error.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_global.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_i18n.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_io.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_runtime.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_settings.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_str.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_tasking.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_taskq.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_threadprivate.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_utility.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/z_Linux_util.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/thirdparty/ittnotify/ittnotify_static.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_cdecl.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_extra.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_version.c.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_barrier.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_wait_release.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_affinity.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_dispatch.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_lock.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_sched.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_taskdeps.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_cancel.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/z_Linux_asm.s.o  -lpthread -ldl
-Wl,-rpath,"\$ORIGIN/../lib64" && cd
/home/abuild/rpmbuild/BUILD/llvm/stage1/lib64 && /usr/bin/cmake -E
create_symlink libomp.so libgomp.so && /usr/bin/cmake -E create_symlink
libomp.so libiomp5.so && cd
/home/abuild/rpmbuild/BUILD/llvm/stage1/projects/openmp/runtime/src &&
/usr/bin/cmake -E make_directory
/home/abuild/rpmbuild/BUILD/llvm/projects/openmp/runtime/exports/common/include
&& /usr/bin/cmake -E copy omp.h
/home/abuild/rpmbuild/BUILD/llvm/projects/openmp/runtime/exports/common/include
&& cd /home/abuild/rpmbuild/BUILD/llvm/stage1/projects/openmp/runtime/src &&
/usr/bin/cmake -E make_directory
/home/abuild/rpmbuild/BUILD/llvm/projects/openmp/runtime/exports/lin_32e/lib &&
/usr/bin/cmake -E copy /home/abuild/rpmbuild/BUILD/llvm/stage1/lib64/libomp.so
/home/abuild/rpmbuild/BUILD/llvm/projects/openmp/runtime/exports/lin_32e/lib
LLVM gold plugin: <unknown>:0:0: loop not vectorized: cannot prove it is safe
to reorder memory operations
LLVM ERROR: A @@ version cannot be undefined
clang-3.8: error: linker command failed with exit code 1 (use -v to see
invocation)

Probably related to llvm <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED --- - A @@ version cannot be undefined"
   href="show_bug.cgi?id=24023">bug#24023</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>