https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89432
--- Comment #8 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to ibuclaw from comment #6) > Author: ibuclaw > Date: Wed Apr 24 18:57:36 2019 > New Revision: 270554 > > URL: https://gcc.gnu.org/viewcvs?rev=270554&root=gcc&view=rev > Log: > libphobos: Fix FAIL phobos.exp/core.time on CentOS 5.11, Linux 2.6.18 > > Merges upstream druntime e03164b5. > > Reviewed-on: https://github.com/dlang/druntime/pull/2581 > > libphobos/ChangeLog: > > 2019-04-24 Iain Buclaw <ibuc...@gdcproject.org> > > PR d/89432 > * testsuite/lib/libphobos.exp (check_effective_target_linux_pre_2639): > New proc. > * testsuite/libphobos.druntime/druntime.exp: Add compiler flag > -fversion=Linux_Pre_2639 if target is linux_pre_2639. > * testsuite/libphobos.druntime_shared/druntime_shared.exp: Likewise. > > Modified: > trunk/libphobos/ChangeLog > trunk/libphobos/libdruntime/MERGE > trunk/libphobos/libdruntime/core/time.d > trunk/libphobos/testsuite/lib/libphobos.exp > trunk/libphobos/testsuite/libphobos.druntime/druntime.exp > trunk/libphobos/testsuite/libphobos.druntime_shared/druntime_shared.exp This part: #include <linux/version.h> #if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < KERNEL_VERSION(2.6.39) #error Yes, it is. #endif The KERNEL_VERSION macro expects three arguments, so commas should be used: "KERNEL_VERSION(2,6,39)" Currently the check always fails with: linux_pre_263917519.c:3:79: error: macro "KERNEL_VERSION" requires 3 arguments, but only 1 given In file included from linux_pre_263917519.c:2: /usr/include/linux/version.h:2: note: macro "KERNEL_VERSION" defined here compiler exited with status 1