<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 --- - Cannot build with -DLIBOMP_FORTRAN_MODULES=True"
   href="https://llvm.org/bugs/show_bug.cgi?id=30489">30489</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cannot build with -DLIBOMP_FORTRAN_MODULES=True
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>pawel.osmialowski@foss.arm.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>cd /home/user/fresh/openmp/runtime/src && /usr/bin/cmake -E create_symlink
libomp.so libgomp.so
cd /home/user/fresh/openmp/runtime/src && /usr/bin/cmake -E create_symlink
libomp.so libiomp5.so
cd /home/user/fresh/openmp/runtime/src && /usr/bin/cmake -E make_directory
/home/user/fresh/openmp/runtime/exports/common.ompt/include
Error making directory
"/home/user/fresh/openmp/runtime/exports/common.ompt/include".
runtime/src/CMakeFiles/omp.dir/build.make:926: recipe for target
'runtime/src/libomp.so' failed
make[2]: *** [runtime/src/libomp.so] Error 1
make[2]: *** Deleting file 'runtime/src/libomp.so'
make[2]: Leaving directory '/home/user/fresh/openmp'
CMakeFiles/Makefile2:379: recipe for target
'runtime/src/CMakeFiles/omp.dir/all' failed
make[1]: *** [runtime/src/CMakeFiles/omp.dir/all] Error 2
make[1]: Leaving directory '/home/user/fresh/openmp'
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Apparently 'include' already exists and unfortunately it is a Fortran file
which begins like this:

! include/45/omp_lib.h.var

!
!//===----------------------------------------------------------------------===//
!//
!//                     The LLVM Compiler Infrastructure
!//
!// This file is dual licensed under the MIT and the University of Illinois
Open
!// Source Licenses. See LICENSE.txt for details.
!//
!//===----------------------------------------------------------------------===//
!

!***
!*** Some of the directives for the following routine extend past column 72,
!*** so process this file in 132-column mode.
!***

!DIR$ fixedformlinesize:132

      integer, parameter :: omp_integer_kind       = 4
      integer, parameter :: omp_logical_kind       = 4
      integer, parameter :: omp_real_kind          = 4
...

Note that building outside the source directory does not help, it still
modifies source directory tree and fails to create 'include' directory!</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>