<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - omp_sched_monotonic declaration causes error when building the compiler"
href="https://bugs.llvm.org/show_bug.cgi?id=41755">41755</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>omp_sched_monotonic declaration causes error when building the compiler
</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>Clang Compiler Support
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>csdaley@lbl.gov
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I am unable to build the compiler. It appears to be an issue with
<a href="https://github.com/llvm-mirror/openmp/commit/67ef47a8a17b8d44181a0651d684c45b828a4653">https://github.com/llvm-mirror/openmp/commit/67ef47a8a17b8d44181a0651d684c45b828a4653</a>
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 \
```</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>