GHC issueshttps://gitlab.haskell.org/ghc/ghc/-/issues2019-03-22T22:02:13Zhttps://gitlab.haskell.org/ghc/ghc/-/issues/16464ghc-8.6.4-release tag fails to build on 64bit windows using default options.2019-03-22T22:02:13ZAndreas Klebingerghc-8.6.4-release tag fails to build on 64bit windows using default options.There seems to be some issue with the haddock submodule/executable.
I did the usual ./boot && ./configure && make
```
"/c/Users/Andi/AppData/Roaming/cabal/bin//happy" -agc --strict compiler/cmm/CmmParse.y -o compiler/stage2/build/C...There seems to be some issue with the haddock submodule/executable.
I did the usual ./boot && ./configure && make
```
"/c/Users/Andi/AppData/Roaming/cabal/bin//happy" -agc --strict compiler/cmm/CmmParse.y -o compiler/stage2/build/CmmParse.hs
"/c/Users/Andi/AppData/Roaming/cabal/bin//alex" -g --latin1 compiler/parser/Lexer.x -o compiler/stage2/build/Lexer.hs
sed -e 's|\\|/|g' -e 's| /$| \\|' -e "1s|\.o|\.o|" -e "1s|^|compiler/ghci/|" -e "1s|compiler/|compiler/stage2/build/|" -e "1s|stage2/build/stage2/build|stage2/build|g" -e "s|^E:/ghc_86_src/||gi" compiler/stage2/build/.depend-v-p.c_asm.bit >> compiler/stage2/build/.depend-v-p.c_asm.tmp && sed -e 's|\\|/|g' -e 's| /$| \\|' -e "1s|\.o|\.p_o|" -e "1s|^|compiler/ghci/|" -e "1s|compiler/|compiler/stage2/build/|" -e "1s|stage2/build/stage2/build|stage2/build|g" -e "s|^E:/ghc_86_src/||gi" compiler/stage2/build/.depend-v-p.c_asm.bit >> compiler/stage2/build/.depend-v-p.c_asm.tmp && true
"/c/Users/Andi/AppData/Roaming/cabal/bin//happy" -agc --strict compiler/parser/Parser.y -o compiler/stage2/build/Parser.hs
E:/ghc_86_src/inplace/mingw/bin/gcc.exe -E -DMAKING_GHC_BUILD_SYSTEM_DEPENDENCIES -fno-stack-protector -Wall -Icompiler/stage2/build/./autogen -Icompiler/. -Icompiler/parser -Icompiler/utils -Icompiler/../rts/dist/build -Icompiler/stage2 -Icompiler/stage2/build/. -Icompiler/stage2/build/parser -Icompiler/stage2/build/utils -Icompiler/stage2/build/../rts/dist/build -Icompiler/stage2/build/stage2 -DGHCI -I'E:\ghc_86_src\libraries\process\include' -I'E:\ghc_86_src\libraries\process/dist-install/build/include' -I'E:\ghc_86_src\libraries\process\dist-install\build\include' -I'E:\ghc_86_src\libraries\process\dist-install\build/dist-install/build/include' -I'E:\ghc_86_src\libraries\directory\.' -I'E:\ghc_86_src\libraries\directory\dist-install\build\.' -I'E:\ghc_86_src\libraries\time\lib/include' -I'E:\ghc_86_src\libraries\time\lib/dist-install/build/include' -I'E:\ghc_86_src\libraries\time\dist-install\build\lib/include' -I'E:\ghc_86_src\libraries\time\dist-install\build\lib/dist-install/build/include' -I'E:\ghc_86_src\libraries\containers\include' -I'E:\ghc_86_src\libraries\containers/dist-install/build/include' -I'E:\ghc_86_src\libraries\containers\dist-install\build\include' -I'E:\ghc_86_src\libraries\containers\dist-install\build/dist-install/build/include' -I'E:\ghc_86_src\libraries\Win32\include' -I'E:\ghc_86_src\libraries\Win32/dist-install/build/include' -I'E:\ghc_86_src\libraries\Win32\dist-install\build\include' -I'E:\ghc_86_src\libraries\Win32\dist-install\build/dist-install/build/include' -I'E:\ghc_86_src\libraries\bytestring\include' -I'E:\ghc_86_src\libraries\bytestring/dist-install/build/include' -I'E:\ghc_86_src\libraries\bytestring\dist-install\build\include' -I'E:\ghc_86_src\libraries\bytestring\dist-install\build/dist-install/build/include' -I'E:\ghc_86_src\libraries\base\include' -I'E:\ghc_86_src\libraries\base/dist-install/build/include' -I'E:\ghc_86_src\libraries\base\dist-install\build\include' -I'E:\ghc_86_src\libraries\base\dist-install\build/dist-install/build/include' -I'E:\ghc_86_src\libraries\integer-gmp\include' -I'E:\ghc_86_src\libraries\integer-gmp/dist-install/build/include' -I'E:\ghc_86_src\libraries\integer-gmp\dist-install\build\include' -I'E:\ghc_86_src\libraries\integer-gmp\dist-install\build/dist-install/build/include' -I'E:/ghc_86_src/rts/dist/build' -I'E:/ghc_86_src/includes' -I'E:/ghc_86_src/includes/dist-derivedconstants/header' -Wno-error=inline -MM -x c compiler/cbits/genSym.c -MF compiler/stage2/build/.depend-v-p.c_asm.bit
sed -e 's|\\|/|g' -e 's| /$| \\|' -e "1s|\.o|\.o|" -e "1s|^|compiler/cbits/|" -e "1s|compiler/|compiler/stage2/build/|" -e "1s|stage2/build/stage2/build|stage2/build|g" -e "s|^E:/ghc_86_src/||gi" compiler/stage2/build/.depend-v-p.c_asm.bit >> compiler/stage2/build/.depend-v-p.c_asm.tmp && sed -e 's|\\|/|g' -e 's| /$| \\|' -e "1s|\.o|\.p_o|" -e "1s|^|compiler/cbits/|" -e "1s|compiler/|compiler/stage2/build/|" -e "1s|stage2/build/stage2/build|stage2/build|g" -e "s|^E:/ghc_86_src/||gi" compiler/stage2/build/.depend-v-p.c_asm.bit >> compiler/stage2/build/.depend-v-p.c_asm.tmp && true
"rm" -f compiler/stage2/build/.depend-v-p.c_asm.bit
echo "compiler_stage2_depfile_c_asm_EXISTS = YES" >> compiler/stage2/build/.depend-v-p.c_asm.tmp
mv compiler/stage2/build/.depend-v-p.c_asm.tmp compiler/stage2/build/.depend-v-p.c_asm
"inplace/bin/hsc2hs.exe" '--cc=E:/ghc_86_src/inplace/mingw/bin/gcc.exe' '--ld=E:/ghc_86_src/inplace/mingw/bin/gcc.exe' --cflag=-Wall --cflag=-fno-stack-protector --cflag=-Dx86_64_HOST_ARCH --cflag=-Dmingw32_HOST_OS --cflag=-D__GLASGOW_HASKELL__=806 '--cflag=-fno-stack-protector' '--cflag=-Wall' '--cflag=-Icompiler/stage2/build/./autogen' '--cflag=-Icompiler/.' '--cflag=-Icompiler/parser' '--cflag=-Icompiler/utils' '--cflag=-Icompiler/../rts/dist/build' '--cflag=-Icompiler/stage2' '--cflag=-Icompiler/stage2/build/.' '--cflag=-Icompiler/stage2/build/parser' '--cflag=-Icompiler/stage2/build/utils' '--cflag=-Icompiler/stage2/build/../rts/dist/build' '--cflag=-Icompiler/stage2/build/stage2' '--cflag=-DGHCI' '--cflag=-IE:\ghc_86_src\libraries\process\include' '--cflag=-IE:\ghc_86_src\libraries\process/dist-install/build/include' '--cflag=-IE:\ghc_86_src\libraries\process\dist-install\build\include' '--cflag=-IE:\ghc_86_src\libraries\process\dist-install\build/dist-install/build/include' '--cflag=-IE:\ghc_86_src\libraries\directory\.' '--cflag=-IE:\ghc_86_src\libraries\directory\dist-install\build\.' '--cflag=-IE:\ghc_86_src\libraries\time\lib/include' '--cflag=-IE:\ghc_86_src\libraries\time\lib/dist-install/build/include' '--cflag=-IE:\ghc_86_src\libraries\time\dist-install\build\lib/include' '--cflag=-IE:\ghc_86_src\libraries\time\dist-install\build\lib/dist-install/build/include' '--cflag=-IE:\ghc_86_src\libraries\containers\include' '--cflag=-IE:\ghc_86_src\libraries\containers/dist-install/build/include' '--cflag=-IE:\ghc_86_src\libraries\containers\dist-install\build\include' '--cflag=-IE:\ghc_86_src\libraries\containers\dist-install\build/dist-install/build/include' '--cflag=-IE:\ghc_86_src\libraries\Win32\include' '--cflag=-IE:\ghc_86_src\libraries\Win32/dist-install/build/include' '--cflag=-IE:\ghc_86_src\libraries\Win32\dist-install\build\include' '--cflag=-IE:\ghc_86_src\libraries\Win32\dist-install\build/dist-install/build/include' '--cflag=-IE:\ghc_86_src\libraries\bytestring\include' '--cflag=-IE:\ghc_86_src\libraries\bytestring/dist-install/build/include' '--cflag=-IE:\ghc_86_src\libraries\bytestring\dist-install\build\include' '--cflag=-IE:\ghc_86_src\libraries\bytestring\dist-install\build/dist-install/build/include' '--cflag=-IE:\ghc_86_src\libraries\base\include' '--cflag=-IE:\ghc_86_src\libraries\base/dist-install/build/include' '--cflag=-IE:\ghc_86_src\libraries\base\dist-install\build\include' '--cflag=-IE:\ghc_86_src\libraries\base\dist-install\build/dist-install/build/include' '--cflag=-IE:\ghc_86_src\libraries\integer-gmp\include' '--cflag=-IE:\ghc_86_src\libraries\integer-gmp/dist-install/build/include' '--cflag=-IE:\ghc_86_src\libraries\integer-gmp\dist-install\build\include' '--cflag=-IE:\ghc_86_src\libraries\integer-gmp\dist-install\build/dist-install/build/include' '--cflag=-IE:/ghc_86_src/rts/dist/build' '--cflag=-IE:/ghc_86_src/includes' '--cflag=-IE:/ghc_86_src/includes/dist-derivedconstants/header' '--cflag=-Wno-error=inline' --cflag=-Icompiler/stage2/build/./autogen --cflag=-include --cflag=compiler/stage2/build/./autogen/cabal_macros.h compiler/utils/Fingerprint.hsc -o compiler/stage2/build/Fingerprint.hs
E:/ghc_86_src/inplace/mingw/bin/gcc.exe -E -undef -traditional -P -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Icompiler/stage2 -x c compiler/prelude/primops.txt.pp | grep -v '^#pragma GCC' > compiler/stage2/build/primops.txt
"rm" -f utils/haddock/dist/build/.depend.c_asm.tmp
utils/haddock/ghc.mk:20: utils/haddock/dist/build/.depend.haskell: No such file or directory
make[1]: *** No rule to make target 'utils/haddock/dist/build/Main.hs', needed by 'utils/haddock/dist/build/.depend.haskell'. Stop.
make[1]: *** Waiting for unfinished jobs....
"rm" -f utils/haddock/dist/build/.depend.c_asm.bit
echo "utils/haddock_dist_depfile_c_asm_EXISTS = YES" >> utils/haddock/dist/build/.depend.c_asm.tmp
mv utils/haddock/dist/build/.depend.c_asm.tmp utils/haddock/dist/build/.depend.c_asm
unused terminals: 2
make: *** [Makefile:127: all] Error 2
```
I've tried to wipe the haddock folder completely and restoring it via submodule update to no avail.
Disabling haddock generation at least allows the build to proceed as a workaround.
I don't think this is all too important but better to document it than not.https://gitlab.haskell.org/ghc/ghc/-/issues/16576Are the GHC 8.6.4 binaries for Windows missing haddock.exe?2019-04-16T19:12:28ZMike PilgremAre the GHC 8.6.4 binaries for Windows missing haddock.exe?# Summary
GHC 8.6.3's (and earlier) binaries on Windows include `haddock.exe` in the `\bin` folder as well as a small file named after the GHC version (eg `haddock-8.6.3.exe`). GHC 8.6.4's binaries include `haddock-8.6.4.exe` (a small f...# Summary
GHC 8.6.3's (and earlier) binaries on Windows include `haddock.exe` in the `\bin` folder as well as a small file named after the GHC version (eg `haddock-8.6.3.exe`). GHC 8.6.4's binaries include `haddock-8.6.4.exe` (a small file) but not `haddock.exe`.
# Steps to reproduce
See the contents of the archive file at: https://www.haskell.org/ghc/download_ghc_8_6_4.html#windows64
See also https://github.com/commercialhaskell/stack/issues/4727
# Expected behavior
GHC 8.6.4's binaries on Windows to include `haddock.exe` in the `\bin` folder.
# Environment
* GHC version used: 8.6.4
Optional:
* Operating System: Windows 10
* System Architecture: 64 bithttps://gitlab.haskell.org/ghc/ghc/-/issues/16498Broken bindist install with hadrian2019-04-26T09:23:10ZSylvain HenryBroken bindist install with hadrianBuilding a bindist with Hadrian works:
```bash
> ./hadrian/build.stack.sh -c -j binary-dist
> ./_build/bindist/ghc-8.9.20190320-x86_64-unknown-linux/bin/ghc
ghc: no input files
Usage: For basic information, try the `--help' option.
```
...Building a bindist with Hadrian works:
```bash
> ./hadrian/build.stack.sh -c -j binary-dist
> ./_build/bindist/ghc-8.9.20190320-x86_64-unknown-linux/bin/ghc
ghc: no input files
Usage: For basic information, try the `--help' option.
```
But installing it with "make install" doesn't:
```bash
> mkdir /tmp/ghc-install
> cd _build/bindist/ghc-8.9.20190320-x86_64-unknown-linux
> ./configure --prefix=/tmp/ghc-install
> make install
[...]
/tmp/ghc-install/lib/ghc-8.9.20190320/bin/ghc-pkg: error while loading shared libraries: libHSterminfo-0.4.1.3-ghc8.9.20190320.so: cannot open shared object file: No such file or directory
make: *** [Makefile:122: update_package_db] Error 127
> /tmp/ghc-install/bin/ghc
/tmp/ghc-install/lib/ghc-8.9.20190320/bin/ghc: error while loading shared libraries: libHShaskeline-0.7.5.0-ghc8.9.20190320.so: cannot open shared object file: No such file or directory
```
It seems to be a problem with RPATH and/or file copy as we can see with the following session:
```
> readelf -d /tmp/ghc-install/lib/ghc-8.9.20190320/bin/ghc | grep RUNPATH
0x000000000000001d (RUNPATH) Bibliothèque runpath:[$ORIGIN/../lib/x86_64-linux-ghc-8.9.20190320:_build/stage1/lib/../lib/x86_64-linux-ghc-8.9.20190320]
> mkdir /tmp/ghc-install/lib/ghc-8.9.20190320/lib
> mv /tmp/ghc-install/lib/* /tmp/ghc-install/lib/ghc-8.9.20190320/lib
> /tmp/ghc-install/lib/ghc-8.9.20190320/bin/ghc
ghc: no input files
Usage: For basic information, try the `--help' option.
```8.10.1https://gitlab.haskell.org/ghc/ghc/-/issues/16445GHC 8.6.4 Haddocks don't have source links2019-04-26T09:23:13ZAlec TheriaultGHC 8.6.4 Haddocks don't have source linksUsually, binary distributions include Haddock documentation pages for all the bundled libraries with source links (the sources have historically been generated with `HsColour`, although with Hadrian binary dists we've moved to using Hadd...Usually, binary distributions include Haddock documentation pages for all the bundled libraries with source links (the sources have historically been generated with `HsColour`, although with Hadrian binary dists we've moved to using Haddock's own Hyperlinker backend). It looks like 8.6.4 bindists are missing the source links and files altogether:
```sh
$ l ~/.ghcup/ghc/8.6.4/share/doc/ghc-8.6.4/html/libraries/base-4.12.0.0/src
ls: /Users/atheriault/.ghcup/ghc/8.6.4/share/doc/ghc-8.6.4/html/libraries/base-4.12.0.0/src: No such file or directory
$ l ~/.ghcup/ghc/8.6.3/share/doc/ghc-8.6.3/html/libraries/base-4.12.0.0/src
total 21400
drwxr-xr-x 240 atheriault staff 8.0K Dec 14 08:30 .
drwxr-xr-x 231 atheriault staff 7.7K Dec 14 08:30 ..
-rw-r--r-- 1 atheriault staff 26K Dec 14 08:30 Control-Applicative.html
-rw-r--r-- 1 atheriault staff 68K Dec 14 08:30 Control-Arrow.html
-rw-r--r-- 1 atheriault staff 11K Dec 14 08:30 Control-Category.html
-rw-r--r-- 1 atheriault staff 19K Dec 14 08:30 Control-Concurrent-Chan.html
...
```8.6.5https://gitlab.haskell.org/ghc/ghc/-/issues/16508Hadrian: invalid ghci wrapper script2019-05-01T13:08:54ZSylvain HenryHadrian: invalid ghci wrapper scriptWhen we install an Hadrian generated bindist with "make install", we obtain an invalid ghci wrapper script.
Hadrian conflates two wrapper scripts into one: wrappers/ghci and wrappers/ghci-script. Only the last one should be used. Patch ...When we install an Hadrian generated bindist with "make install", we obtain an invalid ghci wrapper script.
Hadrian conflates two wrapper scripts into one: wrappers/ghci and wrappers/ghci-script. Only the last one should be used. Patch coming.8.8.1Sylvain HenrySylvain Henryhttps://gitlab.haskell.org/ghc/ghc/-/issues/16602GHC 8.6.5 still bundling Cabal-2.4.0.12019-05-24T12:55:14ZHerbert Valerio Riedelhvr@gnu.orgGHC 8.6.5 still bundling Cabal-2.4.0.1After the GHC 8.6.5-rc1 release candidate was filed, [Mikhail pointed out](https://twitter.com/refold/status/1115503408008577025) that the RC had still not been updated to the Cabal-2.4.1.0 bugfix point release that had been released alr...After the GHC 8.6.5-rc1 release candidate was filed, [Mikhail pointed out](https://twitter.com/refold/status/1115503408008577025) that the RC had still not been updated to the Cabal-2.4.1.0 bugfix point release that had been released already ~5 months ago (on 2018-11-25) which had already failed to be included in the releases GHC 8.6.3, GHC 8.6.4 and now GHC 8.6.5 which all occurred *after* 2018-11-25. How are we supposed to coordinate lib:Cabal <-> GHC releases?
PS: As a fun fact, Stack(age) pays an almost guaranteed compile-time penalty here as [all recent Stackage snapshots seem to include lib:Cabal-2.4.1.0 in their snapshot freeze file](https://www.stackage.org/package/Cabal/snapshots), and compiling lib:Cabal is notoriously costly.8.8.1https://gitlab.haskell.org/ghc/ghc/-/issues/16407Non-versioned haddock.exe is not part of the Windows bindist tarball2019-07-07T18:00:13ZMoritz KieferNon-versioned haddock.exe is not part of the Windows bindist tarballThe GHC 8.6.3 Windows bindist tarball contained both `ghc-8.6.3/bin/haddock-8.6.3.exe` as well as `ghc-8.6.4/bin/haddock.exe`. However, the 8.6.4 tarball only contains the executable with a version suffix `ghc-8.6.4/bin/haddock-8.6.4.exe...The GHC 8.6.3 Windows bindist tarball contained both `ghc-8.6.3/bin/haddock-8.6.3.exe` as well as `ghc-8.6.4/bin/haddock.exe`. However, the 8.6.4 tarball only contains the executable with a version suffix `ghc-8.6.4/bin/haddock-8.6.4.exe`. This broke some users, e.g., the Shake CI https://ci.appveyor.com/project/ndmitchell/shake/builds/22909548\#L971 but also `rules_haskell` which assume the existence of that executable.
Assuming this change was not intentional, it would be great if we could get a bindist that contains the unversioned haddock.exe.
Not sure if this is related to #16398.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 8.6.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | high |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Non-versioned haddock.exe is not part of the Windows bindist tarball","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"8.6.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"The GHC 8.6.3 Windows bindist tarball contained both `ghc-8.6.3/bin/haddock-8.6.3.exe` as well as `ghc-8.6.4/bin/haddock.exe`. However, the 8.6.4 tarball only contains the executable with a version suffix `ghc-8.6.4/bin/haddock-8.6.4.exe`. This broke some users, e.g., the Shake CI https://ci.appveyor.com/project/ndmitchell/shake/builds/22909548#L971 but also `rules_haskell` which assume the existence of that executable.\r\n\r\nAssuming this change was not intentional, it would be great if we could get a bindist that contains the unversioned haddock.exe.\r\n\r\nNot sure if this is related to #16398.","type_of_failure":"OtherFailure","blocking":[]} -->8.6.5https://gitlab.haskell.org/ghc/ghc/-/issues/16398Missing documentation in Windows bindist tarball2019-09-12T22:55:30ZBen GamariMissing documentation in Windows bindist tarballTakenobu noticed the following omissions from the 8.6.4 bindist tarball:
> Perhaps you may know, but the following html documents are not included in
> the windows tarball \[1\]:
>
> - doc/html/index.html
> - doc/html/users_guide/index....Takenobu noticed the following omissions from the 8.6.4 bindist tarball:
> Perhaps you may know, but the following html documents are not included in
> the windows tarball \[1\]:
>
> - doc/html/index.html
> - doc/html/users_guide/index.html
> - doc/html/libraries/index.html
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 8.6.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | highest |
| Resolution | Unresolved |
| Component | Documentation |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Missing documentation in Windows bindist tarball","status":"New","operating_system":"","component":"Documentation","related":[],"milestone":"8.8.1","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"8.6.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"Takenobu noticed the following omissions from the 8.6.4 bindist tarball:\r\n\r\n> Perhaps you may know, but the following html documents are not included in\r\n> the windows tarball [1]:\r\n>\r\n> * doc/html/index.html\r\n> * doc/html/users_guide/index.html\r\n> * doc/html/libraries/index.html\r\n\r\n","type_of_failure":"OtherFailure","blocking":[]} -->8.8.1Ben GamariBen Gamarihttps://gitlab.haskell.org/ghc/ghc/-/issues/16107Update GCC compiler & friends2019-10-22T06:07:09ZPhilippeUpdate GCC compiler & friendsgcc used by ghc is now about 1.5 years old. It's going to take some time for a new GHC release as well. Would be good to update gcc too. Probably it's backwards compatible with old gcc so would be easy to patch.
https://github.com/ghc/g...gcc used by ghc is now about 1.5 years old. It's going to take some time for a new GHC release as well. Would be good to update gcc too. Probably it's backwards compatible with old gcc so would be easy to patch.
https://github.com/ghc/ghc/blob/f11f2521aff16edca150e6eed5102a3da7e4f59a/mk/get-win32-tarballs.sh\#L104-L114
source code also points to other tools of which some have newer versions.
Packages can be browsed here http://repo.msys2.org/mingw/x86_64/
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | -------------- |
| Version | 8.6.3 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Update GCC compiler & friends","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"8.6.3","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"FeatureRequest","description":"gcc used by ghc is now about 1.5 years old. It's going to take some time for a new GHC release as well. Would be good to update gcc too. Probably it's backwards compatible with old gcc so would be easy to patch.\r\n\r\nhttps://github.com/ghc/ghc/blob/f11f2521aff16edca150e6eed5102a3da7e4f59a/mk/get-win32-tarballs.sh#L104-L114\r\n\r\nsource code also points to other tools of which some have newer versions.\r\n\r\nPackages can be browsed here http://repo.msys2.org/mingw/x86_64/","type_of_failure":"OtherFailure","blocking":[]} -->8.10.1https://gitlab.haskell.org/ghc/ghc/-/issues/17265Source distributions contain rts.cabal2019-11-03T20:24:49ZJudah JacobsonSource distributions contain rts.cabal## Summary
GHC source distributions contain the file `rts.cabal`, which is generated by the build. That file should probably be excluded from source distributions.
## Steps to reproduce
```
$ tar -tf ghc-8.8.1-src.tar.xz | grep rts....## Summary
GHC source distributions contain the file `rts.cabal`, which is generated by the build. That file should probably be excluded from source distributions.
## Steps to reproduce
```
$ tar -tf ghc-8.8.1-src.tar.xz | grep rts.cabal
ghc-8.8.1/rts/rts.cabal.in
ghc-8.8.1/rts/rts.cabal
```
I also confirmed that this is still happening in HEAD with Hadrian:
```
$ tar -tf _build/source-dist/ghc-8.9.0.20190926-src.tar.xz | grep rts.cabal
_build/source-dist/ghc-8.9.0.20190926-src/rts/rts.cabal
_build/source-dist/ghc-8.9.0.20190926-src/rts/rts.cabal.in
```
## Expected behavior
The tarballs should not include `rts.cabal`.
## Environment
* GHC version used: 8.6.4 and 8.8.18.8.2https://gitlab.haskell.org/ghc/ghc/-/issues/17807“ghc-cabal” cannot be opened because the developer cannot be verified.2020-02-10T20:37:45Zconradwt“ghc-cabal” cannot be opened because the developer cannot be verified.## Summary
I have downloaded the binary distribution of GHC 8.8.2 for macOS 10.15.3 and I'm getting a dialog:
```
“ghc-cabal” cannot be opened because the developer cannot be verified.
```
Thus, I'm not very clear how to proceed becau...## Summary
I have downloaded the binary distribution of GHC 8.8.2 for macOS 10.15.3 and I'm getting a dialog:
```
“ghc-cabal” cannot be opened because the developer cannot be verified.
```
Thus, I'm not very clear how to proceed because I have two choices here `Move to Trash` and `Cancel`.
## Steps to reproduce
cd ghc-8.8.2
./configure
make install
## Expected behavior
I expect that GHC would be properly installed with errors and dialog warning messages.
## Environment
* GHC version used: 8.8.2
Optional:
* Operating System: macOS 10.15.3
* System Architecture: Darwin 19.3.0 Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64 x86_64https://gitlab.haskell.org/ghc/ghc/-/issues/17848make sdist is broken, fails to generate source archive2020-02-23T15:23:45ZCsaba Hruskamake sdist is broken, fails to generate source archive## Summary
The command `make sdist-ghc` fails after a fresh git repo clone (GHC master).
After a successfull GHC build the source dist build fails:
```
make sdist-ghc
make --no-print-directory -f ghc.mk sdist-ghc NO_INCLUDE_DEPS=YES N...## Summary
The command `make sdist-ghc` fails after a fresh git repo clone (GHC master).
After a successfull GHC build the source dist build fails:
```
make sdist-ghc
make --no-print-directory -f ghc.mk sdist-ghc NO_INCLUDE_DEPS=YES NO_INCLUDE_PKGDATA=YES
ghc.mk:1221: warning: overriding recipe for target 'sdist_compiler_stage2_Cmm'
ghc.mk:1220: warning: ignoring old recipe for target 'sdist_compiler_stage2_Cmm'
make[1]: *** No rule to make target 'compiler/stage2/build/Cmm.hs', needed by 'sdist_compiler_stage2_Cmm'. Stop.
Makefile:162: recipe for target 'sdist-ghc' failed
make: *** [sdist-ghc] Error 2
```
## Steps to reproduce
1. clone GHC git repository: `git clone --recursive https://gitlab.haskell.org/ghc/ghc.git`
2. `./boot`
3. `./configure`
4. `make -j4` (optional, does not have effect on the problem)
5. `make sdist-ghc`
## Expected behavior
A working source tar.xz should be generated and it should compile.
Could the source-dist generator be tested via CI?
## Environment
* GHC version used: bootstrap GHC 8.6.2, GHC master git hash: 785008c1235bd77ddb4d13f57f92b249752d8ea5
Optional:
* Operating System: Ubuntu 16.04
* System Architecture: x64https://gitlab.haskell.org/ghc/ghc/-/issues/17874GHC-8.8.3 is announced but there is no release tag2020-02-25T04:02:09ZOleg GrenrusGHC-8.8.3 is announced but there is no release tagBen GamariBen Gamarihttps://gitlab.haskell.org/ghc/ghc/-/issues/17849hadrian source-dist is broken, the generated source dist does not compile2020-02-29T17:02:43ZCsaba Hruskahadrian source-dist is broken, the generated source dist does not compile## Summary
The command `hadrian/build.sh source-dist` generates source archive that does not compile.
## Steps to reproduce
1. clone GHC git repository: `git clone --recursive https://gitlab.haskell.org/ghc/ghc.git`
2. `./boot`
3. `./...## Summary
The command `hadrian/build.sh source-dist` generates source archive that does not compile.
## Steps to reproduce
1. clone GHC git repository: `git clone --recursive https://gitlab.haskell.org/ghc/ghc.git`
2. `./boot`
3. `./configure`
4. `hadrian/build.sh source-dist`
5. extract and boot/configure/compile the genertated archive (i.e. ghc-8.11.0.20200215-src.tar.xz)
Compilation output of the source-dist with hadrian:
```
# 1. hadrian source-dist generated: ghc-8.11.0.20200215-src.tar.xz from ghc git head
# 2. extract and boot/configure/compile ghc-8.11.0.20200215-src.tar.xz with hadrian/build.sh -j
| Run Ghc CompileHs Stage0: libraries/Cabal/Cabal/Distribution/CabalSpecVersion.hs => _build/stage0/libraries/Cabal/Cabal/build/Distribution/CabalSpecVersion.o
| Run Ghc CompileHs Stage0: libraries/Cabal/Cabal/Distribution/Compat/DList.hs => _build/stage0/libraries/Cabal/Cabal/build/Distribution/Compat/DList.o
| Run Ghc CompileHs Stage0: libraries/Cabal/Cabal/Distribution/Lex.hs => _build/stage0/libraries/Cabal/Cabal/build/Distribution/Lex.o
| Run Ghc CompileHs Stage0: libraries/Cabal/Cabal/Distribution/Fields/Lexer.hs => _build/stage0/libraries/Cabal/Cabal/build/Distribution/Fields/Lexer.o
| Run Ghc CompileHs Stage0: libraries/Cabal/Cabal/Distribution/Pretty.hs => _build/stage0/libraries/Cabal/Cabal/build/Distribution/Pretty.o
<no location info>: error:
module ‘ghc-8.6.2:Lexer’ is defined in multiple files: compiler/GHC/Cmm/Lexer.hs
compiler/parser/Lexer.hs
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: _build/stage0/lib/package.conf.d/ghc-8.11.0.20200215.conf
at need, called at src/Rules/Register.hs:116:5 in main:Rules.Register
* Depends on: _build/stage0/compiler/build/libHSghc-8.11.0.20200215.a
at need, called at src/Rules/Library.hs:146:5 in main:Rules.Library
* Depends on: _build/stage0/compiler/build/Hooks.o
at &%>, called at src/Rules/Compile.hs:62:9 in main:Rules.Compile
* Depends on: _build/stage0/compiler/build/Hooks.o _build/stage0/compiler/build/Hooks.hi
at apply1, called at src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.3-a2e904f154f09728357733d7a3e8955a2a87773d2d7eb963a6f88d9d883fdde3:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (KeyValues ("_build/stage0/compiler/.dependencies","_build/stage0/compiler/build/Hooks.o"))
at need, called at src/Hadrian/Oracles/TextFile.hs:96:9 in main:Hadrian.Oracles.TextFile
* Depends on: _build/stage0/compiler/.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-a2e904f154f09728357733d7a3e8955a2a87773d2d7eb963a6f88d9d883fdde3:Development.Shake.Internal.Derived
* Depends on: _build/stage0/compiler/.dependencies.mk
* Raised the exception:
user error (Development.Shake.cmd, system command failed
Command line: /usr/local/bin/ghc -M -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db '-package-db _build/stage0/lib/package.conf.d' '-this-unit-id ghc-8.11.0.20200215' '-package-id array-0.5.3.0' '-
```
Compilation output of the source-dist with make:
```
# 1. hadrian source-dist generated: ghc-8.11.0.20200215-src.tar.xz from ghc git head
# 2. extract and boot/configure/compile ghc-8.11.0.20200215-src.tar.xz with make -j3
make -j3
+ test -f mk/config.mk.old
+ cp -p mk/config.mk mk/config.mk.old
touch -r mk/config.mk.old mk/config.mk
+ test -f mk/project.mk.old
+ cp -p mk/project.mk mk/project.mk.old
touch -r mk/project.mk.old mk/project.mk
+ test -f compiler/ghc.cabal.old
+ cp -p compiler/ghc.cabal compiler/ghc.cabal.old
touch -r compiler/ghc.cabal.old compiler/ghc.cabal
===--- building phase 0
make --no-print-directory -f ghc.mk phase=0 phase_0_builds
utils/genprimopcode/ghc.mk:19: utils/genprimopcode/dist/package-data.mk: No such file or directory
utils/deriveConstants/ghc.mk:19: utils/deriveConstants/dist/package-data.mk: No such file or directory
utils/genapply/ghc.mk:26: utils/genapply/dist/package-data.mk: No such file or directory
libraries/hpc/ghc.mk:3: libraries/hpc/dist-boot/package-data.mk: No such file or directory
libraries/binary/ghc.mk:3: libraries/binary/dist-boot/package-data.mk: No such file or directory
libraries/text/ghc.mk:3: libraries/text/dist-boot/package-data.mk: No such file or directory
libraries/transformers/ghc.mk:3: libraries/transformers/dist-boot/package-data.mk: No such file or directory
libraries/mtl/ghc.mk:3: libraries/mtl/dist-boot/package-data.mk: No such file or directory
libraries/parsec/ghc.mk:3: libraries/parsec/dist-boot/package-data.mk: No such file or directory
libraries/Cabal/Cabal/ghc.mk:3: libraries/Cabal/Cabal/dist-boot/package-data.mk: No such file or directory
libraries/ghc-boot-th/ghc.mk:3: libraries/ghc-boot-th/dist-boot/package-data.mk: No such file or directory
libraries/ghc-boot/ghc.mk:3: libraries/ghc-boot/dist-boot/package-data.mk: No such file or directory
libraries/template-haskell/ghc.mk:3: libraries/template-haskell/dist-boot/package-data.mk: No such file or directory
libraries/ghc-heap/ghc.mk:3: libraries/ghc-heap/dist-boot/package-data.mk: No such file or directory
libraries/terminfo/ghc.mk:3: libraries/terminfo/dist-boot/package-data.mk: No such file or directory
libraries/ghci/ghc.mk:3: libraries/ghci/dist-boot/package-data.mk: No such file or directory
ghc.mk:716: libraries/integer-gmp/gmp/ghc.mk: No such file or directory
compiler/ghc.mk:301: compiler/stage1/package-data.mk: No such file or directory
utils/hsc2hs/ghc.mk:21: utils/hsc2hs/dist/package-data.mk: No such file or directory
utils/ghc-pkg/ghc.mk:61: utils/ghc-pkg/dist/package-data.mk: No such file or directory
ghc/ghc.mk:117: ghc/stage1/package-data.mk: No such file or directory
ghc.mk:1221: warning: overriding recipe for target 'sdist_compiler_stage2_Cmm'
ghc.mk:1220: warning: ignoring old recipe for target 'sdist_compiler_stage2_Cmm'
mkdir -p inplace/bin
make[1]: *** No rule to make target 'libraries/integer-gmp/gmp/ghc.mk'. Stop.
make[1]: *** Waiting for unfinished jobs....
mkdir -p inplace/lib
"rm" -f inplace/bin/mkdirhier..
echo '#!/bin/sh' >> inplace/bin/mkdirhier
cat utils/mkdirhier/mkdirhier.sh >> inplace/bin/mkdirhier
chmod +x inplace/bin/mkdirhier
Makefile:123: recipe for target 'all' failed
make: *** [all] Error 2
```
## Expected behavior
The generated source distribution should compile with both hadrian and make.
Could the source-dist generator be tested via CI?
## Environment
* GHC version used: bootstrap GHC 8.6.2, GHC master git hash: 785008c1235bd77ddb4d13f57f92b249752d8ea5
Optional:
* Operating System: Ubuntu 16.04
* System Architecture: x64Make removalhttps://gitlab.haskell.org/ghc/ghc/-/issues/18146Mac os 10.15.4 install impossible 8.10.12020-05-09T16:29:31ZJean Marie FalisseMac os 10.15.4 install impossible 8.10.1## Summary
During the installation process (make install), messages like "Impossible d’ouvrir « ghc-pkg » car le développeur ne peut pas être vérifié." (impossible to open "ghc-pkg because the developer cannot be checked) are produced. ...## Summary
During the installation process (make install), messages like "Impossible d’ouvrir « ghc-pkg » car le développeur ne peut pas être vérifié." (impossible to open "ghc-pkg because the developer cannot be checked) are produced. Although, in "System preferences", the authorisations are given, installation finishes with "make[1]: *** [install_packages] Killed: 9
make: *** [install] Error 2".
## Steps to reproduce
make install
## Expected behavior
Just install ghc.
## Environment
* GHC version used: 8.10.1
Optional:
* Operating System: Mac OS 10.15.4
* System Architecture:8.10.2https://gitlab.haskell.org/ghc/ghc/-/issues/16516GHC 8.6.4 Windows 32 distributables2020-06-02T11:53:12ZvarosiGHC 8.6.4 Windows 32 distributablesCurrently there is no 32bit builds for Windows of GHC 8.6.4 - https://www.haskell.org/ghc/download_ghc_8_6_4.html#binaries
It would be great if there is 32bit build also.Currently there is no 32bit builds for Windows of GHC 8.6.4 - https://www.haskell.org/ghc/download_ghc_8_6_4.html#binaries
It would be great if there is 32bit build also.8.6.5https://gitlab.haskell.org/ghc/ghc/-/issues/16715Make bindists still appear to be broken2020-09-21T18:33:47ZMatthew PickeringMake bindists still appear to be brokenAnother `settings` file fallout. Trying to install a recent bindist fails.
```
[matt@nixos:~]$ ghc-head-from
Fetching artefact from ghc/master
builder for '/nix/store/blcipng1ya3qhfw6862qmg0dnkfr30fm-ghc-8.9.0.20190529.drv' failed wit...Another `settings` file fallout. Trying to install a recent bindist fails.
```
[matt@nixos:~]$ ghc-head-from
Fetching artefact from ghc/master
builder for '/nix/store/blcipng1ya3qhfw6862qmg0dnkfr30fm-ghc-8.9.0.20190529.drv' failed with exit code 2; last 10 log lines:
echo 'executablename="$exedir/ghc"' >> "/nix/store/pqlmzdxsw3mjjp20lv0mvpifaskh74am-ghc-8.9.0.20190529/bin/ghc-8.9.0.20190529"
cat ghc/ghc.wrapper >> "/nix/store/pqlmzdxsw3mjjp20lv0mvpifaskh74am-ghc-8.9.0.20190529/bin/ghc-8.9.0.20190529"
chmod +x "/nix/store/pqlmzdxsw3mjjp20lv0mvpifaskh74am-ghc-8.9.0.20190529/bin/ghc-8.9.0.20190529"
"rm" -f "/nix/store/pqlmzdxsw3mjjp20lv0mvpifaskh74am-ghc-8.9.0.20190529/bin/ghc"
ln -s ghc-8.9.0.20190529 "/nix/store/pqlmzdxsw3mjjp20lv0mvpifaskh74am-ghc-8.9.0.20190529/bin/ghc"
/nix/store/fxvgwfb8f450aqq2xdbzy6jxvymcwvn3-coreutils-8.31/bin/install -c -m 755 -d "/nix/store/pqlmzdxsw3mjjp20lv0mvpifaskh74am-ghc-8.9.0.20190529/share/man"
/nix/store/fxvgwfb8f450aqq2xdbzy6jxvymcwvn3-coreutils-8.31/bin/install -c -m 755 -d "/nix/store/pqlmzdxsw3mjjp20lv0mvpifaskh74am-ghc-8.9.0.20190529/share/man/man1"
/nix/store/fxvgwfb8f450aqq2xdbzy6jxvymcwvn3-coreutils-8.31/bin/install -c -m 644 docs/users_guide/build-man/ghc.1 "/nix/store/pqlmzdxsw3mjjp20lv0mvpifaskh74am-ghc-8.9.0.20190529/share/man/man1"
make[1]: *** No rule to make target 'settings', needed by 'install_libs'. Stop.
make: *** [Makefile:51: install] Error 2
[1 built (1 failed), 2 copied (18.1 MiB), 195.2 MiB DL]
error: build of '/nix/store/blcipng1ya3qhfw6862qmg0dnkfr30fm-ghc-8.9.0.20190529.drv' failed
```
It would be useful if anyone else could reproduce this with one of the artefacts.https://gitlab.haskell.org/ghc/ghc/-/issues/17980GHC 8.10.1 Source Distribution tarball missing Hadrian scripts2020-10-02T23:31:51ZBit ConnorGHC 8.10.1 Source Distribution tarball missing Hadrian scriptsI downloaded the file [ghc-8.10.1-src.tar.xz](https://downloads.haskell.org/~ghc/8.10.1/ghc-8.10.1-src.tar.xz) from <https://www.haskell.org/ghc/download_ghc_8_10_1.html>
I extracted it and want to build it with Hadrian, according to th...I downloaded the file [ghc-8.10.1-src.tar.xz](https://downloads.haskell.org/~ghc/8.10.1/ghc-8.10.1-src.tar.xz) from <https://www.haskell.org/ghc/download_ghc_8_10_1.html>
I extracted it and want to build it with Hadrian, according to these instructions: <https://gitlab.haskell.org/ghc/ghc/-/wikis/building/hadrian>
But it seems that it is completely missing the `hadrian` directory. I can see `hadrian` here in the GHC git, but it is not inside the source distribution tarballMake removalAlp MestanogullariAlp Mestanogullarihttps://gitlab.haskell.org/ghc/ghc/-/issues/18794GHC 9.0.1-alpha1 Source Distribution tarball missing Hadrian scripts2020-10-27T18:03:17ZbitGHC 9.0.1-alpha1 Source Distribution tarball missing Hadrian scriptsHello, I have downloaded this file: <https://downloads.haskell.org/ghc/9.0.1-alpha1/ghc-9.0.0.20200925-src.tar.xz>
It appears that that it is missing the `hadrian` directory so it is not possible to build it using hadrian.
This issue i...Hello, I have downloaded this file: <https://downloads.haskell.org/ghc/9.0.1-alpha1/ghc-9.0.0.20200925-src.tar.xz>
It appears that that it is missing the `hadrian` directory so it is not possible to build it using hadrian.
This issue is a re-raise of #17980. I was hoping that GHC 9.0 would be able to build using hadrian (to get relocatable builds) using the regular official source tarball (without having to mess with git).
Thank you9.0.1https://gitlab.haskell.org/ghc/ghc/-/issues/18821get-win32-tarballs.sh always downloads from mirror2021-03-22T17:15:29ZBen Gamariget-win32-tarballs.sh always downloads from mirror@shayne-fletcher-da reported on `ghc-devs` that `get-win32-tarballs.sh` always downloads from `repo.msys2.org`, even if the `downloads.haskell.org` download finished successfully.
This doesn't apply to %8.10.1 and later due to the Win32...@shayne-fletcher-da reported on `ghc-devs` that `get-win32-tarballs.sh` always downloads from `repo.msys2.org`, even if the `downloads.haskell.org` download finished successfully.
This doesn't apply to %8.10.1 and later due to the Win32 tarballs revamp in 0725f4bbc7f59282ee5fe41619099957030d85ff.8.8.5Ben GamariBen Gamari