GHC issueshttps://gitlab.haskell.org/ghc/ghc/-/issues2019-07-07T19:18:32Zhttps://gitlab.haskell.org/ghc/ghc/-/issues/311gmp's memory management2019-07-07T19:18:32Zas49gmp's memory managementI assume ghc allocates the lumps of gmp integers still
on ghc's heap, making it impossible (or very awkward)
to interface to C libraries that use gmp themselves. Is
there a chance that you could use the default memory
allocator for lumps...I assume ghc allocates the lumps of gmp integers still
on ghc's heap, making it impossible (or very awkward)
to interface to C libraries that use gmp themselves. Is
there a chance that you could use the default memory
allocator for lumps starting from ghc 6.4? That would
make my life much easier.
Thanks,
Axel.6.12 branchhttps://gitlab.haskell.org/ghc/ghc/-/issues/312Poor error message for kind error2019-07-07T19:18:31ZSimon Peyton JonesPoor error message for kind error```
A kind error can lead to the following poor error msg:
tcfail132.hs:30:51:
Kind error: Expecting kind `k_a18s -> k_a18w ->
k_a18A -> *',
but `DUnit t' has kind `k_a18s ->
k_a18w -> *'
In the type synonym declaration for ...```
A kind error can lead to the following poor error msg:
tcfail132.hs:30:51:
Kind error: Expecting kind `k_a18s -> k_a18w ->
k_a18A -> *',
but `DUnit t' has kind `k_a18s ->
k_a18w -> *'
In the type synonym declaration for `LiftObject'
The source program is
newtype Object f' f t o1 o2 = Object (f' t o1 -> f t o2)
type DUnit t o1 o2 = ()
type T f g t o1 o2 = Either (f t o1 o2) (g t o1 o2)
type LiftObject t f' f = T (Object f' f t) (DUnit t)
```Simon Peyton JonesSimon Peyton Joneshttps://gitlab.haskell.org/ghc/ghc/-/issues/313allow hierarchical module names with --make2019-07-07T19:18:31Znobodyallow hierarchical module names with --make```
It would be convenient (and consistent) to allow the
use of hierarchical module names with --make, so that
something like:
ghc -isource_directory --make app.Main -o app
would find the source_directory/app/Main.hs module to
begin it...```
It would be convenient (and consistent) to allow the
use of hierarchical module names with --make, so that
something like:
ghc -isource_directory --make app.Main -o app
would find the source_directory/app/Main.hs module to
begin its processing.
- Jeff Newbern
jnewbern@yahoo.com
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ---------------- |
| Version | None |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedNoReason |
| Component | None |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"allow hierarchical module names with --make","status":"New","operating_system":"","component":"None","related":[],"milestone":"","resolution":"ResolvedNoReason","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"None","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"FeatureRequest","description":"{{{\nIt would be convenient (and consistent) to allow the\nuse of hierarchical module names with --make, so that\nsomething like:\n\nghc -isource_directory --make app.Main -o app\n\nwould find the source_directory/app/Main.hs module to\nbegin its processing.\n\n- Jeff Newbern\njnewbern@yahoo.com\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/314#line pragmas not respected inside nested comments2019-07-07T19:18:30Znobody#line pragmas not respected inside nested comments```
If one tries to compile a .hs file, with the -cpp
option and the file contains
C-style comments (/* comment */), then the linenumbers
GHC reports
are wrong.
Minimal file exhibiting the error:
---
{-
/*
* Copyright (c) 2005 Jesper...```
If one tries to compile a .hs file, with the -cpp
option and the file contains
C-style comments (/* comment */), then the linenumbers
GHC reports
are wrong.
Minimal file exhibiting the error:
---
{-
/*
* Copyright (c) 2005 Jesper Louis Andersen
<jlouis@mongers.org>
*
* Permission to use, copy, modify, and distribute this
software for any
* purpose with or without fee is hereby granted,
provided that the above
* copyright notice and this permission notice appear
in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR
DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
*/
-}
c = 3 * "string"
main = putStrLn $ show c
----
; ghc -cpp tmp.hs
tmp.hs:6:
No instance for (Num [Char])
arising from use of `*' at tmp.hs:6
In the definition of `c': c = 3 * "string"
Which is clearly wrong, since ``c'' is not defined on
line 6.
Note I am not sure wether it is in the parser, or it is
rather in compilation
chain where cpp gets invoked one has to look for the
error. I have filed
it as a parser-bug nonetheless.
Fix: cpp(1) seems to output comments in the style
# xx "filename"
where ``xx'' is a number stating the linenumber in the
original file.
Keeping track of this probably fixes the bug.
CPP version: GNU CPP from GCC 3.3.5
Operating System: OpenBSD 3.6-current (GENERIC) #1: Sun
Feb 20 10:23:54 CET 2005
Submitter: Jesper Louis Andersen <jlouis@mongers.org>
```8.8.1https://gitlab.haskell.org/ghc/ghc/-/issues/315Arbitrary function sections2019-07-07T19:18:30Za0sArbitrary function sections```
For operators we have the following shorthand:
op :: a -> b -> c
(`op` y) === \x -> x `op` y
(x `op`) === \y -> x `op` y
It would be nice to have a similar facility for
functions, e.g.:
f :: a -> b -> c -> d -> e
f _ y _ t === \x ...```
For operators we have the following shorthand:
op :: a -> b -> c
(`op` y) === \x -> x `op` y
(x `op`) === \y -> x `op` y
It would be nice to have a similar facility for
functions, e.g.:
f :: a -> b -> c -> d -> e
f _ y _ t === \x z -> f x y z t
f x _ z _ === \y t -> f x y z t
f x _ z === \y -> f x y z === \y t -> f x y z t
Because "_" is currently not allowed as an identifier
in contexts where this facility could possibly be in
effect, it seems safe to use it to indicate omitted
parameters in function application.
```nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/316GHCi: No instance for (Show (IO ()))2019-07-07T19:18:30ZSimon MarlowGHCi: No instance for (Show (IO ()))```
From Wolfgang Thaller:
This behaviour (from today's stable branch) is slightly
confusing:
> Prelude> print id
>
> Top level:
> No instance for (Show (IO ()))
> arising from use of `print' at Top level
> Probable fix: ...```
From Wolfgang Thaller:
This behaviour (from today's stable branch) is slightly
confusing:
> Prelude> print id
>
> Top level:
> No instance for (Show (IO ()))
> arising from use of `print' at Top level
> Probable fix: add an instance declaration for
(Show (IO ()))
> In a 'do' expression: print it
>
> <interactive>:1:0:
> No instance for (Show (a -> a))
> arising from use of `print' at <interactive>:1:0-4
> Probable fix: add an instance declaration for
(Show (a -> a))
> In the definition of `it': it = print id
The second message makes sense, but the first one
doesn't. Also, what's
the difference between "Top level" and "<interactive>:1:0"?
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | low |
| Resolution | ResolvedFixed |
| Component | GHCi |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"GHCi: No instance for (Show (IO ()))","status":"New","operating_system":"","component":"GHCi","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nFrom Wolfgang Thaller:\n\nThis behaviour (from today's stable branch) is slightly\nconfusing:\n\n> Prelude> print id\n>\n> Top level:\n> No instance for (Show (IO ()))\n> arising from use of `print' at Top level\n> Probable fix: add an instance declaration for\n(Show (IO ()))\n> In a 'do' expression: print it\n>\n> <interactive>:1:0:\n> No instance for (Show (a -> a))\n> arising from use of `print' at <interactive>:1:0-4\n> Probable fix: add an instance declaration for\n(Show (a -> a))\n> In the definition of `it': it = print id\n\nThe second message makes sense, but the first one\ndoesn't. Also, what's \nthe difference between \"Top level\" and \"<interactive>:1:0\"?\n\n\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/317Simplifier doesn't preserve bottoms sometimes2019-07-07T19:18:29ZSimon MarlowSimplifier doesn't preserve bottoms sometimes```
Here's a test due to Iavor Diatchki
[iavor.diatchki@gmail.com]:
>> test2 :: Bool
>> test2 = stops (bot ())
>> where
>> stops :: Int# -> Bool
>> stops _ = True
ghc 6.4 gives the value True for test2.
``````
Here's a test due to Iavor Diatchki
[iavor.diatchki@gmail.com]:
>> test2 :: Bool
>> test2 = stops (bot ())
>> where
>> stops :: Int# -> Bool
>> stops _ = True
ghc 6.4 gives the value True for test2.
```https://gitlab.haskell.org/ghc/ghc/-/issues/318GHCi support on x86_642019-07-07T19:18:29ZnobodyGHCi support on x86_64```
I just installed the 64bit version of ghc on an athlon
64. ghc does work and produces correct 64bit code, but
ghci fails to start.
Here is the complete output:
[phil@athlon64 ~]$ ghci
___ ___ _
/ _ \ /\ /\/ __(_)
/ ...```
I just installed the 64bit version of ghc on an athlon
64. ghc does work and produces correct 64bit code, but
ghci fails to start.
Here is the complete output:
[phil@athlon64 ~]$ ghci
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version
6.2.2, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package base ... /usr/lib64/ghc-6.2.2/HSbase.o:
unknown architecture
ghc-6.2.2: panic! (the `impossible' happened, GHC
version 6.2.2):
loadObj: failed
Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.
I'm using Fedora Core 3 and installed ghc using yum.
If you have any questions, contact me:
philipp.classen[AT]gmx.net
Thanks,
Philipp
```nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/319Scoping error in lambda expressions in arrow code2019-07-07T19:18:29ZnobodyScoping error in lambda expressions in arrow code```
GHC 6.2.2 with the -farrows switch erroneously reports
errors when lambda expressions appear in
commands. The error looks like the following:
Command-bound variable `y' is not in scope here
Reason: it is used in th...```
GHC 6.2.2 with the -farrows switch erroneously reports
errors when lambda expressions appear in
commands. The error looks like the following:
Command-bound variable `y' is not in scope here
Reason: it is used in the left argument of (-<)
This will produce the error:
foo = proc x -> arr (\y -> y-1) -< x
This will not produce the error:
bar = (\y -> y-1)
foo = proc x -> arr bar -< x
Email: vnkwjyc02@sneakemail.com
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.2.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Scoping error in lambda expressions in arrow code","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.2.2","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nGHC 6.2.2 with the -farrows switch erroneously reports \nerrors when lambda expressions appear in \ncommands. The error looks like the following: \n \nCommand-bound variable `y' is not in scope here \n Reason: it is used in the left argument of (-<) \n \nThis will produce the error: \nfoo = proc x -> arr (\\y -> y-1) -< x \n \nThis will not produce the error: \nbar = (\\y -> y-1) \nfoo = proc x -> arr bar -< x \n \nEmail: vnkwjyc02@sneakemail.com \n \n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/320GHCi - the "impossible" happens when loading Win32 package2019-07-07T19:18:29ZnobodyGHCi - the "impossible" happens when loading Win32 package```
This happens with vanilla GHC 6.4 on Windows XP, on 2
out of 2 machines I tried.
C:\ghc\ghc-6.4\bin>ghci -package Win32
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version
6.4, for Haskell ...```
This happens with vanilla GHC 6.4 on Windows XP, on 2
out of 2 machines I tried.
C:\ghc\ghc-6.4\bin>ghci -package Win32
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version
6.4, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package base-1.0 ... linking ... done.
Loading package Win32-1.0 ... ghc.exe: Not x86 PEi386
ghc.exe: panic! (the `impossible' happened, GHC version
6.4):
loadObj: failed
Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.
- or -
C:\ghc\ghc-6.4\bin>ghci
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version
6.4, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package base-1.0 ... linking ... done.
Prelude> System.Win32.DLL.loadLibrary "user32"
Loading package Win32-1.0 ... <interactive>: Not x86 PEi386
ghc.exe: panic! (the `impossible' happened, GHC version
6.4):
loadObj: failed
Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | hslibs/win32 |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"GHCi - the \"impossible\" happens when loading Win32 package","status":"New","operating_system":"","component":"hslibs/win32","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"None","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nThis happens with vanilla GHC 6.4 on Windows XP, on 2\nout of 2 machines I tried.\n\nC:\\ghc\\ghc-6.4\\bin>ghci -package Win32\n ___ ___ _\n / _ \\ /\\ /\\/ __(_)\n / /_\\// /_/ / / | | GHC Interactive, version\n6.4, for Haskell 98.\n/ /_\\\\/ __ / /___| | http://www.haskell.org/ghc/\n\\____/\\/ /_/\\____/|_| Type :? for help.\n\nLoading package base-1.0 ... linking ... done.\nLoading package Win32-1.0 ... ghc.exe: Not x86 PEi386\nghc.exe: panic! (the `impossible' happened, GHC version\n6.4):\n loadObj: failed\n\nPlease report it as a compiler bug to\nglasgow-haskell-bugs@haskell.org,\nor http://sourceforge.net/projects/ghc/.\n\n- or -\n\nC:\\ghc\\ghc-6.4\\bin>ghci\n ___ ___ _\n / _ \\ /\\ /\\/ __(_)\n / /_\\// /_/ / / | | GHC Interactive, version\n6.4, for Haskell 98.\n/ /_\\\\/ __ / /___| | http://www.haskell.org/ghc/\n\\____/\\/ /_/\\____/|_| Type :? for help.\n\nLoading package base-1.0 ... linking ... done.\nPrelude> System.Win32.DLL.loadLibrary \"user32\"\nLoading package Win32-1.0 ... <interactive>: Not x86 PEi386\nghc.exe: panic! (the `impossible' happened, GHC version\n6.4):\n loadObj: failed\n\nPlease report it as a compiler bug to\nglasgow-haskell-bugs@haskell.org,\nor http://sourceforge.net/projects/ghc/.\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/321"ghc -M" complains about multiply-defined "Main" modules2019-07-07T19:18:29Zashley-y"ghc -M" complains about multiply-defined "Main" modules```
I'm trying to create dependencies for my Makefile using "ghc -M".
The files I give it include several main program modules. GHC
complains:
module `Main' is defined in multiple files: Investigation/
Double_TEST.hs
...```
I'm trying to create dependencies for my Makefile using "ghc -M".
The files I give it include several main program modules. GHC
complains:
module `Main' is defined in multiple files: Investigation/
Double_TEST.hs
Investigation/ThrowCatch_TEST.hs
Org/Org/Semantic/HBase/Basic/
Integer_TEST.hs
etc.
This problem didn't happen with 6.2.2.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"\"ghc -M\" complains about multiply-defined \"Main\" modules","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"simonpj"},"version":"6.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nI'm trying to create dependencies for my Makefile using \"ghc -M\". \nThe files I give it include several main program modules. GHC \ncomplains:\n\nmodule `Main' is defined in multiple files: Investigation/\nDouble_TEST.hs\n Investigation/ThrowCatch_TEST.hs\n Org/Org/Semantic/HBase/Basic/\nInteger_TEST.hs\netc.\n\nThis problem didn't happen with 6.2.2.\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->Simon Peyton JonesSimon Peyton Joneshttps://gitlab.haskell.org/ghc/ghc/-/issues/323Exponential behaviour with type synonyms2019-07-07T19:18:28ZSimon Peyton JonesExponential behaviour with type synonyms```
You're quite right. GHC has a simple but non-
performant representation of type synonyms in types, so
as to be able to generate good error messages, In
particular, the type
S t
where S is a type synonym defined by 'type S a = ...```
You're quite right. GHC has a simple but non-
performant representation of type synonyms in types, so
as to be able to generate good error messages, In
particular, the type
S t
where S is a type synonym defined by 'type S a = s', is
represented as
SynNote (S t) (s [t/a])
That is, (S t) is represented by *both* its un-expanded
and expanded form.
The SynNote is ignored by unification, but the un-
expanded form is useful for error messages.
Unfortunately, t is duplicated, as you can see, and that
leads to the behaviour you describe.
I don't see myself fixing this soon, at least partly
because I can't see an obvious way to fix it that doesn't
lose error message behaviour.
I'm going to open a SourceForge bug for it. If anyone
has good ideas, let me know.
Simon
| -----Original Message-----
| From: glasgow-haskell-bugs-bounces@haskell.org
[mailto:glasgow-haskell-bugs-
| bounces@haskell.org] On Behalf Of Iavor Diatchki
| Sent: 17 February 2005 01:27
| To: glasgow-haskell-bugs@haskell.org
| Subject: 'type' declarations
|
| hello,
| ghc seems to be having trouble with 'type' declarations.
| while compiling (i guess kind checking is the correct
word here)
| the following program for a very long time, ghc (6.2)
runs out of 300Mb of heap.
|
| module Test where
|
| type S = Maybe
| type S2 n = S (S n)
| type S4 n = S2 (S2 n)
| type S8 n = S4 (S4 n)
| type S16 n = S8 (S8 n)
| type S32 n = S16 (S16 n)
|
| type N64 n = S32 (S32 n)
|
| type N64' =
| S ( S ( S ( S ( S ( S ( S ( S (
| S ( S ( S ( S ( S ( S ( S ( S (
| S ( S ( S ( S ( S ( S ( S ( S (
| S ( S ( S ( S ( S ( S ( S ( S (
| S ( S ( S ( S ( S ( S ( S ( S (
| S ( S ( S ( S ( S ( S ( S ( S (
| S ( S ( S ( S ( S ( S ( S ( S (
| S ( S ( S ( S ( S ( S ( S ( S (
| Int
| ))))))))
| ))))))))
| ))))))))
| ))))))))
| ))))))))
| ))))))))
| ))))))))
| ))))))))
|
| if i remove the N64 definition things work. i guess
something
| exponential is happening
| (substitution?).
|
| -iavor
```Simon Peyton JonesSimon Peyton Joneshttps://gitlab.haskell.org/ghc/ghc/-/issues/324Over-zealous dup-import warning2019-07-07T19:18:28ZSimon Peyton JonesOver-zealous dup-import warning```
Pointed out by John Meacham [john@repetae.net]
In 6.4 the duplicate import warning seems to be
triggered overzealously, even
when one import is qualified and the other isn't.
import qualified Data.Map
import Data.Map(Map)
foo :...```
Pointed out by John Meacham [john@repetae.net]
In 6.4 the duplicate import warning seems to be
triggered overzealously, even
when one import is qualified and the other isn't.
import qualified Data.Map
import Data.Map(Map)
foo :: Map Int Int
foo = Data.Map.empty
main = do
print foo
produces:
Foo.hs:1:0:
Warning: `Map' is imported more than once:
imported from Data.Map at Foo.hs:3:16-18
imported from Data.Map at Foo.hs:2:0-24
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | low |
| Resolution | ResolvedFixed |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Over-zealous dup-import warning","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"simonpj"},"version":"None","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nPointed out by John Meacham [john@repetae.net]\n\nIn 6.4 the duplicate import warning seems to be \ntriggered overzealously, even\nwhen one import is qualified and the other isn't.\n\n\nimport qualified Data.Map \nimport Data.Map(Map)\n\nfoo :: Map Int Int\nfoo = Data.Map.empty\n \nmain = do\n print foo\n \nproduces:\n Foo.hs:1:0:\n Warning: `Map' is imported more than once:\n imported from Data.Map at Foo.hs:3:16-18\n imported from Data.Map at Foo.hs:2:0-24\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->Simon Peyton JonesSimon Peyton Joneshttps://gitlab.haskell.org/ghc/ghc/-/issues/325Profiling broken under windows for ghc-6.4?2019-07-07T19:18:28ZnobodyProfiling broken under windows for ghc-6.4?```
If I compile a program with -prof -auto-all every start of
the program results in an popup that informs me of a
security break and program termination.
My email is andreas-haskell@gmx.net.
Attached is a copy of what Dr. Watson re...```
If I compile a program with -prof -auto-all every start of
the program results in an popup that informs me of a
security break and program termination.
My email is andreas-haskell@gmx.net.
Attached is a copy of what Dr. Watson records.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Profiling |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Profiling broken under windows for ghc-6.4?","status":"New","operating_system":"","component":"Profiling","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"None","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nIf I compile a program with -prof -auto-all every start of \nthe program results in an popup that informs me of a \nsecurity break and program termination.\n\nMy email is andreas-haskell@gmx.net.\n\nAttached is a copy of what Dr. Watson records.\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/326internal error: scavenge_mark_stack:2019-07-07T19:18:28Zggdinternal error: scavenge_mark_stack:```
Hi!
I 'patched' ghc-6.4 source with the latest Adjustor.c
on the hope to get FFI support under amd64.
However, attempt to compile gtk2hs gives:
[...]
make[2]: Leaving directory
`/var/tmp/portage/gtk2hs...```
Hi!
I 'patched' ghc-6.4 source with the latest Adjustor.c
on the hope to get FFI support under amd64.
However, attempt to compile gtk2hs gives:
[...]
make[2]: Leaving directory
`/var/tmp/portage/gtk2hs-0.9.7/work/gtk2hs-0.9.7'
if test -f glib/glib.precomp; then :; else make
glib/glib.precomp; fi;
make[2]: Entering directory
`/var/tmp/portage/gtk2hs-0.9.7/work/gtk2hs-0.9.7'
/var/tmp/portage/gtk2hs-0.9.7/work/gtk2hs-0.9.7/tools/c2hs/c2hsLocal
+RTS -H300m -M350m -RTS
-C-I/usr/include/glib-2.0 -C-I/usr/lib/glib-2.0/include
--cppopts='-include "config.h"'
--precomp=glib/glib.precomp glib-object.h
elapsed time: 0.00 (start)
elapsed time: 0.00 (about to parse headder)
elapsed time: 3.11 (about to serialise header)
c2hsLocal: internal error: scavenge_mark_stack:
unimplemented/strange closure type -1780819864
@ 0x2a95dad118
Please report this as a bug to
glasgow-haskell-bugs@haskell.org,
or http://www.sourceforge.net/projects/ghc/
make[2]: *** [glib/glib.precomp] Error 254
make[2]: Leaving directory
`/var/tmp/portage/gtk2hs-0.9.7/work/gtk2hs-0.9.7'
make[1]: *** [glib/System/Glib/Types.hs] Error 2
make[1]: Leaving directory
`/var/tmp/portage/gtk2hs-0.9.7/work/gtk2hs-0.9.7'
ghc-6.4: can't find file `glib/System/Glib/Types.hs'
make: *** [glib/libHSglib_a.deps] Error 1
make: *** Deleting file `glib/libHSglib_a.deps'
Sincerely,
Gour
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ----------------- |
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedDuplicate |
| Component | None |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":" internal error: scavenge_mark_stack: ","status":"New","operating_system":"","component":"None","related":[],"milestone":"","resolution":"ResolvedDuplicate","owner":{"tag":"OwnedBy","contents":"simonmar"},"version":"None","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nHi! \n \nI 'patched' ghc-6.4 source with the latest Adjustor.c \non the hope to get FFI support under amd64. \n \nHowever, attempt to compile gtk2hs gives: \n \n[...] \n \nmake[2]: Leaving directory \n`/var/tmp/portage/gtk2hs-0.9.7/work/gtk2hs-0.9.7' \nif test -f glib/glib.precomp; then :; else make \nglib/glib.precomp; fi; \nmake[2]: Entering directory \n`/var/tmp/portage/gtk2hs-0.9.7/work/gtk2hs-0.9.7' \n/var/tmp/portage/gtk2hs-0.9.7/work/gtk2hs-0.9.7/tools/c2hs/c2hsLocal \n+RTS -H300m -M350m -RTS \n-C-I/usr/include/glib-2.0 -C-I/usr/lib/glib-2.0/include \n--cppopts='-include \"config.h\"' \n--precomp=glib/glib.precomp glib-object.h \nelapsed time: 0.00 (start) \nelapsed time: 0.00 (about to parse headder) \nelapsed time: 3.11 (about to serialise header) \nc2hsLocal: internal error: scavenge_mark_stack: \nunimplemented/strange closure type -1780819864 \n@ 0x2a95dad118 \n Please report this as a bug to \nglasgow-haskell-bugs@haskell.org, \n or http://www.sourceforge.net/projects/ghc/ \nmake[2]: *** [glib/glib.precomp] Error 254 \nmake[2]: Leaving directory \n`/var/tmp/portage/gtk2hs-0.9.7/work/gtk2hs-0.9.7' \nmake[1]: *** [glib/System/Glib/Types.hs] Error 2 \nmake[1]: Leaving directory \n`/var/tmp/portage/gtk2hs-0.9.7/work/gtk2hs-0.9.7' \nghc-6.4: can't find file `glib/System/Glib/Types.hs' \nmake: *** [glib/libHSglib_a.deps] Error 1 \nmake: *** Deleting file `glib/libHSglib_a.deps' \n \n \nSincerely, \nGour \n \n}}}","type_of_failure":"OtherFailure","blocking":[]} -->Simon MarlowSimon Marlowhttps://gitlab.haskell.org/ghc/ghc/-/issues/327ghci fails to start, no GHCziBase_ZC_con_info2019-07-07T19:18:28Znobodyghci fails to start, no GHCziBase_ZC_con_info```
I (dickrp@ece.northwestern.edu) installed GHC 6.2.2 on a
9.1 SuSE linux box and used ghc to compile a hello world
test program. That worked. When I attempt to start ghci,
the following happened, preventing ghci from ever startin...```
I (dickrp@ece.northwestern.edu) installed GHC 6.2.2 on a
9.1 SuSE linux box and used ghc to compile a hello world
test program. That worked. When I attempt to start ghci,
the following happened, preventing ghci from ever starting:
I already tried the libreadline hack and that didn't help.
ghci -v
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 6.2.2, for
Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Glasgow Haskell Compiler, Version 6.2.2, for Haskell 98,
compiled by GHC version 5.04.3
Using package config
file: /usr/local/unison/lib/ghc-6.2.2/package.conf
==================== Packages
====================
Package
{name = "data",
auto = False,
import_dirs =
["/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/data"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HSdata"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["haskell98", "lang", "util"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "rts",
auto = False,
import_dirs = [],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HSrts"],
extra_libraries = ["m", "gmp", "dl"],
include_dirs = ["/usr/local/unison/lib/ghc-6.2.2/include"],
c_includes = ["Stg.h"],
package_deps = [],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts =
["-u",
"GHCziBase_Izh_static_info",
"-u",
"GHCziBase_Czh_static_info",
"-u",
"GHCziFloat_Fzh_static_info",
"-u",
"GHCziFloat_Dzh_static_info",
"-u",
"GHCziPtr_Ptr_static_info",
"-u",
"GHCziWord_Wzh_static_info",
"-u",
"GHCziInt_I8zh_static_info",
"-u",
"GHCziInt_I16zh_static_info",
"-u",
"GHCziInt_I32zh_static_info",
"-u",
"GHCziInt_I64zh_static_info",
"-u",
"GHCziWord_W8zh_static_info",
"-u",
"GHCziWord_W16zh_static_info",
"-u",
"GHCziWord_W32zh_static_info",
"-u",
"GHCziWord_W64zh_static_info",
"-u",
"GHCziStable_StablePtr_static_info",
"-u",
"GHCziBase_Izh_con_info",
"-u",
"GHCziBase_Czh_con_info",
"-u",
"GHCziFloat_Fzh_con_info",
"-u",
"GHCziFloat_Dzh_con_info",
"-u",
"GHCziPtr_Ptr_con_info",
"-u",
"GHCziPtr_FunPtr_con_info",
"-u",
"GHCziStable_StablePtr_con_info",
"-u",
"GHCziBase_False_closure",
"-u",
"GHCziBase_True_closure",
"-u",
"GHCziPack_unpackCString_closure",
"-u",
"GHCziIOBase_stackOverflow_closure",
"-u",
"GHCziIOBase_heapOverflow_closure",
"-u",
"GHCziIOBase_NonTermination_closure",
"-u",
"GHCziIOBase_BlockedOnDeadMVar_closure",
"-u",
"GHCziIOBase_Deadlock_closure",
"-u",
"GHCziWeak_runFinalizzerBatch_closure",
"-u",
"__stginit_Prelude"],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "base",
auto = True,
import_dirs = ["/usr/local/unison/lib/ghc-6.2.2/imports"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HSbase"],
extra_libraries = ["HSbase_cbits"],
include_dirs = [],
c_includes = ["HsBase.h"],
package_deps = ["rts"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "haskell98",
auto = True,
import_dirs = ["/usr/local/unison/lib/ghc-6.2.2/imports"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HShaskell98"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "haskell-src",
auto = True,
import_dirs = ["/usr/local/unison/lib/ghc-6.2.2/imports"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HShaskell-src"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["base", "haskell98"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "network",
auto = True,
import_dirs = ["/usr/local/unison/lib/ghc-6.2.2/imports"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HSnetwork"],
extra_libraries = [],
include_dirs = [],
c_includes = ["HsNet.h"],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "parsec",
auto = True,
import_dirs = ["/usr/local/unison/lib/ghc-6.2.2/imports"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HSparsec"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "QuickCheck",
auto = True,
import_dirs = ["/usr/local/unison/lib/ghc-6.2.2/imports"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HSQuickCheck"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "readline",
auto = True,
import_dirs = ["/usr/local/unison/lib/ghc-6.2.2/imports"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HSreadline"],
extra_libraries = ["readline", "ncurses"],
include_dirs = [],
c_includes = ["HsReadline.h"],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "unix",
auto = True,
import_dirs = ["/usr/local/unison/lib/ghc-6.2.2/imports"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HSunix"],
extra_libraries = ["HSunix_cbits", "dl"],
include_dirs = [],
c_includes = ["HsUnix.h"],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "lang",
auto = False,
import_dirs =
["/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/lang"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HSlang"],
extra_libraries = ["HSlang_cbits"],
include_dirs = [],
c_includes = ["HsLang.h"],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "concurrent",
auto = False,
import_dirs =
["/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/concurrent"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HSconcurrent"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "posix",
auto = False,
import_dirs =
["/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/posix"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HSposix"],
extra_libraries = ["HSposix_cbits", "dl"],
include_dirs = [],
c_includes = ["HsPosix.h"],
package_deps = ["lang", "unix"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "util",
auto = False,
import_dirs =
["/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/util"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HSutil"],
extra_libraries = ["HSutil_cbits"],
include_dirs = [],
c_includes = ["HsUtil.h"],
package_deps =
["lang", "concurrent", "QuickCheck", "readline", "posix"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "text",
auto = False,
import_dirs =
["/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/text"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HStext"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["lang", "parsec"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "net",
auto = False,
import_dirs =
["/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/net"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HSnet"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["network"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "hssource",
auto = False,
import_dirs =
["/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/hssource"],
source_dirs = [],
library_dirs = ["/usr/local/unison/lib/ghc-6.2.2"],
hs_libraries = ["HShssource"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["haskell-src"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Hsc static flags: -static
*** Parser:
*** Desugar:
*** Simplify:
*** CorePrep:
*** ByteCodeGen:
Loading package base ... linking ... done.
*** Deleting temp files
Deleting:
During interactive linking, GHCi couldn't find the following
symbol:
GHCziBase_ZC_con_info or GHCziBase_ZC_static_info
This may be due to you not asking GHCi to load extra
object files,
archives or DLLs needed by your current session. Restart
GHCi, specifying
the missing library using the -L/path/to/object/dir and
-lmissinglibname
flags, or simply by naming the relevant files on the GHCi
command line.
Alternatively, this link failure might indicate a bug in GHCi.
If you suspect the latter, please send a bug report to:
glasgow-haskell-bugs@haskell.org
----
Local environment
Linux 2.6.5-7.147-default #1 Thu Jan 27 09:19:29 UTC
2005 i686 athlon i386 GNU/Linux
Reading specs
from /usr/local/unison/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: ./configure --prefix=/usr/local/unison :
(reconfigured) ./configure --prefix=/usr/local/unison
--enable-languages=c,c++
Thread model: posix
gcc version 3.4.1
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ---------------- |
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedNoReason |
| Component | GHCi |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"ghci fails to start, no GHCziBase_ZC_con_info","status":"New","operating_system":"","component":"GHCi","related":[],"milestone":"","resolution":"ResolvedNoReason","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"None","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nI (dickrp@ece.northwestern.edu) installed GHC 6.2.2 on a \n9.1 SuSE linux box and used ghc to compile a hello world \ntest program. That worked. When I attempt to start ghci, \nthe following happened, preventing ghci from ever starting: \nI already tried the libreadline hack and that didn't help. \n \nghci -v \n ___ ___ _ \n / _ \\ /\\ /\\/ __(_) \n / /_\\// /_/ / / | | GHC Interactive, version 6.2.2, for \nHaskell 98. \n/ /_\\\\/ __ / /___| | http://www.haskell.org/ghc/ \n\\____/\\/ /_/\\____/|_| Type :? for help. \n \nGlasgow Haskell Compiler, Version 6.2.2, for Haskell 98, \ncompiled by GHC version 5.04.3 \nUsing package config \nfile: /usr/local/unison/lib/ghc-6.2.2/package.conf \n \n==================== Packages \n==================== \nPackage \n {name = \"data\", \n auto = False, \n import_dirs = \n [\"/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/data\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HSdata\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"haskell98\", \"lang\", \"util\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"rts\", \n auto = False, \n import_dirs = [], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HSrts\"], \n extra_libraries = [\"m\", \"gmp\", \"dl\"], \n include_dirs = [\"/usr/local/unison/lib/ghc-6.2.2/include\"], \n c_includes = [\"Stg.h\"], \n package_deps = [], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = \n [\"-u\", \n \"GHCziBase_Izh_static_info\", \n \"-u\", \n \"GHCziBase_Czh_static_info\", \n \"-u\", \n \"GHCziFloat_Fzh_static_info\", \n \"-u\", \n \"GHCziFloat_Dzh_static_info\", \n \"-u\", \n \"GHCziPtr_Ptr_static_info\", \n \"-u\", \n \"GHCziWord_Wzh_static_info\", \n \"-u\", \n \"GHCziInt_I8zh_static_info\", \n \"-u\", \n \"GHCziInt_I16zh_static_info\", \n \"-u\", \n \"GHCziInt_I32zh_static_info\", \n \"-u\", \n \"GHCziInt_I64zh_static_info\", \n \"-u\", \n \"GHCziWord_W8zh_static_info\", \n \"-u\", \n \"GHCziWord_W16zh_static_info\", \n \"-u\", \n \"GHCziWord_W32zh_static_info\", \n \"-u\", \n \"GHCziWord_W64zh_static_info\", \n \"-u\", \n \"GHCziStable_StablePtr_static_info\", \n \"-u\", \n \"GHCziBase_Izh_con_info\", \n \"-u\", \n \"GHCziBase_Czh_con_info\", \n \"-u\", \n \"GHCziFloat_Fzh_con_info\", \n \"-u\", \n \"GHCziFloat_Dzh_con_info\", \n \"-u\", \n \"GHCziPtr_Ptr_con_info\", \n \"-u\", \n \"GHCziPtr_FunPtr_con_info\", \n \"-u\", \n \"GHCziStable_StablePtr_con_info\", \n \"-u\", \n \"GHCziBase_False_closure\", \n \"-u\", \n \"GHCziBase_True_closure\", \n \"-u\", \n \"GHCziPack_unpackCString_closure\", \n \"-u\", \n \"GHCziIOBase_stackOverflow_closure\", \n \"-u\", \n \"GHCziIOBase_heapOverflow_closure\", \n \"-u\", \n \"GHCziIOBase_NonTermination_closure\", \n \"-u\", \n \"GHCziIOBase_BlockedOnDeadMVar_closure\", \n \"-u\", \n \"GHCziIOBase_Deadlock_closure\", \n \"-u\", \n \"GHCziWeak_runFinalizzerBatch_closure\", \n \"-u\", \n \"__stginit_Prelude\"], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"base\", \n auto = True, \n import_dirs = [\"/usr/local/unison/lib/ghc-6.2.2/imports\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HSbase\"], \n extra_libraries = [\"HSbase_cbits\"], \n include_dirs = [], \n c_includes = [\"HsBase.h\"], \n package_deps = [\"rts\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"haskell98\", \n auto = True, \n import_dirs = [\"/usr/local/unison/lib/ghc-6.2.2/imports\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HShaskell98\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"haskell-src\", \n auto = True, \n import_dirs = [\"/usr/local/unison/lib/ghc-6.2.2/imports\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HShaskell-src\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"base\", \"haskell98\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"network\", \n auto = True, \n import_dirs = [\"/usr/local/unison/lib/ghc-6.2.2/imports\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HSnetwork\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [\"HsNet.h\"], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"parsec\", \n auto = True, \n import_dirs = [\"/usr/local/unison/lib/ghc-6.2.2/imports\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HSparsec\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"QuickCheck\", \n auto = True, \n import_dirs = [\"/usr/local/unison/lib/ghc-6.2.2/imports\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HSQuickCheck\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"readline\", \n auto = True, \n import_dirs = [\"/usr/local/unison/lib/ghc-6.2.2/imports\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HSreadline\"], \n extra_libraries = [\"readline\", \"ncurses\"], \n include_dirs = [], \n c_includes = [\"HsReadline.h\"], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"unix\", \n auto = True, \n import_dirs = [\"/usr/local/unison/lib/ghc-6.2.2/imports\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HSunix\"], \n extra_libraries = [\"HSunix_cbits\", \"dl\"], \n include_dirs = [], \n c_includes = [\"HsUnix.h\"], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"lang\", \n auto = False, \n import_dirs = \n [\"/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/lang\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HSlang\"], \n extra_libraries = [\"HSlang_cbits\"], \n include_dirs = [], \n c_includes = [\"HsLang.h\"], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"concurrent\", \n auto = False, \n import_dirs = \n [\"/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/concurrent\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HSconcurrent\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"posix\", \n auto = False, \n import_dirs = \n [\"/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/posix\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HSposix\"], \n extra_libraries = [\"HSposix_cbits\", \"dl\"], \n include_dirs = [], \n c_includes = [\"HsPosix.h\"], \n package_deps = [\"lang\", \"unix\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"util\", \n auto = False, \n import_dirs = \n [\"/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/util\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HSutil\"], \n extra_libraries = [\"HSutil_cbits\"], \n include_dirs = [], \n c_includes = [\"HsUtil.h\"], \n package_deps = \n [\"lang\", \"concurrent\", \"QuickCheck\", \"readline\", \"posix\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"text\", \n auto = False, \n import_dirs = \n [\"/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/text\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HStext\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"lang\", \"parsec\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"net\", \n auto = False, \n import_dirs = \n [\"/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/net\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HSnet\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"network\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"hssource\", \n auto = False, \n import_dirs = \n [\"/usr/local/unison/lib/ghc-6.2.2/hslibs-imports/hssource\"], \n source_dirs = [], \n library_dirs = [\"/usr/local/unison/lib/ghc-6.2.2\"], \n hs_libraries = [\"HShssource\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"haskell-src\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \n \n \nHsc static flags: -static \n*** Parser: \n*** Desugar: \n*** Simplify: \n*** CorePrep: \n*** ByteCodeGen: \nLoading package base ... linking ... done. \n*** Deleting temp files \nDeleting: \n \nDuring interactive linking, GHCi couldn't find the following \nsymbol: \n GHCziBase_ZC_con_info or GHCziBase_ZC_static_info \nThis may be due to you not asking GHCi to load extra \nobject files, \narchives or DLLs needed by your current session. Restart \nGHCi, specifying \nthe missing library using the -L/path/to/object/dir and \n-lmissinglibname \nflags, or simply by naming the relevant files on the GHCi \ncommand line. \nAlternatively, this link failure might indicate a bug in GHCi. \nIf you suspect the latter, please send a bug report to: \n glasgow-haskell-bugs@haskell.org \n \n---- \nLocal environment \n \nLinux 2.6.5-7.147-default #1 Thu Jan 27 09:19:29 UTC \n2005 i686 athlon i386 GNU/Linux \n \nReading specs \nfrom /usr/local/unison/lib/gcc/i686-pc-linux-gnu/3.4.1/specs \nConfigured with: ./configure --prefix=/usr/local/unison : \n(reconfigured) ./configure --prefix=/usr/local/unison \n--enable-languages=c,c++ \nThread model: posix \ngcc version 3.4.1 \n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/328obtuse shell scripting in profiling docs2019-07-07T19:18:27Znobodyobtuse shell scripting in profiling docs```
Hi! I'm looking at this page:
http://haskell.org/ghc/docs/latest/html/users_guide/hp2ps.html
I see a shell command like this:
head -`fgrep -n END_SAMPLE FOO.hp | tail -1 | cut -d :
-f 1` FOO.hp \
| hp2ps > FOO.ps
It looks l...```
Hi! I'm looking at this page:
http://haskell.org/ghc/docs/latest/html/users_guide/hp2ps.html
I see a shell command like this:
head -`fgrep -n END_SAMPLE FOO.hp | tail -1 | cut -d :
-f 1` FOO.hp \
| hp2ps > FOO.ps
It looks like a complex way of saying:
grep END_SAMPLE FOO.hp | hp2ps > FOO.ps
The mantra is repeated a few times in that section, and
(assuming I'm not missing something) should be
simplified in each place.
Regards,
Tim Smith <tim@desert.net>
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ---------------- |
| Version | 6.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedNoReason |
| Component | Documentation |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"obtuse shell scripting in profiling docs","status":"New","operating_system":"","component":"Documentation","related":[],"milestone":"","resolution":"ResolvedNoReason","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nHi! I'm looking at this page:\n\nhttp://haskell.org/ghc/docs/latest/html/users_guide/hp2ps.html\n\nI see a shell command like this:\n\nhead -`fgrep -n END_SAMPLE FOO.hp | tail -1 | cut -d :\n-f 1` FOO.hp \\\n | hp2ps > FOO.ps\n\n\nIt looks like a complex way of saying:\n\ngrep END_SAMPLE FOO.hp | hp2ps > FOO.ps\n\n\nThe mantra is repeated a few times in that section, and\n(assuming I'm not missing something) should be\nsimplified in each place.\n\nRegards,\n\nTim Smith <tim@desert.net>\n\n\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/329Panic while linking with hs-boot files2019-07-07T19:18:27ZyavorchePanic while linking with hs-boot files```
Hello,
GHC 6.4 panics while trying to link recursive hs-boot
files.
The problem is illustrated in the attached tar.gz file.
Just typing "make" should hopefully reporduce the problem.
I am using a Mandrake 10.1 linux distribution.
-Ia...```
Hello,
GHC 6.4 panics while trying to link recursive hs-boot
files.
The problem is illustrated in the attached tar.gz file.
Just typing "make" should hopefully reporduce the problem.
I am using a Mandrake 10.1 linux distribution.
-Iavor
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Panic while linking with hs-boot files","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nHello,\nGHC 6.4 panics while trying to link recursive hs-boot\nfiles.\nThe problem is illustrated in the attached tar.gz file.\nJust typing \"make\" should hopefully reporduce the problem.\nI am using a Mandrake 10.1 linux distribution.\n-Iavor\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/330Unknown pseudo-op: .subsections_via_symbols (apple gcc 3.3)2019-07-07T19:18:27ZjyasskinUnknown pseudo-op: .subsections_via_symbols (apple gcc 3.3)```
After installing Wolfgang Thaller's ghc 6.4 package for
OSX 10.3, I got an error while building some Haskell
source: (with -v)
...
*** Assembler
gcc -I.. -c /tmp/ghc29861.s -o ../EventLoop.o
/tmp/ghc29861.s:4379:Unknown pseudo-op:
....```
After installing Wolfgang Thaller's ghc 6.4 package for
OSX 10.3, I got an error while building some Haskell
source: (with -v)
...
*** Assembler
gcc -I.. -c /tmp/ghc29861.s -o ../EventLoop.o
/tmp/ghc29861.s:4379:Unknown pseudo-op:
.subsections_via_symbols
gcc --version returned: "gcc (GCC) 3.3 20030304 (Apple
Computer, Inc. build 1495)"
I only had XCode 1.1 installed, so I tried upgrading it
and gcc. Now, gcc --version returns "gcc version 3.3
20030304 (Apple Computer, Inc. build 1671)", and ghc
successfully compiles things.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Documentation |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Unknown pseudo-op: .subsections_via_symbols (apple gcc 3.3)","status":"New","operating_system":"","component":"Documentation","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"wthaller"},"version":"6.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nAfter installing Wolfgang Thaller's ghc 6.4 package for\nOSX 10.3, I got an error while building some Haskell\nsource: (with -v)\n\n...\n*** Assembler\ngcc -I.. -c /tmp/ghc29861.s -o ../EventLoop.o\n/tmp/ghc29861.s:4379:Unknown pseudo-op:\n.subsections_via_symbols\n\ngcc --version returned: \"gcc (GCC) 3.3 20030304 (Apple\nComputer, Inc. build 1495)\"\n\nI only had XCode 1.1 installed, so I tried upgrading it\nand gcc. Now, gcc --version returns \"gcc version 3.3\n20030304 (Apple Computer, Inc. build 1671)\", and ghc\nsuccessfully compiles things.\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->wthallerwthallerhttps://gitlab.haskell.org/ghc/ghc/-/issues/331Windows build of GHC 6.4 doesn't seem to work on Win98 SE2019-07-07T19:18:27ZcgibbardWindows build of GHC 6.4 doesn't seem to work on Win98 SE```
I get the error message "The GHC.EXE file is linked to
missing export SHELL32.DLL:SHGetFolderPathA."
It appears that this function is available in
SHELL32.DLL in Windows 2000 and XP, but not in
Windows95/98/98SE. It is also availabl...```
I get the error message "The GHC.EXE file is linked to
missing export SHELL32.DLL:SHGetFolderPathA."
It appears that this function is available in
SHELL32.DLL in Windows 2000 and XP, but not in
Windows95/98/98SE. It is also available in ShFolder.dll
available from
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=6AE02498-07E9-48F1-A5D6-DBFA18D37E0F
but installing that doesn't help much, as GHC would
need to be relinked.
Probably dynamically linking to (and including)
ShFolder.dll in the case of Win95/98 would work.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | None |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Windows build of GHC 6.4 doesn't seem to work on Win98 SE","status":"New","operating_system":"","component":"None","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.4","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nI get the error message \"The GHC.EXE file is linked to\nmissing export SHELL32.DLL:SHGetFolderPathA.\"\n\nIt appears that this function is available in\nSHELL32.DLL in Windows 2000 and XP, but not in\nWindows95/98/98SE. It is also available in ShFolder.dll\navailable from \nhttp://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=6AE02498-07E9-48F1-A5D6-DBFA18D37E0F\nbut installing that doesn't help much, as GHC would\nneed to be relinked.\n\nProbably dynamically linking to (and including)\nShFolder.dll in the case of Win95/98 would work.\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobody