[ruby-core:121994] [Ruby Bug#21327] Windows builds seem broken after clock_gettime changes?

Issue #21327 has been reported by zenspider (Ryan Davis). ---------------------------------------- Bug #21327: Windows builds seem broken after clock_gettime changes? https://bugs.ruby-lang.org/issues/21327 * Author: zenspider (Ryan Davis) * Status: Open * Assignee: nobu (Nobuyoshi Nakada) * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- https://github.com/ruby/ruby/actions/workflows/windows.yml not sure how stable windows normally is, but this looks consistent since this commit (5855986) Assigning to nobu to investigate. -- https://bugs.ruby-lang.org/

Issue #21327 has been updated by hsbt (Hiroshi SHIBATA). It's fixed at https://github.com/ruby/ruby/pull/13302 But cross build is still broken. * https://rubyci.s3.amazonaws.com/crossruby/crossruby-master-mingw32/log/20250... * https://rubyci.s3.amazonaws.com/crossruby/crossruby-master-mingw64/log/20250... ---------------------------------------- Bug #21327: Windows builds seem broken after clock_gettime changes? https://bugs.ruby-lang.org/issues/21327#change-113182 * Author: zenspider (Ryan Davis) * Status: Assigned * Assignee: nobu (Nobuyoshi Nakada) * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- https://github.com/ruby/ruby/actions/workflows/windows.yml not sure how stable windows normally is, but this looks consistent since this commit (5855986) Assigning to nobu to investigate. -- https://bugs.ruby-lang.org/

Issue #21327 has been updated by MSP-Greg (Greg L). I just tested this with the ruby_3_4 branch. It's failing with: ``` ../ruby/win32/win32.c:4795:1: error: redefinition of 'clock_gettime' 4795 | clock_gettime(clockid_t clock_id, struct timespec *sp) | ^~~~~~~~~~~~~ In file included from C:/msys64/ucrt64/include/time.h:323, from C:/msys64/ucrt64/include/iptypes.h:16, from C:/msys64/ucrt64/include/iphlpapi.h:17, from ../ruby/include/ruby/win32.h:40, from ../ruby/include/ruby/internal/dosish.h:38, from ../ruby/include/ruby/defines.h:78, from ../ruby/include/ruby/ruby.h:25, from ../ruby/win32/win32.c:24: C:/msys64/ucrt64/include/pthread_time.h:111:35: note: previous definition of 'clock_gettime' with type 'int(clockid_t, struct timespec *)' {aka 'int(int, struct timespec *)'} 111 | WINPTHREAD_CLOCK_DECL int __cdecl clock_gettime(clockid_t clock_id, struct timespec *tp) | ^~~~~~~~~~~~~ ../ruby/win32/win32.c:4835:1: error: redefinition of 'clock_getres' 4835 | clock_getres(clockid_t clock_id, struct timespec *sp) | ^~~~~~~~~~~~ C:/msys64/ucrt64/include/pthread_time.h:100:35: note: previous definition of 'clock_getres' with type 'int(clockid_t, struct timespec *)' {aka 'int(int, struct timespec *)'} 100 | WINPTHREAD_CLOCK_DECL int __cdecl clock_getres(clockid_t clock_id, struct timespec *res) ``` Can this be backported to 3.4, 3.3, & 3.2, similar to the gcc 15 fix? ---------------------------------------- Bug #21327: Windows builds seem broken after clock_gettime changes? https://bugs.ruby-lang.org/issues/21327#change-113210 * Author: zenspider (Ryan Davis) * Status: Assigned * Assignee: nobu (Nobuyoshi Nakada) * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- https://github.com/ruby/ruby/actions/workflows/windows.yml not sure how stable windows normally is, but this looks consistent since this commit (5855986) Assigning to nobu to investigate. -- https://bugs.ruby-lang.org/

Issue #21327 has been updated by k0kubun (Takashi Kokubun). Backport changed from 3.2: REQUIRED, 3.3: REQUIRED, 3.4: REQUIRED to 3.2: REQUIRED, 3.3: REQUIRED, 3.4: DONE ruby_3_4 commit:65e02ab1a6e4482f417ec1d1cb4453958ad36ca3 merged revision(s) commit:3e47e7a499acd256be549935fcb559d3c82e556c, commit:b48b841378f80e16378ceb83f3b78e52df9ae023, commit:2fe8b9cd3d308d754f3d33a948dfb1dd782a10dc. ---------------------------------------- Bug #21327: Windows builds seem broken after clock_gettime changes? https://bugs.ruby-lang.org/issues/21327#change-113233 * Author: zenspider (Ryan Davis) * Status: Closed * Assignee: nobu (Nobuyoshi Nakada) * Backport: 3.2: REQUIRED, 3.3: REQUIRED, 3.4: DONE ---------------------------------------- https://github.com/ruby/ruby/actions/workflows/windows.yml not sure how stable windows normally is, but this looks consistent since this commit (5855986) Assigning to nobu to investigate. -- https://bugs.ruby-lang.org/

Issue #21327 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 3.2: REQUIRED, 3.3: REQUIRED, 3.4: DONE to 3.2: REQUIRED, 3.3: DONE, 3.4: DONE ruby_3_3 a3adc05a4e1f5c5d1cd95eee92da9693b23360bf merge revision(s) 3e47e7a499acd256be549935fcb559d3c82e556c, 46e4c8673747de96838d2c5dec37446d23d99d88 ---------------------------------------- Bug #21327: Windows builds seem broken after clock_gettime changes? https://bugs.ruby-lang.org/issues/21327#change-113324 * Author: zenspider (Ryan Davis) * Status: Closed * Assignee: nobu (Nobuyoshi Nakada) * Backport: 3.2: REQUIRED, 3.3: DONE, 3.4: DONE ---------------------------------------- https://github.com/ruby/ruby/actions/workflows/windows.yml not sure how stable windows normally is, but this looks consistent since this commit (5855986) Assigning to nobu to investigate. -- https://bugs.ruby-lang.org/

Issue #21327 has been updated by hsbt (Hiroshi SHIBATA). Backport changed from 3.2: REQUIRED, 3.3: DONE, 3.4: DONE to 3.2: DONE, 3.3: DONE, 3.4: DONE Merged at https://github.com/ruby/ruby/commit/d946d65cea2468086932bb95d77ac2f93b9f67b9 for Ruby 3.2 ---------------------------------------- Bug #21327: Windows builds seem broken after clock_gettime changes? https://bugs.ruby-lang.org/issues/21327#change-114142 * Author: zenspider (Ryan Davis) * Status: Closed * Assignee: nobu (Nobuyoshi Nakada) * Backport: 3.2: DONE, 3.3: DONE, 3.4: DONE ---------------------------------------- https://github.com/ruby/ruby/actions/workflows/windows.yml not sure how stable windows normally is, but this looks consistent since this commit (5855986) Assigning to nobu to investigate. -- https://bugs.ruby-lang.org/
participants (5)
-
hsbt (Hiroshi SHIBATA)
-
k0kubun (Takashi Kokubun)
-
MSP-Greg (Greg L)
-
nagachika (Tomoyuki Chikanaga)
-
zenspider (Ryan Davis)