https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96568
Bug ID: 96568 Summary: Cross compiler for epiphany and arm-none cannot be built Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- I see the following issue: [ 269s] ../../../../../libstdc++-v3/src/c++17/fs_ops.cc: In function 'std::filesystem::path std::filesystem::read_symlink(const std::filesystem::path&, std::error_code&)': [ 269s] ../../../../../libstdc++-v3/src/c++17/fs_ops.cc:1178:9: error: '::lstat' has not been declared; did you mean 'std::filesystem::__gnu_posix::lstat'? [ 269s] 1178 | if (::lstat(p.c_str(), &st)) [ 269s] | ^~~~~ [ 269s] | std::filesystem::__gnu_posix::lstat [ 269s] In file included from ../../../../../libstdc++-v3/src/c++17/fs_ops.cc:58, [ 269s] from ../../../../../libstdc++-v3/src/c++17/cow-fs_ops.cc:26: [ 269s] ../../../../../libstdc++-v3/src/c++17/../filesystem/ops-common.h:131:14: note: 'std::filesystem::__gnu_posix::lstat' declared here [ 269s] 131 | inline int lstat(const char* path, stat_type* buffer) [ 269s] | ^~~~~ [ 270s] ../../../../../libstdc++-v3/src/c++17/fs_ops.cc: In function 'std::filesystem::__cxx11::path std::filesystem::read_symlink(const std::filesystem::__cxx11::path&, std::error_code&)': [ 270s] ../../../../../libstdc++-v3/src/c++17/fs_ops.cc:1178:9: error: '::lstat' has not been declared; did you mean 'std::filesystem::__gnu_posix::lstat'? [ 270s] 1178 | if (::lstat(p.c_str(), &st)) [ 270s] | ^~~~~ [ 270s] | std::filesystem::__gnu_posix::lstat [ 270s] In file included from ../../../../../libstdc++-v3/src/c++17/fs_ops.cc:58: [ 270s] ../../../../../libstdc++-v3/src/c++17/../filesystem/ops-common.h:131:14: note: 'std::filesystem::__gnu_posix::lstat' declared here [ 270s] 131 | inline int lstat(const char* path, stat_type* buffer) [ 270s] | ^~~~~