Admin message

Due to a large amount of spam we do not allow new users to create repositories, they are "external" users. If you are a new user and want to create a repository, for example for forking GHC, open a new issue on ghc/ghc using the "get-verified" issue template

Use of utimbuf on windows triggers -Wincompatible-pointer-types
## Summary From the raw logs of https://gitlab.haskell.org/ghc/ghc/-/jobs/2267412 ``` | Run Ghc CompileHs Stage1: libraries/ghc-internal/src/GHC/Internal/System/Posix/Internals.hs => _build/stage1/libraries/ghc-internal/build/GHC/Internal/System/Posix/Internals.o | Run Ghc CompileHs Stage1: libraries/ghc-internal/src/GHC/Internal/Conc/POSIX.hs => _build/stage1/libraries/ghc-internal/build/GHC/Internal/Conc/POSIX.o C:\GitLabRunner\builds\0\2267412\tmp\ghc11312_tmp_0\ghc_tmp_4.c:26:139: error: warning: incompatible pointer types passing 'struct utimbuf *' to parameter of type 'struct _utimbuf *' [-Wincompatible-pointer-types] 26 | HsInt32 ghczuwrapperZC9ZCghczminternalZCGHCziInternalziSystemziPosixziInternalsZCzuutime(char* a1, struct utimbuf* a2) {return _utime(a1, a2);} | ^~ | 26 | HsInt32 ghczuwrapperZC9ZCghczminternalZCGHCziInternalziSystemziPosixziInternalsZCzuutime(char* a1, struct utimbuf* a2) {return _utime(a1, a2);} | ^ C:\GitLabRunner\builds\0\2267412\inplace\mingw\include\sys\utime.h:109:72: error: note: passing argument to parameter '_Utimbuf' here 109 | __CRT_INLINE int __cdecl _utime(const char *_Filename,struct _utimbuf *_Utimbuf) { | ^ | 109 | __CRT_INLINE int __cdecl _utime(const char *_Filename,struct _utimbuf *_Utimbuf) { | ^ 1 warning generated. | Run Ghc CompileHs Stage1: libraries/ghc-internal/src/GHC/Internal/IO/Encoding/CodePage/API.hs => _build/stage1/libraries/ghc-internal/build/GHC/Internal/IO/Encoding/CodePage/API.o | Run Ghc CompileHs Stage1: libraries/ghc-internal/src/GHC/Internal/IO/Encoding/CodePage.hs => _build/stage1/libraries/ghc-internal/build/GHC/Internal/IO/Encoding/CodePage.o ``` I ran into this while building x86 linux->windows cross compiler on nixpkgs via `pkgsCross.ucrt64.haskell.packages.ghc912.ghc`. I guess there we set the gcc flag `-Werror=incompatible-pointer-types` because there it's treated as fatal. Looks like it's called `_utimbuf` in recent CRT? https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/utime-utime32-utime64-wutime-wutime32-wutime64?view=msvc-170 See also https://gitlab.haskell.org/ghc/ghc/-/issues/22263 ## Steps to reproduce The warning can be seen in the raw logs of windows CI jobs. ## Expected behavior No warning/error ## Environment * GHC version used: 9.12 x86 linux->windows
issue