Windows build broken on master
Summary
| Run Ghc CompileCWithGhc Stage1: rts/STM.c => _quick/stage1/rts/build/c/STM.o
| Run Ghc CompileCWithGhc Stage1: rts/sm/GCUtils.c => _quick/stage1/rts/build/c/sm/GCUtils.o
| Run Cc FindCDependencies Stage1: rts/Printer.c => _quick/stage1/rts/build/c/Printer.o.d
| Run Ghc CompileCWithGhc Stage1: rts/ThreadPaused.c => _quick/stage1/rts/build/c/ThreadPaused.o
| Run Ghc CompileCWithGhc Stage1: rts/ProfHeap.c => _quick/stage1/rts/build/c/ProfHeap.o
| Run Ghc CompileCWithGhc Stage1: rts/sm/Evac.c => _quick/stage1/rts/build/c/sm/Evac.o
| Run Ghc CompileCWithGhc Stage1: rts/Sparks.c => _quick/stage1/rts/build/c/Sparks.o
rts\ProfHeap.c:37:8: error:
error: unknown type name 'locale_t'
37 | static locale_t prof_locale = 0, saved_locale = 0;
| ^~~~~~~~
|
37 | static locale_t prof_locale = 0, saved_locale = 0;
| ^
rts\ProfHeap.c: In function 'freeHeapProfiling':
rts\ProfHeap.c:355:9: error:
warning: implicit declaration of function 'freelocale'; did you mean '_free_locale'? [-Wimplicit-function-declaration]
355 | freelocale(prof_locale);
| ^~~~~~~~~~
| _free_locale
|
355 | freelocale(prof_locale);
| ^
rts\ProfHeap.c:355:9: error:
warning: nested extern declaration of 'freelocale' [-Wnested-externs]
|
355 | freelocale(prof_locale);
| ^
rts\ProfHeap.c: In function 'initHeapProfiling':
rts\ProfHeap.c:371:23: error:
warning: implicit declaration of function 'newlocale'; did you mean 'setlocale'? [-Wimplicit-function-declaration]
371 | prof_locale = newlocale(LC_NUMERIC_MASK, "POSIX", 0);
| ^~~~~~~~~
| setlocale
|
371 | prof_locale = newlocale(LC_NUMERIC_MASK, "POSIX", 0);
| ^
rts\ProfHeap.c:371:23: error:
warning: nested extern declaration of 'newlocale' [-Wnested-externs]
|
371 | prof_locale = newlocale(LC_NUMERIC_MASK, "POSIX", 0);
| ^
rts\ProfHeap.c:371:33: error:
error: 'LC_NUMERIC_MASK' undeclared (first use in this function); did you mean 'LC_NUMERIC'?
371 | prof_locale = newlocale(LC_NUMERIC_MASK, "POSIX", 0);
| ^~~~~~~~~~~~~~~
| LC_NUMERIC
|
371 | prof_locale = newlocale(LC_NUMERIC_MASK, "POSIX", 0);
| ^
rts\ProfHeap.c:371:33: error:
note: each undeclared identifier is reported only once for each function it appears in
|
371 | prof_locale = newlocale(LC_NUMERIC_MASK, "POSIX", 0);
| ^
rts\ProfHeap.c:377:20: error:
warning: implicit declaration of function 'uselocale'; did you mean 'setlocale'? [-Wimplicit-function-declaration]
377 | saved_locale = uselocale(prof_locale);
| ^~~~~~~~~
| setlocale
|
377 | saved_locale = uselocale(prof_locale);
| ^
rts\ProfHeap.c:377:20: error:
warning: nested extern declaration of 'uselocale' [-Wnested-externs]
|
377 | saved_locale = uselocale(prof_locale);
| ^
`gcc.exe' failed in phase `C Compiler'. (Exit code: 1)
0 [main] bash 37551 dofork: child -1 - forked process 15708 died unexpectedly, retry 0, exit code 0xC000013A, errno 11
0 [main] bash 37551 dofork: child -1 - forked process 15708 died unexpectedly, retry 0, exit code 0xC000013A, errno 11
configure: fork: retry: Resource temporarily unavailable
Error when running Shake build system:
at action, called at src\Rules.hs:71:19 in main:Rules
at need, called at src\Rules.hs:93:5 in main:Rules
* Depends on: _quick/stage1/lib/package.conf.d/Win32-2.6.1.0.conf
* Depends on: OracleQ (ContextDataKey (Context {stage = Stage1, package = Package {pkgType = Library, pkgName = "Win32", pkgPath = "libraries/Win32"}, way = v}))
* Depends on: _quick/stage1/libraries/Win32/setup-config
* Depends on: OracleQ (ContextDataKey (Context {stage = Stage1, package = Package {pkgType = Library, pkgName = "array", pkgPath = "libraries/array"}, way = v}))
* Depends on: _quick/stage1/libraries/array/setup-config
* Depends on: OracleQ (ContextDataKey (Context {stage = Stage1, package = Package {pkgType = Library, pkgName = "base", pkgPath = "libraries/base"}, way = v}))
* Depends on: _quick/stage1/libraries/base/setup-config
* Depends on: OracleQ (ContextDataKey (Context {stage = Stage1, package = Package {pkgType = Library, pkgName = "ghc-prim", pkgPath = "libraries/ghc-prim"}, way = v}))
* Depends on: _quick/stage1/libraries/ghc-prim/setup-config
* Depends on: _quick/stage1/rts/build/libHSrts-1.0.a
* Depends on: _quick/stage1/rts/build/c/ProfHeap.o
* Raised the exception:
user error (Development.Shake.cmd, system command failed
Command line: _quick/stage0/bin/ghc.exe -Wall -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db "-package-db _quick/stage1/lib/package.conf.d" "-this-unit-id rts-1.0" -i -i_quick/stage1/rts/build -i_quick/stage1/rts/build/autogen -irts/. -Iincludes -I_quick
/stage1/lib -I_quick/stage1/rts/build -I_quick/stage1/rts/build/build -I_quick/stage1/rts/build/../includes -I_quick/stage1/rts/build/includes -I_quick/stage1/rts/build/includes/dist-derivedconstants/header -Irts/build -Irts/../includes -Irts/includes -Irts/includes/dist-derivedcon
stants/header -I_quick/stage1/lib -optc-I_quick/stage1/lib -optP-include -optP_quick/stage1/rts/build/autogen/cabal_macros.h -ghcversion-file=_quick/stage1/lib/ghcversion.h -outputdir _quick/stage1/rts/build -optc-Iincludes -optc-I_quick/stage1/lib -optc-I_quick/stage1/rts/build -o
ptc-I_quick/stage1/rts/build/build -optc-I_quick/stage1/rts/build/../includes -optc-I_quick/stage1/rts/build/includes -optc-I_quick/stage1/rts/build/includes/dist-derivedconstants/header -optc-Irts/build -optc-Irts/../includes -optc-Irts/includes -optc-Irts/includes/dist-derivedcon
stants/header -Wnoncanonical-monad-instances -optc-Wno-error=inline -c rts/ProfHeap.c -o _quick/stage1/rts/build/c/ProfHeap.o -O0 -H64m -this-unit-id rts -XHaskell98 -ghcversion-file=E:/ghc_head/_quick/stage1/lib/ghcversion.h -O -optc-Wall -optc-Wextra -optc-Wstrict-prototypes -opt
c-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Wpointer-arith -optc-Wmissing-noreturn -optc-Wnested-externs -optc-Wredundant-decls -optc-Wundef -optc-fno-strict-aliasing -optc-fomit-frame-pointer -optc-O2 -optc-g -optc-Irts -optc-I_quick/stage1/rts/build -opt
c-DWINVER=0x06000100 -Irts -I_quick/stage1/rts/build "-DRtsWay=\"rts_v\"" -DFS_NAMESPACE=rts -DCOMPILING_RTS -Wno-deprecated-flags -Wcpp-undef
Exit code: 1
Stderr:
rts\ProfHeap.c:37:8: error:
error: unknown type name 'locale_t'
37 | static locale_t prof_locale = 0, saved_locale = 0;
| ^~~~~~~~
|
37 | static locale_t prof_locale = 0, saved_locale = 0;
| ^
rts\ProfHeap.c: In function 'freeHeapProfiling':
rts\ProfHeap.c:355:9: error:
warning: implicit declaration of function 'freelocale'; did you mean '_free_locale'? [-Wimplicit-function-declaration]
355 | freelocale(prof_locale);
| ^~~~~~~~~~
| _free_locale
|
355 | freelocale(prof_locale);
| ^
rts\ProfHeap.c:355:9: error:
warning: nested extern declaration of 'freelocale' [-Wnested-externs]
|
355 | freelocale(prof_locale);
| ^
rts\ProfHeap.c: In function 'initHeapProfiling':
rts\ProfHeap.c:371:23: error:
warning: implicit declaration of function 'newlocale'; did you mean 'setlocale'? [-Wimplicit-function-declaration]
371 | prof_locale = newlocale(LC_NUMERIC_MASK, "POSIX", 0);
| ^~~~~~~~~
| setlocale
|
371 | prof_locale = newlocale(LC_NUMERIC_MASK, "POSIX", 0);
| ^
rts\ProfHeap.c:371:23: error:
warning: nested extern declaration of 'newlocale' [-Wnested-externs]
|
371 | prof_locale = newlocale(LC_NUMERIC_MASK, "POSIX", 0);
| ^
rts\ProfHeap.c:371:33: error:
error: 'LC_NUMERIC_MASK' undeclared (first use in this function); did you mean 'LC_NUMERIC'?
371 | prof_locale = newlocale(LC_NUMERIC_MASK, "POSIX", 0);
| ^~~~~~~~~~~~~~~
| LC_NUMERIC
|
371 | prof_locale = newlocale(LC_NUMERIC_MASK, "POSIX", 0);
| ^
rts\ProfHeap.c:371:33: error:
note: each undeclared identifier is reported only once for each function it appears in
|
371 | prof_locale = newlocale(LC_NUMERIC_MASK, "POSIX", 0);
| ^
rts\ProfHeap.c:377:20: error:
warning: implicit declaration of function 'uselocale'; did you mean 'setlocale'? [-Wimplicit-function-declaration]
377 | saved_locale = uselocale(prof_locale);
| ^~~~~~~~~
| setlocale
|
377 | saved_locale = uselocale(prof_locale);
| ^
rts\ProfHeap.c:377:20: error:
warning: nested extern declaration of 'uselocale' [-Wnested-externs]
|
377 | saved_locale = uselocale(prof_locale);
| ^
`gcc.exe' failed in phase `C Compiler'. (Exit code: 1)
)
Steps to reproduce
./boot ./configure --enable-tarballs-autodownload ./hadrian/build --flavour=quick
I will also try validate/a new clean but I suspect the error will remain.
Expected behavior
Work
Environment
- GHC version used (boot compiler): 8.6.5
Optional:
- Operating System: Windows