GHC issueshttps://gitlab.haskell.org/ghc/ghc/-/issues2019-11-08T02:25:39Zhttps://gitlab.haskell.org/ghc/ghc/-/issues/17249Failure to compile2019-11-08T02:25:39ZNeil MitchellFailure to compile## Summary
On Windows I get a compile error when trying to build GHC as at 795986aaf33e2ffc233836b86a92a77366c91db2. I am using the Hadrian/Stack approach.
## Steps to reproduce
```
C:\Neil\ghc\2019-09-26\ghc>hadrian\build.stack.bat -...## Summary
On Windows I get a compile error when trying to build GHC as at 795986aaf33e2ffc233836b86a92a77366c91db2. I am using the Hadrian/Stack approach.
## Steps to reproduce
```
C:\Neil\ghc\2019-09-26\ghc>hadrian\build.stack.bat --configure tool-args -q --build-root=.hie-bios --flavour=ghc-in-ghci
realgcc.exe: error: .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils_hsc_make.o: No such file or directory
linking .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils_hsc_make.o failed (exit code 1)
command was: C:/Users/ndmit_000/AppData/Local/Programs/stack/x86_64-windows/ghc-8.6.5/mingw/bin/gcc.exe .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils_hsc_make.o .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils_hsc_utils.o -o .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils_hsc_make.exe
hadrian.EXE: Error when running Shake build system:
at want, called at src\Main.hs:89:30 in main:Main
* Depends on: tool-args
at need, called at src\Rules.hs:54:5 in main:Rules
* Depends on: .hie-bios/stage0/compiler/build/CmmLex.hs
at apply1, called at src\Development\Shake\Internal\Rules\Oracle.hs:159:32 in shake-0.18.3-3BLsgGZEbdn8lXb9PZvVjC:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (Generator (Stage0,Package {pkgType = Library, pkgName = "ghc", pkgPath = "compiler"},".hie-bios/stage0/compiler/build/CmmLex.hs"))
at apply1, called at src\Development\Shake\Internal\Rules\Oracle.hs:159:32 in shake-0.18.3-3BLsgGZEbdn8lXb9PZvVjC:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (ContextDataKey (Context {stage = Stage0, package = Package {pkgType = Library, pkgName = "ghc", pkgPath = "compiler"}, way = v}))
at need, called at src\Hadrian\Oracles\Cabal\Rules.hs:53:9 in main:Hadrian.Oracles.Cabal.Rules
* Depends on: .hie-bios/stage0/compiler/setup-config
at need, called at src\Hadrian\Haskell\Cabal\Parse.hs:121:5 in main:Hadrian.Haskell.Cabal.Parse
* Depends on: .hie-bios/stage0/lib/package.conf.d/ghc-heap-8.9.0.20190925.conf
at need, called at src\Rules\Register.hs:113:5 in main:Rules.Register
* Depends on: .hie-bios/stage0/libraries/ghc-heap/build/HSghc-heap-8.9.0.20190925.o
at need, called at src\Rules\Library.hs:102:5 in main:Rules.Library
* Depends on: .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils.o
at &%>, called at src\Rules\Compile.hs:47:9 in main:Rules.Compile
* Depends on: .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils.o .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils.hi
at apply1, called at src\Development\Shake\Internal\Rules\Oracle.hs:159:32 in shake-0.18.3-3BLsgGZEbdn8lXb9PZvVjC:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (KeyValues (".hie-bios/stage0/libraries/ghc-heap/.dependencies",".hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils.o"))
at need, called at src\Hadrian\Oracles\TextFile.hs:96:9 in main:Hadrian.Oracles.TextFile
* Depends on: .hie-bios/stage0/libraries/ghc-heap/.dependencies
at readFile', called at src\Rules\Dependencies.hs:34:19 in main:Rules.Dependencies
at need, called at src\Development\Shake\Internal\Derived.hs:118:15 in shake-0.18.3-3BLsgGZEbdn8lXb9PZvVjC:Development.Shake.Internal.Derived
* Depends on: .hie-bios/stage0/libraries/ghc-heap/.dependencies.mk
at need, called at src\Rules\Dependencies.hs:26:9 in main:Rules.Dependencies
* Depends on: .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils.hs
* Raised the exception:
user error (Development.Shake.cmd, system command failed
Command line: .hie-bios/stage0/bin/hsc2hs.exe --cc=C:/Users/ndmit_000/AppData/Local/Programs/stack/x86_64-windows/ghc-8.6.5/mingw/bin/gcc.exe --ld=C:/Users/ndmit_000/AppData/Local/Programs/stack/x86_64-windows/ghc-8.6.5/mingw/bin/gcc.exe --cflag=-I.hie-bios/generated --cflag=-I.hie-bios/stage0/libraries/ghc-heap/build --cflag=-IC:/Users/ndmit_000/AppData/Local/Programs/stack/x86_64-windows/ghc-8.6.5/lib/base-4.12.0.0/include --cflag=-IC:/Users/ndmit_000/AppData/Local/Programs/stack/x86_64-windows/ghc-8.6.5/lib/integer-gmp-1.0.2.0/include --cflag=-IC:/Users/ndmit_000/AppData/Local/Programs/stack/x86_64-windows/ghc-8.6.5/lib/include --cflag=-Wall --cflag=-Wno-error=inline --cflag=-include --cflag=.hie-bios/stage0/libraries/ghc-heap/build/autogen/cabal_macros.h --cflag=-Dx86_64_HOST_ARCH=1 --cflag=-Dmingw32_HOST_OS=1 --cflag=-D__GLASGOW_HASKELL__=806 --template=C:/Neil/ghc/2019-09-26/ghc/.hie-bios/stage0/lib/template-hsc.h libraries/ghc-heap/GHC/Exts/Heap/Utils.hsc -o .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils.hs
Exit code: 1
Stderr:
realgcc.exe: error: .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils_hsc_make.o: No such file or directory
linking .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils_hsc_make.o failed (exit code 1)
command was: C:/Users/ndmit_000/AppData/Local/Programs/stack/x86_64-windows/ghc-8.6.5/mingw/bin/gcc.exe .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils_hsc_make.o .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils_hsc_utils.o -o .hie-bios/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils_hsc_make.exe
)
```
## Expected behavior
Print out some command line flags required to build GHC.
## Environment
Windows 10. Stack 2.1.3.
CC @snowleopard8.10.1https://gitlab.haskell.org/ghc/ghc/-/issues/17204Hadrian Stack build fails on WIndows2019-12-01T23:37:39ZSophie TaylorHadrian Stack build fails on WIndows## Summary
```powershell
PS C:\Users\spacekitteh\code\ghc> hadrian\build.stack.bat -c -j
| Checking for Windows tarballs...
| Run Configure ".": hadrian/cfg/system.config.in (and 3 more) => hadrian/cfg/system.config (and 3 more)
configu...## Summary
```powershell
PS C:\Users\spacekitteh\code\ghc> hadrian\build.stack.bat -c -j
| Checking for Windows tarballs...
| Run Configure ".": hadrian/cfg/system.config.in (and 3 more) => hadrian/cfg/system.config (and 3 more)
configure: error: GHC is required.
�[31mError when running Shake build system:
at action, called at src\Rules.hs:70:19 in main:Rules
at apply1, called at src\Development\Shake\Internal\Rules\Oracle.hs:159:32 in shake-0.18.3-3BLsgGZEbdn8lXb9PZvVjC:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (KeyValue ("hadrian/cfg/system.config","cross-compiling"))
at need, called at src\Hadrian\Oracles\TextFile.hs:90:9 in main:Hadrian.Oracles.TextFile
* Depends on: hadrian/cfg/system.config
at &%>, called at src\Rules\Configure.hs:21:5 in main:Rules.Configure
* Depends on: hadrian/cfg/system.config mk/config.h compiler/ghc.cabal rts/rts.cabal
* Raised the exception:
user error (Development.Shake.cmd, system command failed
Command line: sh configure
Current directory: C:\Users\spacekitteh\code\ghc
Exit code: 1
Stderr:
configure: error: GHC is required.
)
�[0m
PS C:\Users\spacekitteh\code\ghc>
```
## Steps to reproduce
`hadrian\build.stack.bat -c -j`
## Expected behavior
Build GHC
## Environment
* GHC version used: HEAD
Optional:
* Operating System: Win10
* System Architecture: x648.10.1https://gitlab.haskell.org/ghc/ghc/-/issues/15916GHC doesn't build on powerpc64 architecture on systems other than GNU / Linux2019-07-07T18:02:28ZpkubajGHC doesn't build on powerpc64 architecture on systems other than GNU / LinuxI'd like to bootstrap GHC for FreeBSD/powerpc64, but GHC seems to be supported only on Linux for powerpc64 architecture.
Relevant code:
https://github.com/ghc/ghc/blob/1c2c2d3dfd4c36884b22163872feb87122b4528d/rts/StgCRun.c\#L875
https:/...I'd like to bootstrap GHC for FreeBSD/powerpc64, but GHC seems to be supported only on Linux for powerpc64 architecture.
Relevant code:
https://github.com/ghc/ghc/blob/1c2c2d3dfd4c36884b22163872feb87122b4528d/rts/StgCRun.c\#L875
https://github.com/ghc/ghc/blob/1c2c2d3dfd4c36884b22163872feb87122b4528d/rts/StgCRunAsm.S\#L112
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 8.6.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"GHC doesn't build on powerpc64 architecture on systems other than GNU / Linux","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"Research needed","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"8.6.2","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"I'd like to bootstrap GHC for FreeBSD/powerpc64, but GHC seems to be supported only on Linux for powerpc64 architecture.\r\n\r\nRelevant code:\r\nhttps://github.com/ghc/ghc/blob/1c2c2d3dfd4c36884b22163872feb87122b4528d/rts/StgCRun.c#L875\r\nhttps://github.com/ghc/ghc/blob/1c2c2d3dfd4c36884b22163872feb87122b4528d/rts/StgCRunAsm.S#L112","type_of_failure":"OtherFailure","blocking":[]} -->8.10.1Peter Trommlerptrommler@acm.orgPeter Trommlerptrommler@acm.org