[llvm-bugs] [Bug 38712] New: Cannot build openmp project using gcc after r340542
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Aug 27 01:34:41 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38712
Bug ID: 38712
Summary: Cannot build openmp project using gcc after r340542
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Runtime Library
Assignee: unassignedbugs at nondot.org
Reporter: ilia.taraban at intel.com
CC: llvm-bugs at lists.llvm.org
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: https://reviews.llvm.org/D50522
------------------------------------------------------------------------
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.
--
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/20180827/6ead8d28/attachment.html>
More information about the llvm-bugs
mailing list