GHC 6.4.1 bug

2006-06-26 Thread Andrew Jones
The entire utils directory fails to build on IRIX64 6.5.29f because it fails to heed $GHCFLAGS.I was able to fix the problem by editing makefiles and adding the appropriate -L arguments by hand.I was building using the GHC 
6.2 binary tree on the site.
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


ghc 6.4.1 failed to build on IRIX64 6.5.29

2006-06-26 Thread Andrew Jones
I have no idea what's going on here.  I'm going to try a newer version
of gcc and see what happens.  I was building with mabi=64, as that is
what the last binary build of ghc on the site (ghc 6.2) was using.

[EMAIL PROTECTED] -aR
IRIX64 godot 6.5 6.5.29f 01090133 IP27

[EMAIL PROTECTED] --version
gcc (GCC) 3.4.0

[EMAIL PROTECTED] fw_gmp.sw64
I  fw_gmp.sw64  06/10/2006  gmp-3.1.1 64-bit execution only env
I  fw_gmp.sw64.dev  06/10/2006  gmp-3.1.1 64-bit archive libraries
I  fw_gmp.sw64.lib  06/10/2006  gmp-3.1.1 64-bit shared libraries


==fptools== gmake boot -wr;
 in /disk2/src/ghc-6.4.1/ghc/compiler

