[llvm-bugs] [Bug 41755] New: omp_sched_monotonic declaration causes error when building the compiler

via llvm-bugs llvm-bugs at lists.llvm.org
Sun May 5 08:40:44 PDT 2019


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

            Bug ID: 41755
           Summary: omp_sched_monotonic declaration causes error when
                    building the compiler
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: csdaley at lbl.gov
                CC: llvm-bugs at lists.llvm.org

I am unable to build the compiler. It appears to be an issue with
https://github.com/llvm-mirror/openmp/commit/67ef47a8a17b8d44181a0651d684c45b828a4653
because I can build the compiler when rolling back one commit.

```
[ 26%] Generating omp_lib.mod, omp_lib_kinds.mod
cd /tmp/llvm-build.S3rJda/build-llvm/projects/openmp/runtime/src &&
/opt/gcc/7.3.0/bin/gfortran -c omp_lib.f90
omp_lib.f90:62:72:

         integer(kind=omp_sched_kind), parameter :: omp_sched_monotonic =
Z'80000000'
                                                                        1
Error: Arithmetic overflow converting INTEGER(16) to INTEGER(4) at (1). This
check can be disabled with the option '-fno-range-check'
```

I am combining both of the following Cmake options which is probably not
commonly tested:

```
    -DLIBOMP_FORTRAN_MODULES=ON \
    -DOPENMP_ENABLE_LIBOMPTARGET=ON \
```

-- 
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/20190505/6128ddc0/attachment.html>


More information about the llvm-bugs mailing list