GHC issueshttps://gitlab.haskell.org/ghc/ghc/-/issues2019-07-07T19:03:24Zhttps://gitlab.haskell.org/ghc/ghc/-/issues/3546Use of float type in unregistered build freezes program2019-07-07T19:03:24ZdtereiUse of float type in unregistered build freezes programIf you compile a ghc HEAD version in unregistered mode there is a bug that causes any programs compiled by this ghc to freeze when they try to access a float.
## build.mk
```
SRC_HC_OPTS = -O -H64m
GhcStage1HcOpts = -O
GhcStage2HcO...If you compile a ghc HEAD version in unregistered mode there is a bug that causes any programs compiled by this ghc to freeze when they try to access a float.
## build.mk
```
SRC_HC_OPTS = -O -H64m
GhcStage1HcOpts = -O
GhcStage2HcOpts = -O2
GhcHcOpts = -Rghc-timing
GhcLibHcOpts = -O2 -XGenerics
GhcLibWays += p
SplitObjs = NO
HADDOCK_DOCS = NO
BUILD_DOCBOOK_HTML = NO
BUILD_DOCBOOK_PS = NO
BUILD_DOCBOOK_PDF = NO
GhcUnregisterised = YES
GhcWithNativeCodeGen = NO
```
## Program which produces bug:
```
main = do
putStrLn "Print float test"
putStrLn (show (1.2312341::Float))
```
## Steps to reproduce
1. Compile latest version of ghc from darcs using the above build.mk configuration (other build.mk trigger the bug as well, must be unregistered though).
1. Compile the above haskell program with this ghc.
1. Run the program, it will freeze indefinitely
1. The test case *arith006* also triggers the bug.
## My machine
- x86, Ubuntu 9.04, 32 bit.
- uname -v
```
Linux david-laptop 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686 GNU/Linux
```
- gcc -v
```
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | |
| 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":"Use of float type in unregistered build freezes program","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"","keywords":["float","freezes","unregistered"],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"If you compile a ghc HEAD version in unregistered mode there is a bug that causes any programs compiled by this ghc to freeze when they try to access a float.\r\n\r\n== build.mk ==\r\n{{{\r\nSRC_HC_OPTS = -O -H64m\r\nGhcStage1HcOpts = -O\r\nGhcStage2HcOpts = -O2\r\nGhcHcOpts = -Rghc-timing\r\nGhcLibHcOpts = -O2 -XGenerics\r\nGhcLibWays += p\r\nSplitObjs = NO\r\n\r\nHADDOCK_DOCS = NO\r\nBUILD_DOCBOOK_HTML = NO\r\nBUILD_DOCBOOK_PS = NO\r\nBUILD_DOCBOOK_PDF = NO\r\n\r\nGhcUnregisterised = YES\r\nGhcWithNativeCodeGen = NO\r\n}}}\r\n\r\n== Program which produces bug: ==\r\n{{{\r\nmain = do\r\n putStrLn \"Print float test\"\r\n putStrLn (show (1.2312341::Float))\r\n}}}\r\n\r\n\r\n== Steps to reproduce ==\r\n 1. Compile latest version of ghc from darcs using the above build.mk configuration (other build.mk trigger the bug as well, must be unregistered though).\r\n 2. Compile the above haskell program with this ghc.\r\n 3. Run the program, it will freeze indefinitely\r\n 4. The test case ''arith006'' also triggers the bug.\r\n\r\n== My machine ==\r\n * x86, Ubuntu 9.04, 32 bit.\r\n * uname -v\r\n{{{\r\nLinux david-laptop 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686 GNU/Linux\r\n}}}\r\n * gcc -v\r\n{{{\r\nUsing built-in specs.\r\nTarget: i486-linux-gnu\r\nConfigured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu\r\nThread model: posix\r\ngcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)\r\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1Ian Lynagh <igloo@earth.li>Ian Lynagh <igloo@earth.li>https://gitlab.haskell.org/ghc/ghc/-/issues/3542ghc-cabal deadlocks2019-07-07T19:03:25ZIan Lynagh <igloo@earth.li>ghc-cabal deadlocksTrying to build an OS X installer is currently deadlocking when
```
inplace/bin/ghc-cabal install /Users/ian/ghc/6.12-branch/val/dest/Users/ian/ghc/6.12-branch/val/inst/lib/ghc-6.12.0.20090925/ghc-stage2 /Users/ian/ghc/6.12-branch/val/d...Trying to build an OS X installer is currently deadlocking when
```
inplace/bin/ghc-cabal install /Users/ian/ghc/6.12-branch/val/dest/Users/ian/ghc/6.12-branch/val/inst/lib/ghc-6.12.0.20090925/ghc-stage2 /Users/ian/ghc/6.12-branch/val/dest/Users/ian/ghc/6.12-branch/val/inst/lib/ghc-6.12.0.20090925/ghc-pkg /Users/ian/ghc/6.12-branch/val/dest/Users/ian/ghc/6.12-branch/val/inst/lib/ghc-6.12.0.20090925 compiler stage2 /Users/ian/ghc/6.12-branch/val/dest /Users/ian/ghc/6.12-branch/val/inst /Users/ian/ghc/6.12-branch/val/inst/lib/ghc-6.12.0.20090925 /Users/ian/ghc/6.12-branch/val/inst/share/doc/ghc/html/libraries
```
runs:
```
/Users/ian/ghc/6.12-branch/val/dest/Users/ian/ghc/6.12-branch/val/inst/lib/ghc-6.12.0.20090925/ghc-pkg --global-conf /Users/ian/ghc/6.12-branch/val/dest/Users/ian/ghc/6.12-branch/val/inst/lib/ghc-6.12.0.20090925/package.conf.d --force update - --global
```
Linking `ghc-cabal` with `-threaded` fixes the problem. I believe the problem is that when we are using a `DESTDIR` we get a large amount of warnings (more than a buffer full) like:
```
ghc-6.12.0.20090925: file AsmCodeGen.hi is missing (ignoring)
```
so Cabal's `Distribution.Simple.Utils.rawSystemStdin`:
```
_ <- forkIO $ do _ <- evaluate (length err); return ()
_ <- forkIO $ do _ <- evaluate (length out); return ()
-- push all the input
hPutStr inh input
hClose inh
-- wait for the program to terminate
exitcode <- waitForProcess pid
unless (exitcode == ExitSuccess) (die err)
```
deadlocks unless it is compiled with `-threaded`, as the forked evaluate threads don't get a chance to run.
The simple fix is to link with `-threaded`, but I'm not sure that we want to assume that `-threaded` works - especially as it needs to work in the bootstrapping compiler.
Can we eliminate calls to this, and any other problematic, functions?
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 6.10.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | high |
| Resolution | Unresolved |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"ghc-cabal deadlocks","status":"New","operating_system":"","component":"Build System","related":[],"milestone":"6.12.1","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.10.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"Trying to build an OS X installer is currently deadlocking when\r\n{{{\r\ninplace/bin/ghc-cabal install /Users/ian/ghc/6.12-branch/val/dest/Users/ian/ghc/6.12-branch/val/inst/lib/ghc-6.12.0.20090925/ghc-stage2 /Users/ian/ghc/6.12-branch/val/dest/Users/ian/ghc/6.12-branch/val/inst/lib/ghc-6.12.0.20090925/ghc-pkg /Users/ian/ghc/6.12-branch/val/dest/Users/ian/ghc/6.12-branch/val/inst/lib/ghc-6.12.0.20090925 compiler stage2 /Users/ian/ghc/6.12-branch/val/dest /Users/ian/ghc/6.12-branch/val/inst /Users/ian/ghc/6.12-branch/val/inst/lib/ghc-6.12.0.20090925 /Users/ian/ghc/6.12-branch/val/inst/share/doc/ghc/html/libraries\r\n}}}\r\nruns:\r\n{{{\r\n/Users/ian/ghc/6.12-branch/val/dest/Users/ian/ghc/6.12-branch/val/inst/lib/ghc-6.12.0.20090925/ghc-pkg --global-conf /Users/ian/ghc/6.12-branch/val/dest/Users/ian/ghc/6.12-branch/val/inst/lib/ghc-6.12.0.20090925/package.conf.d --force update - --global\r\n}}}\r\n\r\nLinking `ghc-cabal` with `-threaded` fixes the problem. I believe the problem is that when we are using a `DESTDIR` we get a large amount of warnings (more than a buffer full) like:\r\n{{{\r\nghc-6.12.0.20090925: file AsmCodeGen.hi is missing (ignoring)\r\n}}}\r\nso Cabal's `Distribution.Simple.Utils.rawSystemStdin`:\r\n{{{\r\n _ <- forkIO $ do _ <- evaluate (length err); return ()\r\n _ <- forkIO $ do _ <- evaluate (length out); return ()\r\n\r\n -- push all the input\r\n hPutStr inh input\r\n hClose inh\r\n\r\n -- wait for the program to terminate\r\n exitcode <- waitForProcess pid\r\n unless (exitcode == ExitSuccess) (die err)\r\n}}}\r\ndeadlocks unless it is compiled with `-threaded`, as the forked evaluate threads don't get a chance to run.\r\n\r\nThe simple fix is to link with `-threaded`, but I'm not sure that we want to assume that `-threaded` works - especially as it needs to work in the bootstrapping compiler.\r\n\r\nCan we eliminate calls to this, and any other problematic, functions?\r\n","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1https://gitlab.haskell.org/ghc/ghc/-/issues/3539internal error: ASSERTION FAILED: file sm/Evac.c, line 3682019-07-07T19:03:26Zelaforgeinternal error: ASSERTION FAILED: file sm/Evac.c, line 368Searching trac for "ASSERTION FAILED" or Evac.c didn't turn this up, so here goes.
I've been infrequently getting this on startup:
```
seq: internal error: ASSERTION FAILED: file sm/Evac.c, line 368
(GHC version 6.10.4 for i386_ap...Searching trac for "ASSERTION FAILED" or Evac.c didn't turn this up, so here goes.
I've been infrequently getting this on startup:
```
seq: internal error: ASSERTION FAILED: file sm/Evac.c, line 368
(GHC version 6.10.4 for i386_apple_darwin)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
```
This is OS X 10.5.8. Starting the same program again with no changes works, so I can't trigger it consistently. Here's the traceback from the crashing thread:
```
Thread 3 Crashed:
0 libSystem.B.dylib 0x94508c7e nanosleep$NOCANCEL$UNIX2003 + 0
1 libSystem.B.dylib 0x94502013 usleep$NOCANCEL$UNIX2003 + 61
2 libSystem.B.dylib 0x94519685 abort + 85
3 elaforge.seq.seq 0x00f71a06 rtsErrorMsgFn + 0
4 elaforge.seq.seq 0x00f717f3 barf + 33
5 elaforge.seq.seq 0x00f71846 errorBelch + 0
6 elaforge.seq.seq 0x00f85dfe evacuate + 91
7 elaforge.seq.seq 0x00f8f1b2 scavenge_one + 311
8 elaforge.seq.seq 0x00f8f695 scavenge_mutable_list + 268
9 elaforge.seq.seq 0x00f87248 GarbageCollect + 857
10 elaforge.seq.seq 0x00f78ffc scheduleDoGC + 526
11 elaforge.seq.seq 0x00f78044 schedule + 2538
12 elaforge.seq.seq 0x00f79a89 workerStart + 72
13 libSystem.B.dylib 0x9445e155 _pthread_start + 321
14 libSystem.B.dylib 0x9445e012 thread_start + 34
Thread 3 crashed with X86 Thread State (32-bit):
eax: 0xb0184bd8 ebx: 0x94519639 ecx: 0x00000000 edx: 0x00000000
edi: 0x00000000 esi: 0x00002710 ebp: 0xb0184be8 esp: 0xb0184bbc
ss: 0x0000001f efl: 0x00010202 eip: 0x94508c7e cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
cr2: 0x16d59990
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | -------------- |
| Version | 6.10.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Runtime System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"internal error: ASSERTION FAILED: file sm/Evac.c, line 368","status":"New","operating_system":"","component":"Runtime System","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.10.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"Searching trac for \"ASSERTION FAILED\" or Evac.c didn't turn this up, so here goes.\r\n\r\nI've been infrequently getting this on startup:\r\n\r\n{{{\r\nseq: internal error: ASSERTION FAILED: file sm/Evac.c, line 368\r\n\r\n (GHC version 6.10.4 for i386_apple_darwin)\r\n Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug\r\n}}}\r\n\r\nThis is OS X 10.5.8. Starting the same program again with no changes works, so I can't trigger it consistently. Here's the traceback from the crashing thread:\r\n\r\n{{{\r\nThread 3 Crashed:\r\n0 libSystem.B.dylib 0x94508c7e nanosleep$NOCANCEL$UNIX2003 + 0\r\n1 libSystem.B.dylib 0x94502013 usleep$NOCANCEL$UNIX2003 + 61\r\n2 libSystem.B.dylib 0x94519685 abort + 85\r\n3 elaforge.seq.seq 0x00f71a06 rtsErrorMsgFn + 0\r\n4 elaforge.seq.seq 0x00f717f3 barf + 33\r\n5 elaforge.seq.seq 0x00f71846 errorBelch + 0\r\n6 elaforge.seq.seq 0x00f85dfe evacuate + 91\r\n7 elaforge.seq.seq 0x00f8f1b2 scavenge_one + 311\r\n8 elaforge.seq.seq 0x00f8f695 scavenge_mutable_list + 268\r\n9 elaforge.seq.seq 0x00f87248 GarbageCollect + 857\r\n10 elaforge.seq.seq 0x00f78ffc scheduleDoGC + 526\r\n11 elaforge.seq.seq 0x00f78044 schedule + 2538\r\n12 elaforge.seq.seq 0x00f79a89 workerStart + 72\r\n13 libSystem.B.dylib 0x9445e155 _pthread_start + 321\r\n14 libSystem.B.dylib 0x9445e012 thread_start + 34\r\n\r\nThread 3 crashed with X86 Thread State (32-bit):\r\n eax: 0xb0184bd8 ebx: 0x94519639 ecx: 0x00000000 edx: 0x00000000\r\n edi: 0x00000000 esi: 0x00002710 ebp: 0xb0184be8 esp: 0xb0184bbc\r\n ss: 0x0000001f efl: 0x00010202 eip: 0x94508c7e cs: 0x00000017\r\n ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037\r\n cr2: 0x16d59990\r\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1Simon MarlowSimon Marlowhttps://gitlab.haskell.org/ghc/ghc/-/issues/3534hSetBinaryMode fails after some input has been read2019-07-07T19:03:27ZjudahhSetBinaryMode fails after some input has been readFor the following program (`BadSeek.hs`), type a couple characters of input and press return. With ghc-6.10.3, it works fine; with ghc-6.11 it throws an error.
```
module Main where
import System.IO
main = do
getChar >>= print
...For the following program (`BadSeek.hs`), type a couple characters of input and press return. With ghc-6.10.3, it works fine; with ghc-6.11 it throws an error.
```
module Main where
import System.IO
main = do
getChar >>= print
hSetBinaryMode stdin True
getChar >>= print
```
With ghc-6.10:
```
$ ./BadSeek
ab
'a'
'b'
```
With ghc-6.11:
```
$ ./BadSeek
ab
'a'
BadSeek: <stdin>: hSetBinaryMode: illegal operation (cannot flush the read buffer of a text-mode handle)
```
The error goes away if the first 'getChar' is commented out.
For libraries which are not yet using the Unicode I/O layer, having a way to temporarily set stdin to `BinaryMode` would be useful.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | -------------- |
| Version | 6.11 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | libraries/base |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"hSetBinaryMode fails after some input has been read","status":"New","operating_system":"","component":"libraries/base","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.11","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"For the following program (`BadSeek.hs`), type a couple characters of input and press return. With ghc-6.10.3, it works fine; with ghc-6.11 it throws an error.\r\n{{{\r\nmodule Main where\r\n\r\nimport System.IO\r\n\r\nmain = do \r\n getChar >>= print\r\n hSetBinaryMode stdin True\r\n getChar >>= print\r\n}}}\r\n\r\nWith ghc-6.10:\r\n{{{\r\n$ ./BadSeek \r\nab\r\n'a'\r\n'b'\r\n}}}\r\n\r\nWith ghc-6.11:\r\n{{{\r\n$ ./BadSeek\r\nab\r\n'a'\r\nBadSeek: <stdin>: hSetBinaryMode: illegal operation (cannot flush the read buffer of a text-mode handle)\r\n}}}\r\n\r\nThe error goes away if the first 'getChar' is commented out.\r\n\r\nFor libraries which are not yet using the Unicode I/O layer, having a way to temporarily set stdin to `BinaryMode` would be useful.","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1Simon MarlowSimon Marlowhttps://gitlab.haskell.org/ghc/ghc/-/issues/3532haddock should support content indexing of versioned package dirs2019-07-07T19:03:27ZJens Petersenhaddock should support content indexing of versioned package dirsWhen generating the libraries/index.html file
haddock generates broken urls to the documentation
in versioned library doc directories.
It also means it is not possible to have
documentation indexed for more than one version
of a library...When generating the libraries/index.html file
haddock generates broken urls to the documentation
in versioned library doc directories.
It also means it is not possible to have
documentation indexed for more than one version
of a library.
To reproduce:
- install mylibrary's docs in libraries/mylibrary-1.0.0.1
- run gen_contents_index in libraries
Observe index.html links for mylibrary
point to libraries/mylibrary/ not
libraries/mylibrary-1.0.0.1/
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.10.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Documentation |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"haddock should support content indexing of versioned package dirs","status":"New","operating_system":"","component":"Documentation","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.10.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"When generating the libraries/index.html file\r\nhaddock generates broken urls to the documentation\r\nin versioned library doc directories.\r\n\r\nIt also means it is not possible to have\r\ndocumentation indexed for more than one version\r\nof a library.\r\n\r\nTo reproduce:\r\n * install mylibrary's docs in libraries/mylibrary-1.0.0.1\r\n * run gen_contents_index in libraries\r\n\r\nObserve index.html links for mylibrary\r\npoint to libraries/mylibrary/ not\r\nlibraries/mylibrary-1.0.0.1/","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1Ian Lynagh <igloo@earth.li>Ian Lynagh <igloo@earth.li>https://gitlab.haskell.org/ghc/ghc/-/issues/3531Haddock needs tcRnGetInfo, hence GhcWithInterpreter YES2019-07-07T19:03:28ZdonnHaddock needs tcRnGetInfo, hence GhcWithInterpreter YES"Unregisterized" cross compile fails on stage2 build of Haddock because, in Interface.AttachInstances, TcRnDriver doesn't export tcRnGetInfo.
Presumably because \#ifdef GCHI is false when GhcWithInterpreter is NO.
From 6.11.20090919
<..."Unregisterized" cross compile fails on stage2 build of Haddock because, in Interface.AttachInstances, TcRnDriver doesn't export tcRnGetInfo.
Presumably because \#ifdef GCHI is false when GhcWithInterpreter is NO.
From 6.11.20090919
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 6.11 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Haddock needs tcRnGetInfo, hence GhcWithInterpreter YES","status":"New","operating_system":"","component":"Build System","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.11","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"\"Unregisterized\" cross compile fails on stage2 build of Haddock because, in Interface.AttachInstances, TcRnDriver doesn't export tcRnGetInfo.\r\n\r\nPresumably because #ifdef GCHI is false when GhcWithInterpreter is NO.\r\n\r\nFrom 6.11.20090919","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1Ian Lynagh <igloo@earth.li>Ian Lynagh <igloo@earth.li>https://gitlab.haskell.org/ghc/ghc/-/issues/3530GHCi does not work on Snow Leopard2019-07-07T19:03:28ZManuel M T ChakravartyGHCi does not work on Snow LeopardWhen compiling GHC as a 32-bit application on Snow Leopard (Mac OS X 10.6), the generated ghci aborts with a Bus Error (null pointer dereference) on startup (after it has loaded all packages). This happens only when GHC was compiled on S...When compiling GHC as a 32-bit application on Snow Leopard (Mac OS X 10.6), the generated ghci aborts with a Bus Error (null pointer dereference) on startup (after it has loaded all packages). This happens only when GHC was compiled on Snow Leopard (not if a binary built on Leopard is used on Snow Leopard) and if GHCi is used **interactively** (if a set of commands is redirected into ghci —as in `ghc < myscript`— the problem doesn't occur).
In addition to the failure of GHCi on startup for interactive use, the following five regression tests fail when validating:
```
TH_repE2(normal) -- the failing declaration is: an_integer
TH_repPrim(normal) -- the failing tests is: [| D# 24.6## |]
ann01(normal) -- all annotations with a Double fail
ffi018_ghci(ghci)
prog002(ghci)
```
Moreover, with `WAY=ghci` in `codeGen/`, we have the following failures:
```
cg014(ghci)
cg024(ghci)
cg026(ghci)
cg028(ghci)
cg034(ghci)
cg035(ghci)
cg044(ghci)
```
Observation: All of the failing tests use 'Double'.
Workaround: For the 6.12 release, by building a 32-bit binary on Leopard for use on both Leopard and Snow Leopard, the fault on starting GHCi can be avoided. I haven't checked whether that avoids the problems with the listed regressions, too.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 6.11 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | GHCi |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"GHCi does not work on Snow Leopard","status":"New","operating_system":"","component":"GHCi","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.11","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"When compiling GHC as a 32-bit application on Snow Leopard (Mac OS X 10.6), the generated ghci aborts with a Bus Error (null pointer dereference) on startup (after it has loaded all packages). This happens only when GHC was compiled on Snow Leopard (not if a binary built on Leopard is used on Snow Leopard) and if GHCi is used '''interactively''' (if a set of commands is redirected into ghci —as in `ghc < myscript`— the problem doesn't occur).\r\n\r\nIn addition to the failure of GHCi on startup for interactive use, the following five regression tests fail when validating:\r\n{{{\r\n TH_repE2(normal) -- the failing declaration is: an_integer\r\n TH_repPrim(normal) -- the failing tests is: [| D# 24.6## |]\r\n ann01(normal) -- all annotations with a Double fail\r\n ffi018_ghci(ghci)\r\n prog002(ghci)\r\n}}}\r\n\r\nMoreover, with `WAY=ghci` in `codeGen/`, we have the following failures:\r\n{{{\r\n cg014(ghci)\r\n cg024(ghci)\r\n cg026(ghci)\r\n cg028(ghci)\r\n cg034(ghci)\r\n cg035(ghci)\r\n cg044(ghci)\r\n}}}\r\nObservation: All of the failing tests use 'Double'.\r\n\r\nWorkaround: For the 6.12 release, by building a 32-bit binary on Leopard for use on both Leopard and Snow Leopard, the fault on starting GHCi can be avoided. I haven't checked whether that avoids the problems with the listed regressions, too.","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1Manuel M T ChakravartyManuel M T Chakravartyhttps://gitlab.haskell.org/ghc/ghc/-/issues/3529Can't push to checked-out repos any more2019-07-07T19:03:28ZIan Lynagh <igloo@earth.li>Can't push to checked-out repos any moreI used to be able to do:
```
./push-all --ignore-failure --checked-out dippy:c:/msys/1.0/home/ian/ghc
```
to push to a checked-out repo, but following the change to `darcs-all` I don't think that there is a way to do that.
<details><s...I used to be able to do:
```
./push-all --ignore-failure --checked-out dippy:c:/msys/1.0/home/ian/ghc
```
to push to a checked-out repo, but following the change to `darcs-all` I don't think that there is a way to do that.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 6.11 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | high |
| Resolution | Unresolved |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Can't push to checked-out repos any more","status":"New","operating_system":"","component":"Build System","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"OwnedBy","contents":"simonmar"},"version":"6.11","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"I used to be able to do:\r\n{{{\r\n./push-all --ignore-failure --checked-out dippy:c:/msys/1.0/home/ian/ghc\r\n}}}\r\nto push to a checked-out repo, but following the change to `darcs-all` I don't think that there is a way to do that.\r\n","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1Simon MarlowSimon Marlowhttps://gitlab.haskell.org/ghc/ghc/-/issues/3521ld on mac won't allow -rpath unless you specify macosx_version_min 10.52019-07-07T19:03:30Zmwottonld on mac won't allow -rpath unless you specify macosx_version_min 10.5when trying to build a Haskell shared library on Mac OS X, linking fails with this error:
ld: -rpath can only be used when targeting Mac OS X 10.5 or later
this can be tracked down to the DriverPipeline.hs specifying macosx_version_min...when trying to build a Haskell shared library on Mac OS X, linking fails with this error:
ld: -rpath can only be used when targeting Mac OS X 10.5 or later
this can be tracked down to the DriverPipeline.hs specifying macosx_version_min to be 10.3. This can be hacked around by passing 10.5 again, but is a bit fragile because ld on Mac takes the last version specified rather than the highest. There may be good reasons to retain \<10.5 compatibility, but from IRC conversation with JaffaCake, ghc depends on 10.5 anyway, so this _should_ make no difference.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 6.11 |
| 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":"ld on mac won't allow -rpath unless you specify macosx_version_min 10.5","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.11","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"when trying to build a Haskell shared library on Mac OS X, linking fails with this error:\r\n\r\nld: -rpath can only be used when targeting Mac OS X 10.5 or later\r\n\r\nthis can be tracked down to the DriverPipeline.hs specifying macosx_version_min to be 10.3. This can be hacked around by passing 10.5 again, but is a bit fragile because ld on Mac takes the last version specified rather than the highest. There may be good reasons to retain <10.5 compatibility, but from IRC conversation with JaffaCake, ghc depends on 10.5 anyway, so this _should_ make no difference.","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1Ian Lynagh <igloo@earth.li>Ian Lynagh <igloo@earth.li>https://gitlab.haskell.org/ghc/ghc/-/issues/3512template-hsc.h installed under /usr/share (datadir)2019-07-07T19:03:34ZJens Petersentemplate-hsc.h installed under /usr/share (datadir)In ghc-6.10.4 hsc2hs's template-hsc.h gets installed as
"/usr/lib/ghc-6.10.4/hsc2hs-0.67/template-hsc.h"
whereas with 6.11 I see "/usr/share/template-hsc.h".
(Maybe it is better to move it in the source into
"hsc2hs/include/"?)
<detail...In ghc-6.10.4 hsc2hs's template-hsc.h gets installed as
"/usr/lib/ghc-6.10.4/hsc2hs-0.67/template-hsc.h"
whereas with 6.11 I see "/usr/share/template-hsc.h".
(Maybe it is better to move it in the source into
"hsc2hs/include/"?)
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ---------------- |
| Version | 6.11 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Unknown/Multiple |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"template-hsc.h installed under /usr/share (datadir)","status":"New","operating_system":"Unknown/Multiple","component":"Build System","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.11","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"In ghc-6.10.4 hsc2hs's template-hsc.h gets installed as\r\n\"/usr/lib/ghc-6.10.4/hsc2hs-0.67/template-hsc.h\"\r\nwhereas with 6.11 I see \"/usr/share/template-hsc.h\".\r\n\r\n(Maybe it is better to move it in the source into\r\n\"hsc2hs/include/\"?)","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1Simon MarlowSimon Marlowhttps://gitlab.haskell.org/ghc/ghc/-/issues/3502GC leaks memory under -threaded2019-07-07T19:03:36ZNeil MitchellGC leaks memory under -threadedThe following program leaks 2Mb/s under Windows:
```
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.10.4
$ cat Test.hs
import System.Mem
import Control.Monad
main = forever performGC
$ ghc --make Test.hs -thr...The following program leaks 2Mb/s under Windows:
```
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.10.4
$ cat Test.hs
import System.Mem
import Control.Monad
main = forever performGC
$ ghc --make Test.hs -threaded
$ Test.exe
```
This leak does not occur if you remove the `-threaded`, or if you run the same test on Linux. I am using `forever` to leak memory more quickly, but I believe the same issues will arise if `performGC` is called in the normal course of a program.
I consider this leak to be critical, so have marked severity appropriately.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | -------------------------------------------- |
| Version | 6.10.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Runtime System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | lennart@augustsson.net, ndmitchell@gmail.com |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"GC leaks memory under -threaded","status":"New","operating_system":"","component":"Runtime System","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.10.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":["lennart@augustsson.net","ndmitchell@gmail.com"],"type":"Bug","description":"The following program leaks 2Mb/s under Windows:\r\n\r\n{{{\r\n$ ghc --version\r\nThe Glorious Glasgow Haskell Compilation System, version 6.10.4\r\n$ cat Test.hs\r\nimport System.Mem\r\nimport Control.Monad\r\nmain = forever performGC\r\n$ ghc --make Test.hs -threaded\r\n$ Test.exe\r\n}}}\r\n\r\nThis leak does not occur if you remove the {{{-threaded}}}, or if you run the same test on Linux. I am using {{{forever}}} to leak memory more quickly, but I believe the same issues will arise if {{{performGC}}} is called in the normal course of a program.\r\n\r\nI consider this leak to be critical, so have marked severity appropriately. ","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1https://gitlab.haskell.org/ghc/ghc/-/issues/3495make install DESTDIR= is failing in ghc HEAD2019-07-07T19:03:37Zduncanmake install DESTDIR= is failing in ghc HEAD`make install DESTDIR=$image` is failing currently with ghc HEAD. This is the method distro packages use so it'll need fixing before 6.12.1.
The failing command is on the first instance of `ghc-cabal install` for the libs:
```
"inplace...`make install DESTDIR=$image` is failing currently with ghc HEAD. This is the method distro packages use so it'll need fixing before 6.12.1.
The failing command is on the first instance of `ghc-cabal install` for the libs:
```
"inplace/bin/ghc-cabal" install image/usr/... etc
ghc-cabal: ghc-pkg dump failed
```
Unfortunately, it does not give any more info if I pass `-v3`. That flag seems to be swallowed rather than passed down.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 6.11 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"make install DESTDIR= is failing in ghc HEAD","status":"New","operating_system":"","component":"Build System","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.11","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"`make install DESTDIR=$image` is failing currently with ghc HEAD. This is the method distro packages use so it'll need fixing before 6.12.1.\r\n\r\nThe failing command is on the first instance of `ghc-cabal install` for the libs:\r\n{{{\r\n\"inplace/bin/ghc-cabal\" install image/usr/... etc\r\nghc-cabal: ghc-pkg dump failed\r\n}}}\r\n\r\nUnfortunately, it does not give any more info if I pass `-v3`. That flag seems to be swallowed rather than passed down.","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1Ian Lynagh <igloo@earth.li>Ian Lynagh <igloo@earth.li>https://gitlab.haskell.org/ghc/ghc/-/issues/3494missing build system dependency2019-07-07T19:03:38Zduncanmissing build system dependencyThe `inplace/bin/ghc-cabal` does not get rebuilt automatically if the Cabal sources change.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version ...The `inplace/bin/ghc-cabal` does not get rebuilt automatically if the Cabal sources change.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 6.11 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"missing build system dependency","status":"New","operating_system":"","component":"Build System","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"OwnedBy","contents":"igloo"},"version":"6.11","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"The `inplace/bin/ghc-cabal` does not get rebuilt automatically if the Cabal sources change.","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1Ian Lynagh <igloo@earth.li>Ian Lynagh <igloo@earth.li>https://gitlab.haskell.org/ghc/ghc/-/issues/3493"make install" fails with error on rts/Config.h in HEAD2019-07-07T19:03:38Zguest"make install" fails with error on rts/Config.h in HEADUsing the package from http://www.haskell.org/ghc/dist/current/dist/ghc-6.11.20090907-x86_64-unknown-linux.tar.bz2
I think this is the symptom we need to find the cause of:
```
rts/package.conf.in:4: error: rts/Config.h: No such file o...Using the package from http://www.haskell.org/ghc/dist/current/dist/ghc-6.11.20090907-x86_64-unknown-linux.tar.bz2
I think this is the symptom we need to find the cause of:
```
rts/package.conf.in:4: error: rts/Config.h: No such file or directory
```
Full log:
```
a1333478@dev2 ~/ghc-6.11.20090907
$ ./configure --prefix=$HOME
checking for path to top of build tree... /home/a1333478/ghc-6.11.20090907
checking for perl... /usr/bin/perl
checking if your perl works in shell scripts... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ar... /usr/bin/ar
checking whether /usr/bin/ar is GNU ar... yes
checking for ar arguments... q
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether ranlib is needed... no
checking for sed... /bin/sed
checking version of gcc... 4.1.2
checking how to run the C preprocessor... gcc -E
checking for extra options to pass gcc when compiling via C... -fwrapv
configure: creating ./config.status
config.status: creating extra-gcc-opts
config.status: creating mk/config.mk
config.status: creating mk/install.mk
****************************************************
Configuration done, ready to 'make install'
(see README and INSTALL files for more info.)
****************************************************
a1333478@dev2 ~/ghc-6.11.20090907
$ make install
make -r --no-print-directory -f ghc.mk install BINDIST=YES NO_INCLUDE_DEPS=YES
/usr/bin/install -c -m 755 -d /home/a1333478/bin
"rm" -f /home/a1333478/bin/ghci-6.11.20090907
create () { touch $1 && chmod 755 $1 ; } && create /home/a1333478/bin/ghci-6.11.20090907
echo '#!/bin/sh' >> /home/a1333478/bin/ghci-6.11.20090907
echo 'exec /home/a1333478/bin/ghc-6.11.20090907 --interactive ${1+"$@"}' >> /home/a1333478/bin/ghci-6.11.20090907
chmod +x /home/a1333478/bin/ghci-6.11.20090907
"rm" -f /home/a1333478/bin/ghci
ln -s ghci-6.11.20090907 /home/a1333478/bin/ghci
/usr/bin/install -c -m 755 -d /home/a1333478/lib/ghc-6.11.20090907
/usr/bin/install -c -m 755 -d /home/a1333478/lib/ghc-6.11.20090907/include
"cp" rts/dist/build/libHSrts.a rts/dist/build/libHSrts_p.a rts/dist/build/libHSrts-ghc6.11.20090907.so rts/dist/build/libHSrts_l.a rts/dist/build/libHSrts_debug-ghc6.11.20090907.so rts/dist/build/libHSrts_thr-ghc6.11.20090907.so rts/dist/build/libHSrts_thr_debug-ghc6.11.20090907.so rts/dist/build/libHSrts_thr.a rts/dist/build/libHSrts_thr_debug.a rts/dist/build/libHSrts_thr_l.a rts/dist/build/libHSrts_thr_p.a rts/dist/build/libHSrtsmain.a /home/a1333478/lib/ghc-6.11.20090907
/usr/bin/install -c -m 755 -d /home/a1333478/bin
"rm" -f /home/a1333478/bin/haddock
create () { touch $1 && chmod 755 $1 ; } && create /home/a1333478/bin/haddock
echo '#!/bin/sh' >> /home/a1333478/bin/haddock
echo 'executablename=/home/a1333478/lib/ghc-6.11.20090907/haddock' >> /home/a1333478/bin/haddock
echo 'datadir=/home/a1333478/share' >> /home/a1333478/bin/haddock
echo 'bindir=/home/a1333478/bin' >> /home/a1333478/bin/haddock
echo 'topdir=/home/a1333478/lib/ghc-6.11.20090907' >> /home/a1333478/bin/haddock
cat utils/haddock/haddock.wrapper >> /home/a1333478/bin/haddock
chmod +x /home/a1333478/bin/haddock
"rm" -f -r /home/a1333478/share/doc//html
/usr/bin/install -c -m 755 -d /home/a1333478/share/doc//html
"cp" -R utils/haddock/html /home/a1333478/share/doc//html
/usr/bin/install -c -m 755 -d /home/a1333478/bin
"rm" -f /home/a1333478/bin/hsc2hs
create () { touch $1 && chmod 755 $1 ; } && create /home/a1333478/bin/hsc2hs
echo '#!/bin/sh' >> /home/a1333478/bin/hsc2hs
echo 'executablename=/home/a1333478/lib/ghc-6.11.20090907/hsc2hs' >> /home/a1333478/bin/hsc2hs
echo 'datadir=/home/a1333478/share' >> /home/a1333478/bin/hsc2hs
echo 'bindir=/home/a1333478/bin' >> /home/a1333478/bin/hsc2hs
echo 'topdir=/home/a1333478/lib/ghc-6.11.20090907' >> /home/a1333478/bin/hsc2hs
cat utils/hsc2hs/hsc2hs.wrapper >> /home/a1333478/bin/hsc2hs
chmod +x /home/a1333478/bin/hsc2hs
/usr/bin/install -c -m 644 utils/hsc2hs/template-hsc.h /home/a1333478/share
/usr/bin/install -c -m 755 -d /home/a1333478/bin
"rm" -f /home/a1333478/bin/ghc-pkg-6.11.20090907
create () { touch $1 && chmod 755 $1 ; } && create /home/a1333478/bin/ghc-pkg-6.11.20090907
echo '#!/bin/sh' >> /home/a1333478/bin/ghc-pkg-6.11.20090907
echo 'executablename=/home/a1333478/lib/ghc-6.11.20090907/ghc-pkg' >> /home/a1333478/bin/ghc-pkg-6.11.20090907
echo 'datadir=/home/a1333478/share' >> /home/a1333478/bin/ghc-pkg-6.11.20090907
echo 'bindir=/home/a1333478/bin' >> /home/a1333478/bin/ghc-pkg-6.11.20090907
echo 'topdir=/home/a1333478/lib/ghc-6.11.20090907' >> /home/a1333478/bin/ghc-pkg-6.11.20090907
cat utils/ghc-pkg/ghc-pkg.wrapper >> /home/a1333478/bin/ghc-pkg-6.11.20090907
chmod +x /home/a1333478/bin/ghc-pkg-6.11.20090907
/usr/bin/install -c -m 755 -d /home/a1333478/bin
"rm" -f /home/a1333478/bin/ghc-pkg
ln -s ghc-pkg-6.11.20090907 /home/a1333478/bin/ghc-pkg
/usr/bin/install -c -m 755 -d /home/a1333478/bin
"rm" -f /home/a1333478/bin/runghc
create () { touch $1 && chmod 755 $1 ; } && create /home/a1333478/bin/runghc
echo '#!/bin/sh' >> /home/a1333478/bin/runghc
echo 'executablename=/home/a1333478/lib/ghc-6.11.20090907/runghc' >> /home/a1333478/bin/runghc
echo 'datadir=/home/a1333478/share' >> /home/a1333478/bin/runghc
echo 'bindir=/home/a1333478/bin' >> /home/a1333478/bin/runghc
echo 'topdir=/home/a1333478/lib/ghc-6.11.20090907' >> /home/a1333478/bin/runghc
cat utils/runghc/runghc.wrapper >> /home/a1333478/bin/runghc
chmod +x /home/a1333478/bin/runghc
"rm" -f /home/a1333478/bin/runhaskell
ln -s runghc /home/a1333478/bin/runhaskell
/usr/bin/install -c -m 755 -d /home/a1333478/bin
"rm" -f /home/a1333478/bin/ghc-6.11.20090907
create () { touch $1 && chmod 755 $1 ; } && create /home/a1333478/bin/ghc-6.11.20090907
echo '#!/bin/sh' >> /home/a1333478/bin/ghc-6.11.20090907
echo 'executablename=/home/a1333478/lib/ghc-6.11.20090907/ghc-stage2' >> /home/a1333478/bin/ghc-6.11.20090907
echo 'datadir=/home/a1333478/share' >> /home/a1333478/bin/ghc-6.11.20090907
echo 'bindir=/home/a1333478/bin' >> /home/a1333478/bin/ghc-6.11.20090907
echo 'topdir=/home/a1333478/lib/ghc-6.11.20090907' >> /home/a1333478/bin/ghc-6.11.20090907
cat ghc/ghc.wrapper >> /home/a1333478/bin/ghc-6.11.20090907
chmod +x /home/a1333478/bin/ghc-6.11.20090907
"rm" -f /home/a1333478/bin/ghc
ln -s ghc-6.11.20090907 /home/a1333478/bin/ghc
gcc -E -undef -traditional -P -DINSTALLING -DLIB_DIR='"/home/a1333478/lib/ghc-6.11.20090907"' -DINCLUDE_DIR='"/home/a1333478/lib/ghc-6.11.20090907/include"' -x c -Iincludes libffi/package.conf.in | grep -v '^#pragma GCC' | sed -e 's/""//g' -e 's/:[ ]*,/: /g' >libffi/package.conf.install
gcc -E -undef -traditional -P -DINSTALLING -DLIB_DIR='"/home/a1333478/lib/ghc-6.11.20090907"' -DINCLUDE_DIR='"/home/a1333478/lib/ghc-6.11.20090907/include"' -DPAPI_INCLUDE_DIR="" -DPAPI_LIB_DIR="" -x c -Iincludes rts/package.conf.in | grep -v '^#pragma GCC' | sed -e 's/""//g' -e 's/:[ ]*,/: /g' >rts/package.conf.install
rts/package.conf.in:4: error: rts/Config.h: No such file or directory
/usr/bin/install -c -m 755 -d /home/a1333478/lib/ghc-6.11.20090907
for i in utils/haddock/dist/build/tmp/haddock utils/hsc2hs/dist-install/build/tmp/hsc2hs utils/ghc-pkg/dist-install/build/tmp/ghc-pkg utils/runghc/dist/build/tmp/runghc ghc/stage2/build/tmp/ghc-stage2; do \
/usr/bin/install -c -m 755 $i /home/a1333478/lib/ghc-6.11.20090907; \
done
/usr/bin/install -c -m 755 -d /home/a1333478/lib/ghc-6.11.20090907
"rm" -f /home/a1333478/lib/ghc-6.11.20090907/package.conf
create () { touch $1 && chmod 644 $1 ; } && create /home/a1333478/lib/ghc-6.11.20090907/package.conf
echo "[]" >> /home/a1333478/lib/ghc-6.11.20090907/package.conf
"/home/a1333478/lib/ghc-6.11.20090907/ghc-pkg" --force --global-conf /home/a1333478/lib/ghc-6.11.20090907/package.conf update libffi/package.conf.install
Reading package info from "libffi/package.conf.install" ... done.
ffi-1.0: cannot find libHSffi.a on library path (ignoring)
Writing new package config file... done.
"/home/a1333478/lib/ghc-6.11.20090907/ghc-pkg" --force --global-conf /home/a1333478/lib/ghc-6.11.20090907/package.conf update rts/package.conf.install
Reading package info from "rts/package.conf.install" ... done.
Writing new package config file... done.
"inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/ghc-prim dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/integer-gmp dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/base dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/filepath dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/array dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/bytestring dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/containers dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/unix dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/old-locale dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/old-time dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/time dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/directory dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/process dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/random dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/extensible-exceptions dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/haskell98 dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/hpc dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/pretty dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/syb dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/template-haskell dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/base3-compat dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/Cabal dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/mtl dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/utf8-string dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/terminfo dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/haskeline dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/dph/dph-base dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/dph/dph-prim-interface dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/dph/dph-prim-seq dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/dph/dph-prim-par dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/dph/dph-seq dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && "inplace/bin/ghc-cabal" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/dph/dph-par dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && true
Installing library in /home/a1333478/lib/ghc-6.11.20090907/ghc-prim-0.1.0.0
make[1]: *** [install_packages] Error 127
make: *** [install] Error 2
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | -------------------------- |
| Version | 6.11 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | batterseapower@hotmail.com |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"\"make install\" fails with error on rts/Config.h in HEAD","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.11","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":["batterseapower@hotmail.com"],"type":"Bug","description":"Using the package from http://www.haskell.org/ghc/dist/current/dist/ghc-6.11.20090907-x86_64-unknown-linux.tar.bz2\r\n\r\nI think this is the symptom we need to find the cause of:\r\n{{{\r\nrts/package.conf.in:4: error: rts/Config.h: No such file or directory\r\n}}}\r\n\r\nFull log:\r\n\r\n{{{\r\na1333478@dev2 ~/ghc-6.11.20090907\r\n$ ./configure --prefix=$HOME\r\nchecking for path to top of build tree... /home/a1333478/ghc-6.11.20090907\r\nchecking for perl... /usr/bin/perl\r\nchecking if your perl works in shell scripts... yes\r\nchecking for a BSD-compatible install... /usr/bin/install -c\r\nchecking whether ln -s works... yes\r\nchecking for ar... /usr/bin/ar\r\nchecking whether /usr/bin/ar is GNU ar... yes\r\nchecking for ar arguments... q\r\nchecking for gcc... gcc\r\nchecking for C compiler default output file name... a.out\r\nchecking whether the C compiler works... yes\r\nchecking whether we are cross compiling... no\r\nchecking for suffix of executables... \r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether gcc accepts -g... yes\r\nchecking for gcc option to accept ISO C89... none needed\r\nchecking whether ranlib is needed... no\r\nchecking for sed... /bin/sed\r\nchecking version of gcc... 4.1.2\r\nchecking how to run the C preprocessor... gcc -E\r\nchecking for extra options to pass gcc when compiling via C... -fwrapv\r\nconfigure: creating ./config.status\r\nconfig.status: creating extra-gcc-opts\r\nconfig.status: creating mk/config.mk\r\nconfig.status: creating mk/install.mk\r\n****************************************************\r\nConfiguration done, ready to 'make install'\r\n(see README and INSTALL files for more info.)\r\n****************************************************\r\n\r\na1333478@dev2 ~/ghc-6.11.20090907\r\n$ make install\r\nmake -r --no-print-directory -f ghc.mk install BINDIST=YES NO_INCLUDE_DEPS=YES\r\n/usr/bin/install -c -m 755 -d /home/a1333478/bin\r\n\"rm\" -f /home/a1333478/bin/ghci-6.11.20090907\r\ncreate () { touch $1 && chmod 755 $1 ; } && create /home/a1333478/bin/ghci-6.11.20090907\r\necho '#!/bin/sh' >> /home/a1333478/bin/ghci-6.11.20090907\r\necho 'exec /home/a1333478/bin/ghc-6.11.20090907 --interactive ${1+\"$@\"}' >> /home/a1333478/bin/ghci-6.11.20090907\r\nchmod +x /home/a1333478/bin/ghci-6.11.20090907\r\n\"rm\" -f /home/a1333478/bin/ghci\r\nln -s ghci-6.11.20090907 /home/a1333478/bin/ghci\r\n/usr/bin/install -c -m 755 -d /home/a1333478/lib/ghc-6.11.20090907\r\n/usr/bin/install -c -m 755 -d /home/a1333478/lib/ghc-6.11.20090907/include\r\n\"cp\" rts/dist/build/libHSrts.a rts/dist/build/libHSrts_p.a rts/dist/build/libHSrts-ghc6.11.20090907.so rts/dist/build/libHSrts_l.a rts/dist/build/libHSrts_debug-ghc6.11.20090907.so rts/dist/build/libHSrts_thr-ghc6.11.20090907.so rts/dist/build/libHSrts_thr_debug-ghc6.11.20090907.so rts/dist/build/libHSrts_thr.a rts/dist/build/libHSrts_thr_debug.a rts/dist/build/libHSrts_thr_l.a rts/dist/build/libHSrts_thr_p.a rts/dist/build/libHSrtsmain.a /home/a1333478/lib/ghc-6.11.20090907\r\n/usr/bin/install -c -m 755 -d /home/a1333478/bin\r\n\"rm\" -f /home/a1333478/bin/haddock\r\ncreate () { touch $1 && chmod 755 $1 ; } && create /home/a1333478/bin/haddock\r\necho '#!/bin/sh' >> /home/a1333478/bin/haddock\r\necho 'executablename=/home/a1333478/lib/ghc-6.11.20090907/haddock' >> /home/a1333478/bin/haddock\r\necho 'datadir=/home/a1333478/share' >> /home/a1333478/bin/haddock\r\necho 'bindir=/home/a1333478/bin' >> /home/a1333478/bin/haddock\r\necho 'topdir=/home/a1333478/lib/ghc-6.11.20090907' >> /home/a1333478/bin/haddock\r\ncat utils/haddock/haddock.wrapper >> /home/a1333478/bin/haddock\r\nchmod +x /home/a1333478/bin/haddock\r\n\"rm\" -f -r /home/a1333478/share/doc//html\r\n/usr/bin/install -c -m 755 -d /home/a1333478/share/doc//html\r\n\"cp\" -R utils/haddock/html /home/a1333478/share/doc//html\r\n/usr/bin/install -c -m 755 -d /home/a1333478/bin\r\n\"rm\" -f /home/a1333478/bin/hsc2hs\r\ncreate () { touch $1 && chmod 755 $1 ; } && create /home/a1333478/bin/hsc2hs\r\necho '#!/bin/sh' >> /home/a1333478/bin/hsc2hs\r\necho 'executablename=/home/a1333478/lib/ghc-6.11.20090907/hsc2hs' >> /home/a1333478/bin/hsc2hs\r\necho 'datadir=/home/a1333478/share' >> /home/a1333478/bin/hsc2hs\r\necho 'bindir=/home/a1333478/bin' >> /home/a1333478/bin/hsc2hs\r\necho 'topdir=/home/a1333478/lib/ghc-6.11.20090907' >> /home/a1333478/bin/hsc2hs\r\ncat utils/hsc2hs/hsc2hs.wrapper >> /home/a1333478/bin/hsc2hs\r\nchmod +x /home/a1333478/bin/hsc2hs\r\n/usr/bin/install -c -m 644 utils/hsc2hs/template-hsc.h /home/a1333478/share\r\n/usr/bin/install -c -m 755 -d /home/a1333478/bin\r\n\"rm\" -f /home/a1333478/bin/ghc-pkg-6.11.20090907\r\ncreate () { touch $1 && chmod 755 $1 ; } && create /home/a1333478/bin/ghc-pkg-6.11.20090907\r\necho '#!/bin/sh' >> /home/a1333478/bin/ghc-pkg-6.11.20090907\r\necho 'executablename=/home/a1333478/lib/ghc-6.11.20090907/ghc-pkg' >> /home/a1333478/bin/ghc-pkg-6.11.20090907\r\necho 'datadir=/home/a1333478/share' >> /home/a1333478/bin/ghc-pkg-6.11.20090907\r\necho 'bindir=/home/a1333478/bin' >> /home/a1333478/bin/ghc-pkg-6.11.20090907\r\necho 'topdir=/home/a1333478/lib/ghc-6.11.20090907' >> /home/a1333478/bin/ghc-pkg-6.11.20090907\r\ncat utils/ghc-pkg/ghc-pkg.wrapper >> /home/a1333478/bin/ghc-pkg-6.11.20090907\r\nchmod +x /home/a1333478/bin/ghc-pkg-6.11.20090907\r\n/usr/bin/install -c -m 755 -d /home/a1333478/bin\r\n\"rm\" -f /home/a1333478/bin/ghc-pkg\r\nln -s ghc-pkg-6.11.20090907 /home/a1333478/bin/ghc-pkg\r\n/usr/bin/install -c -m 755 -d /home/a1333478/bin\r\n\"rm\" -f /home/a1333478/bin/runghc\r\ncreate () { touch $1 && chmod 755 $1 ; } && create /home/a1333478/bin/runghc\r\necho '#!/bin/sh' >> /home/a1333478/bin/runghc\r\necho 'executablename=/home/a1333478/lib/ghc-6.11.20090907/runghc' >> /home/a1333478/bin/runghc\r\necho 'datadir=/home/a1333478/share' >> /home/a1333478/bin/runghc\r\necho 'bindir=/home/a1333478/bin' >> /home/a1333478/bin/runghc\r\necho 'topdir=/home/a1333478/lib/ghc-6.11.20090907' >> /home/a1333478/bin/runghc\r\ncat utils/runghc/runghc.wrapper >> /home/a1333478/bin/runghc\r\nchmod +x /home/a1333478/bin/runghc\r\n\"rm\" -f /home/a1333478/bin/runhaskell\r\nln -s runghc /home/a1333478/bin/runhaskell\r\n/usr/bin/install -c -m 755 -d /home/a1333478/bin\r\n\"rm\" -f /home/a1333478/bin/ghc-6.11.20090907\r\ncreate () { touch $1 && chmod 755 $1 ; } && create /home/a1333478/bin/ghc-6.11.20090907\r\necho '#!/bin/sh' >> /home/a1333478/bin/ghc-6.11.20090907\r\necho 'executablename=/home/a1333478/lib/ghc-6.11.20090907/ghc-stage2' >> /home/a1333478/bin/ghc-6.11.20090907\r\necho 'datadir=/home/a1333478/share' >> /home/a1333478/bin/ghc-6.11.20090907\r\necho 'bindir=/home/a1333478/bin' >> /home/a1333478/bin/ghc-6.11.20090907\r\necho 'topdir=/home/a1333478/lib/ghc-6.11.20090907' >> /home/a1333478/bin/ghc-6.11.20090907\r\ncat ghc/ghc.wrapper >> /home/a1333478/bin/ghc-6.11.20090907\r\nchmod +x /home/a1333478/bin/ghc-6.11.20090907\r\n\"rm\" -f /home/a1333478/bin/ghc\r\nln -s ghc-6.11.20090907 /home/a1333478/bin/ghc\r\ngcc -E -undef -traditional -P -DINSTALLING -DLIB_DIR='\"/home/a1333478/lib/ghc-6.11.20090907\"' -DINCLUDE_DIR='\"/home/a1333478/lib/ghc-6.11.20090907/include\"' -x c -Iincludes libffi/package.conf.in | grep -v '^#pragma GCC' | sed -e 's/\"\"//g' -e 's/:[ ]*,/: /g' >libffi/package.conf.install\r\ngcc -E -undef -traditional -P -DINSTALLING -DLIB_DIR='\"/home/a1333478/lib/ghc-6.11.20090907\"' -DINCLUDE_DIR='\"/home/a1333478/lib/ghc-6.11.20090907/include\"' -DPAPI_INCLUDE_DIR=\"\" -DPAPI_LIB_DIR=\"\" -x c -Iincludes rts/package.conf.in | grep -v '^#pragma GCC' | sed -e 's/\"\"//g' -e 's/:[ ]*,/: /g' >rts/package.conf.install\r\nrts/package.conf.in:4: error: rts/Config.h: No such file or directory\r\n/usr/bin/install -c -m 755 -d /home/a1333478/lib/ghc-6.11.20090907\r\nfor i in utils/haddock/dist/build/tmp/haddock utils/hsc2hs/dist-install/build/tmp/hsc2hs utils/ghc-pkg/dist-install/build/tmp/ghc-pkg utils/runghc/dist/build/tmp/runghc ghc/stage2/build/tmp/ghc-stage2; do \\\r\n /usr/bin/install -c -m 755 $i /home/a1333478/lib/ghc-6.11.20090907; \\\r\n done\r\n/usr/bin/install -c -m 755 -d /home/a1333478/lib/ghc-6.11.20090907\r\n\"rm\" -f /home/a1333478/lib/ghc-6.11.20090907/package.conf\r\ncreate () { touch $1 && chmod 644 $1 ; } && create /home/a1333478/lib/ghc-6.11.20090907/package.conf\r\necho \"[]\" >> /home/a1333478/lib/ghc-6.11.20090907/package.conf\r\n\"/home/a1333478/lib/ghc-6.11.20090907/ghc-pkg\" --force --global-conf /home/a1333478/lib/ghc-6.11.20090907/package.conf update libffi/package.conf.install\r\nReading package info from \"libffi/package.conf.install\" ... done.\r\nffi-1.0: cannot find libHSffi.a on library path (ignoring)\r\nWriting new package config file... done.\r\n\"/home/a1333478/lib/ghc-6.11.20090907/ghc-pkg\" --force --global-conf /home/a1333478/lib/ghc-6.11.20090907/package.conf update rts/package.conf.install\r\nReading package info from \"rts/package.conf.install\" ... done.\r\nWriting new package config file... done.\r\n\"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/ghc-prim dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/integer-gmp dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/base dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/filepath dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/array dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/bytestring dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/containers dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/unix dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/old-locale dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/old-time dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/time dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/directory dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/process dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/random dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/extensible-exceptions dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/haskell98 dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/hpc dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/pretty dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/syb dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/template-haskell dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/base3-compat dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/Cabal dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/mtl dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/utf8-string dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/terminfo dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/haskeline dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/dph/dph-base dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/dph/dph-prim-interface dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/dph/dph-prim-seq dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/dph/dph-prim-par dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/dph/dph-seq dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && \"inplace/bin/ghc-cabal\" install /home/a1333478/lib/ghc-6.11.20090907/ghc-stage2 /home/a1333478/lib/ghc-6.11.20090907/ghc-pkg /home/a1333478/lib/ghc-6.11.20090907 libraries/dph/dph-par dist-install '' '/home/a1333478' '/home/a1333478/lib/ghc-6.11.20090907' '/home/a1333478/share/doc//html/libraries' && true\r\nInstalling library in /home/a1333478/lib/ghc-6.11.20090907/ghc-prim-0.1.0.0\r\nmake[1]: *** [install_packages] Error 127\r\nmake: *** [install] Error 2\r\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1Ian Lynagh <igloo@earth.li>Ian Lynagh <igloo@earth.li>https://gitlab.haskell.org/ghc/ghc/-/issues/3486Data.ByteString.elemIndices causes SEGV2019-07-07T19:03:39ZnwnData.ByteString.elemIndices causes SEGVThe elemIndices for strict ByteString causes SEGV in some situation.
```
import Data.Int
import qualified Data.ByteString as S
main = do
cs <- S.getContents
let ps = S.elemIndices 10 cs
putStrLn $ "S.length cs = " ++ show (S.length ...The elemIndices for strict ByteString causes SEGV in some situation.
```
import Data.Int
import qualified Data.ByteString as S
main = do
cs <- S.getContents
let ps = S.elemIndices 10 cs
putStrLn $ "S.length cs = " ++ show (S.length cs)
putStrLn $ "length ps = " ++ show (length ps)
```
If above program gets some large input, it crashes.
```
$ ghc --make ei
[1 of 1] Compiling Main ( ei.hs, ei.o )
Linking ei ...
$ yes | head -10000 | ./ei
S.length cs = 20000
Segmentation fault
```
By the way, there might be a border of SEGV or not.
```
$ yes | head -4096 | ./ei
S.length cs = 8192
Segmentation fault
$ yes | head -4095 | ./ei
S.length cs = 8190
length ps = 4095
```
And this script works fine.
```
import qualified Data.ByteString as S
import qualified Data.ByteString.Lazy as L
main = do
let cs = S.pack . take 8192 . cycle $ [48,10]
ps = S.elemIndices 10 cs
putStrLn $ "length cs = " ++ show (S.length cs)
putStrLn $ "length ps = " ++ show (length ps)
```
I think there is causes about the bug in S.getContents or S.elemIndices or both. But I cannot figure out it.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | -------------- |
| Version | 6.10.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | libraries/base |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Data.ByteString.elemIndices causes SEGV","status":"New","operating_system":"","component":"libraries/base","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.10.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"The elemIndices for strict ByteString causes SEGV in some situation.\r\n\r\n{{{\r\nimport Data.Int\r\nimport qualified Data.ByteString as S\r\n\r\nmain = do\r\n cs <- S.getContents\r\n let ps = S.elemIndices 10 cs\r\n putStrLn $ \"S.length cs = \" ++ show (S.length cs)\r\n putStrLn $ \"length ps = \" ++ show (length ps)\r\n}}}\r\n\r\nIf above program gets some large input, it crashes.\r\n\r\n{{{\r\n$ ghc --make ei\r\n[1 of 1] Compiling Main ( ei.hs, ei.o )\r\nLinking ei ...\r\n$ yes | head -10000 | ./ei\r\nS.length cs = 20000\r\nSegmentation fault\r\n}}}\r\n\r\nBy the way, there might be a border of SEGV or not.\r\n\r\n{{{\r\n$ yes | head -4096 | ./ei\r\nS.length cs = 8192\r\nSegmentation fault\r\n$ yes | head -4095 | ./ei\r\nS.length cs = 8190\r\nlength ps = 4095\r\n}}}\r\n\r\nAnd this script works fine.\r\n\r\n{{{\r\nimport qualified Data.ByteString as S\r\nimport qualified Data.ByteString.Lazy as L\r\n\r\nmain = do\r\n let cs = S.pack . take 8192 . cycle $ [48,10]\r\n ps = S.elemIndices 10 cs\r\n putStrLn $ \"length cs = \" ++ show (S.length cs)\r\n putStrLn $ \"length ps = \" ++ show (length ps)\r\n}}}\r\n\r\nI think there is causes about the bug in S.getContents or S.elemIndices or both. But I cannot figure out it.","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1duncanduncanhttps://gitlab.haskell.org/ghc/ghc/-/issues/3481Nightly snapshot fails to install2019-07-07T19:03:40ZdonsNightly snapshot fails to installLast night's x86_64-linux nightly snapshot fails to install with:
```
gcc -E -I/usr/local/include -I/home/dons/include -undef -traditional -P -DINSTALLING -DLIB_DIR='"/home/dons/lib/ghc-6.11.20090901"' -DINCLUDE_DIR='"/home/dons/lib/ghc...Last night's x86_64-linux nightly snapshot fails to install with:
```
gcc -E -I/usr/local/include -I/home/dons/include -undef -traditional -P -DINSTALLING -DLIB_DIR='"/home/dons/lib/ghc-6.11.20090901"' -DINCLUDE_DIR='"/home/dons/lib/ghc-6.11.20090901/include"' -x c -Iincludes libffi/package.conf.in | grep -v '^#pragma GCC' | sed -e 's/""//g' -e 's/:[ ]*,/: /g' >libffi/package.conf.install
gcc -E -I/usr/local/include -I/home/dons/include -undef -traditional -P -DINSTALLING -DLIB_DIR='"/home/dons/lib/ghc-6.11.20090901"' -DINCLUDE_DIR='"/home/dons/lib/ghc-6.11.20090901/include"' -DPAPI_INCLUDE_DIR="" -DPAPI_LIB_DIR="" -x c -Iincludes rts/package.conf.in | grep -v '^#pragma GCC' | sed -e 's/""//g' -e 's/:[ ]*,/: /g' >rts/package.conf.install
rts/package.conf.in:4: error: rts/Config.h: No such file or directory
make[1]: *** No rule to make target `utils/haddock/dist/build/tmp/haddock', needed by `install_libexecs'. Stop.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 6.11 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Nightly snapshot fails to install","status":"New","operating_system":"","component":"Build System","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.11","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"Last night's x86_64-linux nightly snapshot fails to install with:\r\n\r\n{{{\r\ngcc -E -I/usr/local/include -I/home/dons/include -undef -traditional -P -DINSTALLING -DLIB_DIR='\"/home/dons/lib/ghc-6.11.20090901\"' -DINCLUDE_DIR='\"/home/dons/lib/ghc-6.11.20090901/include\"' -x c -Iincludes libffi/package.conf.in | grep -v '^#pragma GCC' | sed -e 's/\"\"//g' -e 's/:[ \t]*,/: /g' >libffi/package.conf.install\r\ngcc -E -I/usr/local/include -I/home/dons/include -undef -traditional -P -DINSTALLING -DLIB_DIR='\"/home/dons/lib/ghc-6.11.20090901\"' -DINCLUDE_DIR='\"/home/dons/lib/ghc-6.11.20090901/include\"' -DPAPI_INCLUDE_DIR=\"\" -DPAPI_LIB_DIR=\"\" -x c -Iincludes rts/package.conf.in | grep -v '^#pragma GCC' | sed -e 's/\"\"//g' -e 's/:[ \t]*,/: /g' >rts/package.conf.install\r\nrts/package.conf.in:4: error: rts/Config.h: No such file or directory\r\nmake[1]: *** No rule to make target `utils/haddock/dist/build/tmp/haddock', needed by `install_libexecs'. Stop.\r\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1Ian Lynagh <igloo@earth.li>Ian Lynagh <igloo@earth.li>https://gitlab.haskell.org/ghc/ghc/-/issues/3475bump base version to 5, add base4-compat2019-07-07T19:03:42ZSimon Marlowbump base version to 5, add base4-compat<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 6.10.4 |
| Type | Task |
| TypeOfFailure |...<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 6.10.4 |
| Type | Task |
| TypeOfFailure | OtherFailure |
| Priority | high |
| Resolution | Unresolved |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"bump base version to 5, add base4-compat","status":"New","operating_system":"","component":"Build System","related":[],"milestone":"6.12.1","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.10.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Task","description":"","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1https://gitlab.haskell.org/ghc/ghc/-/issues/3469Error open file if name contain national symbol2019-07-07T19:03:44ZTonalError open file if name contain national symbolOs Windows Vista Home Basic Ru + sp2
Steps
1. Haskell code (bug.hs in utf-8):
```
main = do
con <- readFile "фыва.txt"
print con
```
1. Console session:
```
C:\Lang\test>ghc -O3 --make bug.hs
C:\Lang\test>echo asdf>фыва.txt
C:\...Os Windows Vista Home Basic Ru + sp2
Steps
1. Haskell code (bug.hs in utf-8):
```
main = do
con <- readFile "фыва.txt"
print con
```
1. Console session:
```
C:\Lang\test>ghc -O3 --make bug.hs
C:\Lang\test>echo asdf>фыва.txt
C:\Lang\test>bug.exe
bug.exe: DK20.txt: openFile: does not exist (No such file or directory)
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 6.10.4 |
| 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":"Error open file if name contain national symbol","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.10.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"Os Windows Vista Home Basic Ru + sp2\r\n\r\nSteps\r\n 1. Haskell code (bug.hs in utf-8): \r\n{{{\r\nmain = do\r\n con <- readFile \"фыва.txt\"\r\n print con\r\n}}}\r\n\r\n 2. Console session:\r\n{{{\r\nC:\\Lang\\test>ghc -O3 --make bug.hs\r\nC:\\Lang\\test>echo asdf>фыва.txt\r\nC:\\Lang\\test>bug.exe\r\nbug.exe: DK20.txt: openFile: does not exist (No such file or directory)\r\n}}}\r\n","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1https://gitlab.haskell.org/ghc/ghc/-/issues/3461loading package ghc in GHCI; unknown symbol `keepCAFs'2019-07-07T19:03:46ZSimon Marlowloading package ghc in GHCI; unknown symbol `keepCAFs'We can't currently load `-package ghc` in GHCi
```
ghc-stage2: /64playpen/simonmar/nightly/HEAD-cam-04-unx/x86_64-unknown-linux/compiler/stage3/build/HSghc-6.11.20090824.o: unknown symbol `keepCAFs'
```
<details><summary>Trac metadata<...We can't currently load `-package ghc` in GHCi
```
ghc-stage2: /64playpen/simonmar/nightly/HEAD-cam-04-unx/x86_64-unknown-linux/compiler/stage3/build/HSghc-6.11.20090824.o: unknown symbol `keepCAFs'
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 6.11 |
| 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":"loading package ghc in GHCI; unknown symbol `keepCAFs'","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"6.12.1","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.11","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"We can't currently load `-package ghc` in GHCi\r\n\r\n{{{\r\nghc-stage2: /64playpen/simonmar/nightly/HEAD-cam-04-unx/x86_64-unknown-linux/compiler/stage3/build/HSghc-6.11.20090824.o: unknown symbol `keepCAFs'\r\n}}}\r\n","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1https://gitlab.haskell.org/ghc/ghc/-/issues/3451HsFFI.h import doesn't work as installed2019-07-07T19:03:51ZguestHsFFI.h import doesn't work as installedAfter building GHC head I tried to install the 'network' package (version in darcs head).
I got compile errors from including HsFFI.h trying to include 'stg/Types.h' which wasn't installed by the installer (that is, "make install").
I ...After building GHC head I tried to install the 'network' package (version in darcs head).
I got compile errors from including HsFFI.h trying to include 'stg/Types.h' which wasn't installed by the installer (that is, "make install").
I then copied the 'includes/stg' directory from the build directory over into the directory where GHC had been installed, and everything started working.
This was running on Linux, amd64.
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------------ |
| Version | 6.11 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | aslatter@gmail.com |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"HsFFI.h import doesn't work as installed","status":"New","operating_system":"","component":"Build System","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.11","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":["aslatter@gmail.com"],"type":"Bug","description":"After building GHC head I tried to install the 'network' package (version in darcs head).\r\n\r\nI got compile errors from including HsFFI.h trying to include 'stg/Types.h' which wasn't installed by the installer (that is, \"make install\").\r\n\r\nI then copied the 'includes/stg' directory from the build directory over into the directory where GHC had been installed, and everything started working.\r\n\r\nThis was running on Linux, amd64.","type_of_failure":"OtherFailure","blocking":[]} -->6.12.1Simon MarlowSimon Marlow