Re: ANNOUNCE: GHC 6.12.2 Release Candidate 1

2010-04-16 Thread Jens Petersen
On 11 April 2010 10:13, Jens Petersen peter...@haskell.org wrote:
 Just for the record let me report the following build failure for f14 
 (rawhide):
 http://koji.fedoraproject.org/koji/taskinfo?taskID=2107186

 inplace/bin/ghc-stage1   -H32m -O    -package-name base-
 -hide-all-packages -i -ilibraries/base3-compat/.
 -ilibraries/base3-compat/dist-install/build
 -ilibraries/base3-compat/dist-install/build/autogen
 -Ilibraries/base3-compat/dist-install/build
 -Ilibraries/base3-compat/dist-install/build/autogen
 -Ilibraries/base3-compat/.    -optP-include
 -optPlibraries/base3-compat/dist-install/build/autogen/cabal_macros.h
 -package base-4.2.0.1 -package syb-0.1.0.2 -split-objs
 -fno-warn-deprecations -XPackageImports -XCPP -O2 -XGenerics
 -fno-warn-deprecated-flags -XPackageImports     -odir
 libraries/base3-compat/dist-install/build -hidir
 libraries/base3-compat/dist-install/build -stubdir
 libraries/base3-compat/dist-install/build -hisuf hi -osuf  o -hcsuf hc
 -c libraries/base3-compat/./GHC/Int.hs -o
 libraries/base3-compat/dist-install/build/GHC/Int.o
 libraries/base3-compat/GHC/Int.hs:1:0:
    Bad interface file: libraries/base3-compat/dist-install/build/Prelude.hi
        Something is amiss; requested module  base-:Prelude differs
 from name found in the interface file base-3.0.3.2:Prelude
 make[1]: *** [libraries/base3-compat/dist-install/build/GHC/Int.o] Error 1
 make: *** [all] Error 2

 I haven't had time to try to reproduce it.

I have reproduced this now also with ghc-6.12.1

inplace/bin/ghc-stage1 -prof  -H32m -O-package-name base-
-hide-all-packages -i -ilibraries/base3-compat/.
-ilibraries/base3-compat/dist-install/build
-ilibraries/base3-compat/dist-install/build/autogen
-Ilibraries/base3-compat/dist-install/build
-Ilibraries/base3-compat/dist-install/build/autogen
-Ilibraries/base3-compat/.-optP-include
-optPlibraries/base3-compat/dist-install/build/autogen/cabal_macros.h
-package base-4.2.0.0 -package syb-0.1.0.2 -split-objs
-fno-warn-deprecations -XPackageImports -XCPP -O2 -XGenerics
-fno-warn-deprecated-flags -XPackageImports -odir
libraries/base3-compat/dist-install/build -hidir
libraries/base3-compat/dist-install/build -stubdir
libraries/base3-compat/dist-install/build -hisuf p_hi -osuf  p_o
-hcsuf p_hc -c libraries/base3-compat/./Data/IORef.hs -o
libraries/base3-compat/dist-install/build/Data/IORef.p_o
libraries/base3-compat/Data/IORef.hs:1:0:
Bad interface file: libraries/base3-compat/dist-install/build/Prelude.p_hi
Something is amiss; requested module  base-:Prelude differs
from name found in the interface file base-3.0.3.2:Prelude
make[1]: *** [libraries/base3-compat/dist-install/build/Data/IORef.p_o] Error 1
make: *** [all] Error 2

(see http://koji.fedoraproject.org/koji/taskinfo?taskID=2118484 for
more details).

What should one make of Something is amiss; requested module
base-:Prelude differs from name found in the interface file
base-3.0.3.2:Prelude here when building ghc??

Thanks for any light anyone can shed on this,

Jens
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ANNOUNCE: GHC 6.12.2 Release Candidate 1

2010-04-16 Thread Matthias Kilian
On Fri, Apr 16, 2010 at 04:02:03PM +0900, Jens Petersen wrote:
  Just for the record let me report the following build failure for f14 
  (rawhide):
  http://koji.fedoraproject.org/koji/taskinfo?taskID=2107186
[...]
 I have reproduced this now also with ghc-6.12.1
 
 inplace/bin/ghc-stage1 -prof  -H32m -O-package-name base-
^
Here!
 -hide-all-packages -i -ilibraries/base3-compat/.
[...]
 libraries/base3-compat/Data/IORef.hs:1:0:
 Bad interface file: libraries/base3-compat/dist-install/build/Prelude.p_hi
 Something is amiss; requested module  base-:Prelude differs
 from name found in the interface file base-3.0.3.2:Prelude
 make[1]: *** [libraries/base3-compat/dist-install/build/Data/IORef.p_o] Error 
 1
 make: *** [all] Error 2
[...]
 What should one make of Something is amiss; requested module
 base-:Prelude differs from name found in the interface file
 base-3.0.3.2:Prelude here when building ghc??

I don't know why, but for some reason something's going wrong with
creating libraries/base3-compat/dist-install/package-data.mk, which
*should* contain the correct version number (i.e.
libraries/base3-compat_dist-install_VERSION = 3.0.3.2).

Ciao,
Kili
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


ld memory usage

2010-04-16 Thread Roman Beslik

Hi.
This is not strictly a GHC question. I observed that ld when linking 
GHC-compiled programs eats 0.5 GB of resident memory. ~3 times more than 
GHC or Haddock. So if there is not enough free memory ld uses virtual 
memory and works very slowly (practically does not use CPU). I'd like to 
know, is anyone interested in researching and improving memory usage? Is 
it ld or GHC problem? I found a similar discussion here

http://article.gmane.org/gmane.comp.lang.haskell.cafe/66189
but it was too broad and went nowhere.

--
Best regards,
  Roman Beslik.

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Using -fext-core without a Main function

2010-04-16 Thread Hal Daume III

I suppose that does work :).  Thanks!

Are there any examples out there for reading in Core files using the ghc 
package?  I can't really find anything that's up to date...


 -h

Max Bolingbroke wrote:

The flag -fext-core is a red herring. GHC assumes any module with no
module declaration is actually called Main and hence insists on a
main declaration.


mbolingbr...@perihelion ~/tmp
$ ghc -c Hal.hs

Hal.hs:1:0: The function `main' is not defined in module `Main'


Compile this instead:


module Hal where
addOne x = x + 1


Cheers,
Max

On 13 April 2010 17:38, Hal Daume III h...@cs.utah.edu wrote:

If I have a file 'Foo.hs' that contains one line 'addOne x = x + 1', I want
to run something like:

 ghc -c -fext-core Foo.hs

to get the core version of this file.

Unfortunately, when I do that, it complains that Main doesn't have a
function main.  And it doesn't produce the .hcr file.

I tried adding -no-hs-main but that doesn't help.

I can add 'main = undefined' to Foo.hs, but then the core file doesn't
contain the declaration of addOne because it's not used.

Any suggestions?

Thanks!

 -h

--
 Hal Daume III --- me AT hal3 DOT name  |  http://www DOT hal3 DOT name
 Arrest this man, he talks in maths.  |  http://nlpers.blogspot.com
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users




--
 Hal Daume III --- me AT hal3 DOT name  |  http://www DOT hal3 DOT name
 Arrest this man, he talks in maths.  |  http://nlpers.blogspot.com
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users