<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 - Cannot build openmp project using gcc after r340542"
   href="https://bugs.llvm.org/show_bug.cgi?id=38712">38712</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cannot build openmp project using gcc after r340542
          </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>enhancement
          </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>ilia.taraban@intel.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>After this commit:

------------------------------------------------------------------------
r340542 | alexeichenberger | 2018-08-23 18:22:42 +0200 (Thu, 23 Aug 2018) | 13
lines

[OpenMP][libomptarget] Bringing up to spec with respect to OMP_TARGET_OFFLOAD
env var

Summary:
Right now, only the OMP_TARGET_OFFLOAD=DISABLED was implemented. Added support
for the other MANDATORY and DEFAULT values.


Reviewers: gtbercea, ABataev, grokos, caomhin, Hahnfeld

Reviewed By: Hahnfeld

Subscribers: protze.joachim, gtbercea, AlexEichenberger, RaviNarayanaswamy,
Hahnfeld, guansong, openmp-commits

Differential Revision: <a href="https://reviews.llvm.org/D50522">https://reviews.llvm.org/D50522</a>
------------------------------------------------------------------------

In simple build I receive errors like:
------------------------------------------------------------------------
$ cd $BUILDS_DIR/build/projects/openmp/libomptarget/src && /usr/bin/c++  
-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -Domptarget_EXPORTS
-I$BUILDS_DIR/build/projects/openmp/libomptarget/src
-I$BUILDS_DIR/llvm/projects/openmp/libomptarget/src -I/usr/include/libxml2
-I$BUILDS_DIR/build/include -I$BUILDS_DIR/llvm/include
-I$BUILDS_DIR/llvm/projects/openmp/libomptarget/include  -fPIC
-fvisibility-inlines-hidden -std=c++11 -Wall -Wextra -Wno-unused-parameter
-Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic
-Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment
-ffunction-sections -fdata-sections -std=c++11 -O3 -DNDEBUG -fPIC   -o
CMakeFiles/omptarget.dir/omptarget.cpp.o -c
$BUILDS_DIR/llvm/projects/openmp/libomptarget/src/omptarget.cpp
$BUILDS_DIR/llvm/projects/openmp/libomptarget/src/omptarget.cpp: In function
'void FatalMessage(int, const char*, ...)':
$BUILDS_DIR/llvm/projects/openmp/libomptarget/src/omptarget.cpp:37:21: error:
'va_start' was not declared in this scope
   va_start(args, fmt);
                     ^
$BUILDS_DIR/llvm/projects/openmp/libomptarget/src/omptarget.cpp:43:14: error:
'va_end' was not declared in this scope
   va_end(args);
              ^
------------------------------------------------------------------------

I have same errors using different gcc versions: 4.8.5, 5.5.0, 6, 7 and 8.</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>