[llvm-bugs] [Bug 34040] New: "error: ‘__va_copy’ was not declared in this scope" while building libomp against musl libc
llvm-bugs at lists.llvm.org
Wed Aug 2 21:19:20 PDT 2017
Bug ID: 34040
Summary: "error: ‘__va_copy’ was not declared in this scope"
while building libomp against musl libc
Component: Runtime Library
Assignee: unassignedbugs at nondot.org
Reporter: plevine457 at gmail.com
CC: llvm-bugs at lists.llvm.org
Building libomp-3.9.0 in Gentoo Linux with musl as libc using GCC-6.3.0 or
GCC-5.4.0 results in:
> /var/tmp/portage/sys-libs/libomp-3.9.0/work/openmp-3.9.0.src/runtime/src/kmp_str.c:211:40: error: ‘__va_copy’ was not declared in this scope
> __va_copy( _args, args ); // Make copy of args.
musl had previously provided "__va_copy" but has since relegated it only for
scenarios in which "__GNUC__ < 3", in favor of using "va_copy" (see
Seeing as libomp source code already uses one-line, double-slash style comments
which require at least C99 dialect, and that va_copy is a C99 macro, the best
course of action would be to change "__va_copy" to "va_copy".
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs