https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90261
Bug ID: 90261 Summary: FAIL: libphobos.phobos/std/file.d on CentOS 5.11, Linux 2.6.18 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d Assignee: ibuclaw at gdcproject dot org Reporter: ubizjak at gmail dot com Target Milestone: --- libphobos testing on x86_64 CentOS 5.11 fails to compile a testcase: FAIL: libphobos.phobos/std/file.d with: /tmp/cc36u3o7.o: In function `_D3std4file17__T8setTimesTAyaZ8setTimesFAyaS3std8datetime7systime7SysTimeS3std8datetime7systime7SysTimeZ16trustedUtimensatFNbNiNeiPxaKxG2S4core3sys5posix6signal8timespeciZi': /home/uros/git/gcc/libphobos/testsuite/../src/std/file.d:1272: undefined reference to `utimensat' collect2: error: ld returned 1 exit status compiler exited with status 1 due to non-existent utimensat function in CentOS 5.11's GNU C Library stable release version 2.5, by Roland McGrath et al. Regarding utimensat, its manpage says: VERSIONS utimensat() was added to Linux in kernel 2.6.22; glibc support was added with version 2.6. Support for futimens() first appeared in glibc 2.6.