$ cc -v FreeBSD clang version 7.0.0 (branches/release_70 338892) (based on LLVM 7.0.0svn) Target: x86_64-unknown-freebsd12.0 Thread model: posix $ make [...] In file included from Source/kwsys/SystemTools.cxx:23: In file included from Source/cmsys/FStream.hxx:10: In file included from /usr/include/c++/v1/fstream:184: In file included from /usr/include/c++/v1/ostream:138: In file included from /usr/include/c++/v1/ios:216: In file included from /usr/include/c++/v1/__locale:18: In file included from /usr/include/c++/v1/mutex:191: In file included from /usr/include/c++/v1/__mutex_base:15: In file included from /usr/include/c++/v1/chrono:795: /usr/include/c++/v1/ctime:77:9: error: no member named 'timespec_get' in the global namespace; did you mean 'timespec'? using ::timespec_get; ~~^ /usr/include/sys/_timespec.h:46:8: note: 'timespec' declared here struct timespec { ^ build log: https://ptpb.pw/ynfq https://ptpb.pw/WpWK
<ctime> in -std=c++17 was broken by https://reviews.llvm.org/rL338419
Created attachment 195942 [details] workaround Looks like C11 timespec_get() isn't implemented on FreeBSD unlike DragonFly or NetBSD.
I'm committing a timespec_get() to -current shortly.
What's the plan for /stable/11? MFC timespec_get(), land the workaround or freeze libc++ (breaking promise in bug 215193) ?
(In reply to Jan Beich from comment #4) > What's the plan for /stable/11? MFC timespec_get(), land the workaround or > freeze libc++ (breaking promise in bug 215193) ? I think timespec_get() is probably fine to MFC, but I'll leave it up to Warner. :)
A commit references this bug: Author: dim Date: Fri Aug 10 21:40:28 UTC 2018 New revision: 337593 URL: https://svnweb.freebsd.org/changeset/base/337593 Log: Upstream libc++ added a using ::timespec_get line, when in C++17 or higher mode, in <https://reviews.llvm.org/rL338419>. Since we do not yet have this C11 function, comment out the line for now, as a workaround for a number of failing ports. Discussion with upstream is ongoing about an acceptable permanent fix. PR: 230400 Reported by: jbeich Changes: projects/clang700-import/contrib/libc++/include/ctime
As of FreeBSD_version 1200077 we have this function, if that helps anybody...
A commit references this bug: Author: dim Date: Sat Aug 11 20:08:26 UTC 2018 New revision: 337654 URL: https://svnweb.freebsd.org/changeset/base/337654 Log: Undo r337593 (commenting out of timespec_get in libc++'s <ctime> header), now that r337576 added that function. PR: 230400 Changes: projects/clang700-import/contrib/libc++/include/ctime
This should now be fixed, please retry those builds.
Confirmed, builds fine now. http://package18.nyi.freebsd.org/data/headamd64PR230355-default/2018-08-11_19h01m06s/logs/cmake-3.12.0_1.log http://package18.nyi.freebsd.org/data/headamd64PR230355-default/2018-08-11_19h01m06s/logs/qt5-buildtools-5.10.1.log