[Bug d/89432] FAIL: libphobos.unittests/druntime/{static,shared}/core.time on CentOS 5.11, Linux 2.6.18
ibuclaw at gdcproject dot org
gcc-bugzilla@gcc.gnu.org
Thu Feb 21 11:03:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89432
--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
(In reply to Uroš Bizjak from comment #0)
> libphobos testing on x86_64 CentOS 5.11 fails a testcase:
>
>
> There is the following code in time.d:
>
> static bool clockSupported(ClockType c)
> {
> version (Linux_Pre_2639) // skip CLOCK_BOOTTIME on older linux
> kernels
> return c != ClockType.second && c != ClockType.bootTime;
> else
> return c != ClockType.second; // second doesn't work with
> MonoTimeImpl
>
> but it looks that Linux_Pre_2639 is not handled correctly. Depending on
> which kernel is considered the oldest supported kernel, version should also
> check for 2.6.28, 2.6.32 and 2.6.12:
>
Linux_Pre_2639 is not an implicit version, and requires explicit detection and
adding '-fversion=Linux_Pre_2639' to GDCFLAGSX in the configure/testsuite
scripts.
More information about the Gcc-bugs
mailing list