[llvm-bugs] [Bug 30489] New: Cannot build with -DLIBOMP_FORTRAN_MODULES=True

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 22 08:04:56 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30489

            Bug ID: 30489
           Summary: Cannot build with -DLIBOMP_FORTRAN_MODULES=True
           Product: OpenMP
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Runtime Library
          Assignee: unassignedbugs at nondot.org
          Reporter: pawel.osmialowski at foss.arm.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

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!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160922/a0d5d2ab/attachment.html>


More information about the llvm-bugs mailing list