Hi, These are version 2.02 bugs; I've run into the problem building 2.04-pl2 using a 2.02 binary distribution described by Mariano Suarez Alvarez. It seems like the Makefiles aren't using mkdependHS at all, but are just trying to compile the *.hs files in alphabetical order (starting with parser/U_binding.hs) But I don't know how to work around this... First bug: This compiles and links using the "in-place" ghc-2.02 alpha-dec-osf1 binary distribution, but fails using the "in-place" ghc-2.02 sparc-sun-solaris2 binary distribution, with a linker error. Comments on speeding the program up would also be appreciated. The source code, and a script of the compile attempt, are at http://www.cs.umd.edu/~burdick/haskell/bug.html The second bug report is at the end of this message. It seems to be a problem with unboxed types. Again, I was using the ghc-2.02 solaris "in-place" binary distribution. Also, talking of "speeding things up", a thought: it would obviously be nice to be use specializations. Since they're broken anyways, I was thinking: If someone has a new type, Foozle, defined in module Foozle, and they want to specialize "map"ping over a [Foozle], perhaps the specialized "map" function should go in "Foozle.o", instead of whatever .o file "map" normally goes in. That is, it makes less sense, IMHO, to keep recompiling "PrelList.hs", every time someone defines a new type that they want specialized. Furthermore, in an Ideal Universe, you don't want people to keep having to modify the source code of standard libraries (as they have to in order to use "specialize" pragmas.) Shrug -- it's not like I've implemented this or anything. Thank you, Josh -- Josh Burdick ([EMAIL PROTECTED]) ---------------------- second bug report: goodbar[~/usr/src/haskell/examples/fac],11:29am% ls Main.hs goodbar[~/usr/src/haskell/examples/fac],11:29am% cat Main.hs import GlaExts main = do putStr "foo" n = 3# +# 4# goodbar[~/usr/src/haskell/examples/fac],11:29am% goodbar[~/usr/src/haskell/examples/fac],11:29am% lks goodbar[~/usr/src/haskell/examples/fac],11:29am% ls Main.hs goodbar[~/usr/src/haskell/examples/fac],11:29am% vi Main.hs goodbar[~/usr/src/haskell/examples/fac],11:30am% ls Main.hs goodbar[~/usr/src/haskell/examples/fac],11:30am% !g ghc -v -fglasgow-exts *.hs The Glorious Glasgow Haskell Compilation System, version 2.02, patchlevel 0 Ineffective C pre-processor: echo '#line 1 "Main.hs"' > /tmp/ghc5172.cpp && cat Main.hs >> /tmp/ghc5172.cpp real 0.0 user 0.0 sys 0.0 Haskell compiler: /var/tmp/burdick/fptools/lib/sparc-sun-solaris2/ghc-2.02/hsc ,-N ,-W ,/tmp/ghc5172.cpp -fglasgow-exts -hisuf-prelude=.hi -hisuf=.hi -fignore-interface-pragmas -fomit-interface-pragmas -fsimplify \( -ffloat-lets-exposing-whnf -ffloat-primops-ok -fcase-of-case -freuse-con -fpedantic-bottoms -fsimpl-uf-use-threshold0 -fessential-unfoldings-only -fmax-simplifier-iterations4 \) -himap=.:/var/tmp/burdick/fptools/lib/sparc-sun-solaris2/ghc-2.02/imports -v -hifile=/tmp/ghc5172.hi -S=/tmp/ghc5172.s +RTS -H6000000 -K1000000 Glasgow Haskell Compiler, version 2.02, for Haskell 1.3 panic! (the `impossible' happened): mkPrimReturnCode: Upd Please report it as a compiler bug to [EMAIL PROTECTED] real 2.3 user 1.9 sys 0.1 deleting... /tmp/ghc5172.hi /tmp/ghc5172.s rm -f /tmp/ghc5172* goodbar[~/usr/src/haskell/examples/fac],11:30am% -- Josh Burdick ([EMAIL PROTECTED]) http://www.cs.umd.edu/~burdick