../../glafp-utils/mkdirhier/mkdirhier stage1
for i in utils basicTypes types hsSyn prelude rename typecheck deSugar
coreSyn specialise simplCore stranal stgSyn simplStg codeGen main
profiling parser cprAnalysis compMan ndpFlatten iface cmm; do \
../../glafp-utils/mkdirhier/mkdirhier stage1/$i; \
done
for i in */*hi-boot*; do \
ln -s -f ../../$i stage1/$i || true ; \
done
Creating stage1/ghc_boot_platform.h...
Done.
touch .depend-BASE
/opt/ghc-6.2/bin/ghc -M -optdep-f -optdep.depend-BASE  -osuf o
-I../includes -optdep--exclude-module=Compat.RawSystem
-optdep--exclude-module=Compat.Directory
-optdep--exclude-module=Distribution.Compat.ReadP
-optdep--exclude-module=Distribution.Extension
-optdep--exclude-module=Distribution.GetOpt
-optdep--exclude-module=Distribution.InstalledPackageInfo
-optdep--exclude-module=Distribution.License
-optdep--exclude-module=Distribution.Package
-optdep--exclude-module=Distribution.ParseUtils
-optdep--exclude-module=Distribution.Compiler
-optdep--exclude-module=Distribution.Version
-optdep--exclude-module=System.Directory.Internals   -H16m -O -iutils
-ibasicTypes -itypes -ihsSyn -iprelude -irename -itypecheck -ideSugar
-icoreSyn -ispecialise -isimplCore -istranal -istgSyn -isimplStg
-icodeGen -imain -iprofiling -iparser -icprAnalysis -icompMan
-indpFlatten -iiface -icmm -Istage1 -DOMIT_NATIVE_CODEGEN -cpp
-fglasgow-exts -fno-generics -Rghc-timing -I. -IcodeGen -InativeGen
-Iparser -package unix -recomp -Rghc-timing -H16M '-#include
hschooks.h' -i../lib/compat -L/usr/freeware/lib64
basicTypes/BasicTypes.lhs basicTypes/DataCon.lhs basicTypes/Demand.lhs
basicTypes/FieldLabel.lhs basicTypes/Id.lhs basicTypes/IdInfo.lhs
basicTypes/Literal.lhs basicTypes/MkId.lhs basicTypes/Module.lhs
basicTypes/Name.lhs basicTypes/NameEnv.lhs basicTypes/NameSet.lhs
basicTypes/NewDemand.lhs basicTypes/OccName.lhs basicTypes/RdrName.lhs
basicTypes/SrcLoc.lhs basicTypes/UniqSupply.lhs basicTypes/Unique.lhs
basicTypes/Var.lhs basicTypes/VarEnv.lhs basicTypes/VarSet.lhs
cmm/CLabel.hs cmm/Cmm.hs cmm/CmmLex.hs cmm/CmmLint.hs cmm/CmmParse.hs
cmm/CmmUtils.hs cmm/MachOp.hs cmm/PprC.hs cmm/PprCmm.hs
codeGen/Bitmap.hs codeGen/CgBindery.lhs codeGen/CgCallConv.hs
codeGen/CgCase.lhs codeGen/CgClosure.lhs codeGen/CgCon.lhs
codeGen/CgExpr.lhs codeGen/CgForeignCall.hs codeGen/CgHeapery.lhs
codeGen/CgInfoTbls.hs codeGen/CgLetNoEscape.lhs codeGen/CgMonad.lhs
codeGen/CgParallel.hs codeGen/CgPrimOp.hs codeGen/CgProf.hs
codeGen/CgStackery.lhs codeGen/CgTailCall.lhs codeGen/CgTicky.hs
codeGen/CgUtils.hs codeGen/ClosureInfo.lhs codeGen/CodeGen.lhs
codeGen/SMRep.lhs compMan/CompManager.lhs coreSyn/CoreFVs.lhs
coreSyn/CoreLint.lhs coreSyn/CorePrep.lhs coreSyn/CoreSubst.lhs
coreSyn/CoreSyn.lhs coreSyn/CoreTidy.lhs coreSyn/CoreUnfold.lhs
coreSyn/CoreUtils.lhs coreSyn/ExternalCore.lhs
coreSyn/MkExternalCore.lhs coreSyn/PprCore.lhs
coreSyn/PprExternalCore.lhs cprAnalysis/CprAnalyse.lhs deSugar/Check.lhs
deSugar/Desugar.lhs deSugar/DsArrows.lhs deSugar/DsBinds.lhs
deSugar/DsCCall.lhs deSugar/DsExpr.lhs deSugar/DsForeign.lhs
deSugar/DsGRHSs.lhs deSugar/DsListComp.lhs deSugar/DsMonad.lhs
deSugar/DsUtils.lhs deSugar/Match.lhs deSugar/MatchCon.lhs
deSugar/MatchLit.lhs hsSyn/HsBinds.lhs hsSyn/HsDecls.lhs
hsSyn/HsExpr.lhs hsSyn/HsImpExp.lhs hsSyn/HsLit.lhs hsSyn/HsPat.lhs
hsSyn/HsSyn.lhs hsSyn/HsTypes.lhs hsSyn/HsUtils.lhs iface/BinIface.hs
iface/BuildTyCl.lhs iface/IfaceEnv.lhs iface/IfaceSyn.lhs
iface/IfaceType.lhs iface/LoadIface.lhs iface/MkIface.lhs
iface/TcIface.lhs main/CmdLineOpts.lhs main/CodeOutput.lhs
main/Config.hs main/Constants.lhs main/DriverFlags.hs
main/DriverMkDepend.hs main/DriverPhases.hs main/DriverPipeline.hs
main/DriverState.hs main/DriverUtil.hs main/ErrUtils.lhs main/Finder.lhs
main/GetImports.hs main/HscMain.lhs main/HscStats.lhs main/HscTypes.lhs
main/Main.hs main/PackageConfig.hs main/Packages.lhs
main/ParsePkgConf.hs main/SysTools.lhs main/TidyPgm.lhs
ndpFlatten/FlattenInfo.hs ndpFlatten/FlattenMonad.hs
ndpFlatten/Flattening.hs ndpFlatten/NDPCoreUtils.hs
ndpFlatten/PArrAnal.hs parser/Ctype.lhs parser/LexCore.hs
parser/Lexer.hs parser/Parser.hs parser/ParserCore.hs
parser/ParserCoreUtils.hs parser/RdrHsSyn.lhs prelude/ForeignCall.lhs

ghc 6.2.2 failed build on IRIX64

2006-06-26 Thread Andrew Jones
After this happened the first time, I attempted editing mk/config.mk to
remove the -O2, but that was no help. Next step: build ghc 6.2.1...

[EMAIL PROTECTED] --version
The Glorious Glasgow Haskell Compilation System, version 6.2

[EMAIL PROTECTED] --version
gcc (GCC) 3.4.0

[EMAIL PROTECTED] -aR
IRIX64 godot 6.5 6.5.29f 01090133 IP27


==fptools== gmake all -wr;
 in /disk2/src/ghc-6.2.2/ghc/rts

../../ghc/compiler/ghc-inplace -L/usr/freeware/lib64 -H16m -O -H16m -O
-H16m -O  -static-c Apply.hc -o Apply.o
In file included from /root/src/ghc-6.2.2/ghc/includes/Stg.h:189,
 from Apply.hc:10:
/root/src/ghc-6.2.2/ghc/includes/Regs.h:181: warning: call-clobbered
register used for global register variable
/root/src/ghc-6.2.2/ghc/includes/Regs.h:187: warning: call-clobbered
register used for global register variable
/root/src/ghc-6.2.2/ghc/includes/Regs.h:193: warning: call-clobbered
register used for global register variable
/root/src/ghc-6.2.2/ghc/includes/Regs.h:199: warning: call-clobbered
register used for global register variable
/root/src/ghc-6.2.2/ghc/includes/Regs.h:205: warning: call-clobbered
register used for global register variable
/root/src/ghc-6.2.2/ghc/includes/Regs.h:211: warning: call-clobbered
register used for global register variable
/root/src/ghc-6.2.2/ghc/includes/Regs.h:217: warning: call-clobbered
register used for global register variable
/root/src/ghc-6.2.2/ghc/includes/Regs.h:223: warning: call-clobbered
register used for global register variable
Apply.hc: In function `stg_ap_0_ret':
Apply.hc:55: warning: implicit declaration of function `JMP_'
Prologue junk?: .globl  stg_ap_0_ret
.entstg_ap_0_ret
stg_ap_0_ret:
.LFB37:
.frame  $sp,2168,$31
.mask   0x9000,-4
.fmask  0x,0
.mask   0x9000,-8
addiu   $sp,$sp,-16
.LCFI0:
sd  $31,8($sp)
.LCFI1:
sd  $28,0($sp)
.LCFI2:
lui $28,%hi(%neg(%gp_rel(stg_ap_0_ret)))
addu$28,$28,$25
addiu   $28,$28,%lo(%neg(%gp_rel(stg_ap_0_ret)))

gmake[2]: *** [Apply.o] Error 255
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/disk2/src/ghc-6.2.2/ghc'
gmake: *** [build] Error 1


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


GHC 6.2.2 and 6.4.1 on IRIX64 both failed, this time with new error

2006-06-26 Thread Andrew Jones
This is the failed 6.4.1 build, but when using 3.4.6 instead of 3.4.0,
both 6.2.2 and 6.4.1 fail this way.

[EMAIL PROTECTED] --version
gcc (GCC) 3.4.6

[EMAIL PROTECTED] -aR
IRIX64 godot 6.5 6.5.29f 01090133 IP27

[EMAIL PROTECTED] --version
The Glorious Glasgow Haskell Compilation System, version 6.2



==fptools== gmake all -wr;
 in /disk2/src/ghc-6.4.1/ghc/rts

../../ghc/compiler/ghc-inplace -L/usr/freeware/lib64 -O2 -static -I.
-#include Prelude.h -#include Rts.h -#include RtsFlags.h -#include
RtsUtils.h -#include StgRun.h -#include Schedule.h -#include Printer.h
-#include Sanity.h -#include STM.h -#include Storage.h -#include
SchedAPI.h -#include Timer.h -#include Itimer.h -#include ProfHeap.h
-#include LdvProfile.h -#include Profiling.h -#include Apply.h -fvia-C
-dcmm-lint -c Apply.cmm -o Apply.o
Cmm lint error:
  in proc stg_ap_0_ret
in basic block c2
  in assignment:
R1 = I32[R1 + 8 + 0];


Compilation had errors


gmake[2]: *** [Apply.o] Error 1
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/disk2/src/ghc-6.4.1/ghc'
gmake: *** [build] Error 1


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


ASSERTION FAILED: file GC.c, line 1352

2006-06-26 Thread Joachim Breitner
Hi,

I have created a small app here, using gtk and hsql, and I sometimes get
crashes with this debug message:

internal error: ASSERTION FAILED: file GC.c, line 1352

What information do you need to further debug this, or what can I do
myself to find the problem?

Greetings,
Joachim

-- 
Joachim nomeata Breitner
  mail: [EMAIL PROTECTED] | ICQ# 74513189 | GPG-Key: 4743206C
  JID: [EMAIL PROTECTED] | http://www.joachim-breitner.de/
  Debian Developer: [EMAIL PROTECTED]


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Visual Haskell projects cannot be created

2006-06-26 Thread Kenneth Adams
Hi there,
 
I was pleased to find a Visual Studio compatible version of Haskell (my company 
has just started using a Haskell based language and I need to learn the 
language). The install went smoothly but I could create neither a console 
Haskell project nor a Haskell library project - Visual Studio reported the 
cabals had not been installed.
 
Regards,
 
Ken Adams
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #802: Allow two packages to use the same module name

2006-06-26 Thread GHC
#802: Allow two packages to use the same module name
-+--
Reporter:  simonpj   |Owner:
Type:  task  |   Status:  new   
Priority:  normal|Milestone:  6.6   
   Component:  Compiler  |  Version:
Severity:  normal| Keywords:
  Os:  Unknown   |   Difficulty:  Difficult (1 week)
Architecture:  Unknown   |  
-+--
See [wiki:GhcPackages]

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/802
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: ASSERTION FAILED: file GC.c, line 1352

2006-06-26 Thread Simon Marlow

Joachim Breitner wrote:


I have created a small app here, using gtk and hsql, and I sometimes get
crashes with this debug message:

internal error: ASSERTION FAILED: file GC.c, line 1352

What information do you need to further debug this, or what can I do
myself to find the problem?


We normally need a reproducible test case, which means we'll need the 
code for your example, together with all relevant information: versions 
of everything (GHC, gcc, GTK, HSQL, etc.), and what platform you're 
using.  It's best if you can put all this information into a new ticket 
in the bug tracker: http://hackage.haskell.org/trac/ghc/.


Cheers,
Simon
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: ghc 6.4.1 failed to build on IRIX64 6.5.29

2006-06-26 Thread Simon Marlow

Andrew Jones wrote:


/tmp/ghc363448.lpp:0: internal compiler error: Abort
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.
ghc: 165577416 bytes, 35 GCs, 565100/969672 avg/max bytes residency (2
samples), 17M in use, 0.02 INIT (0.00 elapsed), 6.26 MUT (19.68
elapsed), 0.29 GC (0.41 elapsed) :ghc
gmake[2]: *** [depend] Error 1
gmake[1]: *** [boot] Error 1
gmake[1]: Leaving directory `/disk2/src/ghc-6.4.1/ghc'
gmake: *** [build] Error 1
[EMAIL PROTECTED]


This one appears to be a crash in gcc, not much we can do about that I'm 
afraid.  Try a different version of gcc.


Cheers,
Simon
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: GHC 6.2.2 and 6.4.1 on IRIX64 both failed, this time with new error

2006-06-26 Thread Simon Marlow

Andrew Jones wrote:

This is the failed 6.4.1 build, but when using 3.4.6 instead of 3.4.0,
both 6.2.2 and 6.4.1 fail this way.

[EMAIL PROTECTED] --version
gcc (GCC) 3.4.6

[EMAIL PROTECTED] -aR
IRIX64 godot 6.5 6.5.29f 01090133 IP27

[EMAIL PROTECTED] --version
The Glorious Glasgow Haskell Compilation System, version 6.2



==fptools== gmake all -wr;
 in /disk2/src/ghc-6.4.1/ghc/rts

../../ghc/compiler/ghc-inplace -L/usr/freeware/lib64 -O2 -static -I.
-#include Prelude.h -#include Rts.h -#include RtsFlags.h -#include
RtsUtils.h -#include StgRun.h -#include Schedule.h -#include Printer.h
-#include Sanity.h -#include STM.h -#include Storage.h -#include
SchedAPI.h -#include Timer.h -#include Itimer.h -#include ProfHeap.h
-#include LdvProfile.h -#include Profiling.h -#include Apply.h -fvia-C
-dcmm-lint -c Apply.cmm -o Apply.o
Cmm lint error:
  in proc stg_ap_0_ret
in basic block c2
  in assignment:
R1 = I32[R1 + 8 + 0];


This looks like an inconsistency in bit widths somewhere: GHC thinks the 
width of a word is 64, but soemthing else thinks its 32 bits.  I suspect 
ghc/includes/DerivedConstants.h doesn't agree with 
ghc/includes/ghcautoconf.h.  Perhaps you're not passing -mabi when 
compiling ghc/includes/mkDerivedConstants.h?


Cheers,
Simon
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #803: malloc() without free()

2006-06-26 Thread GHC
#803: malloc() without free()
-+--
Reporter:  guest |Owner: 
Type:  bug   |   Status:  new
Priority:  normal|Milestone: 
   Component:  Compiler  |  Version:  6.4.2  
Severity:  normal| Keywords: 
  Os:  Unknown   |   Difficulty:  Unknown
Architecture:  Unknown   |  
-+--
The GHC runtime system contains a lot of malloc()s without any
 corresponding free().
 This normally doesn't matter, but when you build a DLL which gets
 repeatedly loaded
 and unloaded it leads to memory leaks.

 This patch fixes some of the malloc()s without free().

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/803
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #804: Signal handlers always installed, evem in a DLL

2006-06-26 Thread GHC
#804: Signal handlers always installed, evem in a DLL
-+--
Reporter:  guest |Owner: 
Type:  bug   |   Status:  new
Priority:  normal|Milestone: 
   Component:  Compiler  |  Version:  6.4.2  
Severity:  normal| Keywords: 
  Os:  Unknown   |   Difficulty:  Unknown
Architecture:  Unknown   |  
-+--
Even when building a DLL the GHC runtime system will install signal
 handlers for SIGINT, etc.  This done in RtsStartup.c by calling
 initUserSignals() and initDefaultHandlers().
 This is all good when running a standalone program, but very dubious if
 generating a DLL.  For a DLL it's likely that the main program will handle
 signals, and the GHC-RTS should keep its greedy little paws away from the
 signals. :)
 A flag to control this would be appreciated.

   -- Lennart

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/804
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #805: Too many workers; runaway worker creation?

2006-06-26 Thread GHC
#805: Too many workers; runaway worker creation?
-+--
Reporter:  [EMAIL PROTECTED]  |Owner: 
Type:  bug   |   Status:  new
Priority:  normal|Milestone:  6.6
   Component:  Runtime System|  Version:  6.5
Severity:  blocker   | Keywords: 
  Os:  Linux |   Difficulty:  Unknown
Architecture:  x86   |  
-+--
See the attached code.  Use make to compile and you should get an
 executable file called Bug.bin, then you can run it by typing the
 command ./Bug.bin N where N is the number of concurrent threads.

 For N=32. The program works fine. It will simply loop and you need
 another terminal to kill it.

 For N32, it always crashes immediately:

 {{{
 $ ./Bug.bin 33
 Bug.bin: internal error: too many workers; runaway worker creation?
 (GHC version 6.5.20060620 for i386_unknown_linux)
 Please report this as a GHC bug:
 http://www.haskell.org/ghc/reportabug
 Aborted
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/805
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #806: internal error: asyncRead# on threaded RTS with HAppS -threaded

2006-06-26 Thread GHC
#806: internal error: asyncRead# on threaded RTS with HAppS -threaded
---+
Reporter:  [EMAIL PROTECTED]  |Owner: 
Type:  bug |   Status:  new
Priority:  normal  |Milestone: 
   Component:  Compiler|  Version:  6.4.2  
Severity:  normal  | Keywords: 
  Os:  Windows |   Difficulty:  Unknown
Architecture:  x86 |  
---+
All HAppS (http://happs.org/HAppS/README.html) applications fail with an
 internal error: asyncRead# when compiled with the  -threaded option.

 To reproduce the error:
 - compile any of the apps in the example subdirectory with -threaded and
 access it over the net (http://localhost:8000).

 For example:

 ghc --make -v -fallow-overlapping-instances -fglasgow-exts -threaded
 httpd.hs -o httpd

 The same programs compiled without -threaded work fine.

 Tested on Windows XP with latest SP/patches and gcc 6.4.2.

 Let me know if you would like more info or the full compilation trace.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/806
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs