|
|
| Bugzilla Link |
34040 |
| Resolution |
FIXED |
| Resolved on |
Aug 19, 2017 17:06 |
| Version |
unspecified |
| OS |
Linux |
| Reporter |
LLVM Bugzilla Contributor |
Extended Description
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 http://git.musl-libc.org/cgit/musl/commit/?id=def0af189871a499efdc9bc37438d8b20eb702ab).
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".