On 01/05/15 14:45 +0200, Rainer Orth wrote: >Jonathan Wakely writes: > >> I've tested this on GNU/Linux and DragonFly BSD, but as it's probably >> not going to build everywhere I've added the configure option >> --enable-libstdcxx-filesystem-ts which defaults to enabled on GNU, BSD >> and Solaris targets, and disabled elsewhere for now. If it fails to >> build on any of those targets we can change the default while we fix >> the problem. > >Unfortunately, the patch breaks Solaris 10 bootstrap, which lacks >fchmodat: > >/vol/gcc/src/hg/trunk/local/libstdc++-v3/src/filesystem/ops.cc: In function 'void std::experimental::filesystem::v1::permissions(const std::experimental::filesystem::v1::__cxx11::path&, std::experimental::filesystem::v1::perms, std::error_code&)': >/vol/gcc/src/hg/trunk/local/libstdc++-v3/src/filesystem/ops.cc:890:17: error: '::fchmodat' has not been declared > if (int err = ::fchmodat(AT_FDCWD, p.c_str(), static_cast(prms), 0)) > ^ >make[6]: *** [ops.lo] Error 1 Sorry about that, I'll add a check for fchmodat, in the meantime this will fix bootstrap. Committed as obvious.