Bcc: Re: Problems with ghc 4.00 and hdirect

1998-11-19 Thread Manuel M. T. Chakravarty




Ralf Comtesse [EMAIL PROTECTED] wrote,

 I have problems using hdirect-current on my system. I have the
 ghc-4.00 as an rpm-Distribution on a Debian Linux system and used alien
 to install it. 
 
 Wenn I try to compile hdirect. 'make boot' and 'make' work fine but
 'make lib' gives a segmentation fault:

Did you successfully compile any other programs with this
installation of ghc-4.00?  Which version of the C-library do 
you have on your system (I built the rpm against
glibc-2.0.7)?

Manuel




RE: Weekly GHC-4.00 grumbling...

1998-11-19 Thread Simon Marlow

 Here the results from trying to compile today's GHC-4.00:

Thanks; all fixed.

-- 
Simon Marlow 
Microsoft Research Ltd., Cambridge, U.K.



RE: Problems with ghc 4.00 and hdirect

1998-11-19 Thread Sigbjorn Finne (Intl Vendor)


Ralf Comtesse [EMAIL PROTECTED] writes:
 
 Hello,
 
 I have problems using hdirect-current on my system. I have the
 ghc-4.00 as an rpm-Distribution on a Debian Linux system and 
 used alien to install it. 
 
 Wenn I try to compile hdirect. 'make boot' and 'make' work fine but
 'make lib' gives a segmentation fault:
 

Yup, as mentioned in the announce msg,

  http://www.dcs.gla.ac.uk/mail-www/haskell/msg01029.html

using the hdirect sources with ghc-4.00 is not recommended - use 
ghc-3.03 instead.

--Sigbjorn

PS - you may have better luck with 4.00 if you compile the hdirect
sources with '-O -dcore-lint', but no guarantees.



GHC 3.03 produces erroneous programs.

1998-11-19 Thread Martin Lange

  Hi,

we have compiled GHC version 3.03 under Solaris and under Linux without
any serious errors. The compilation under Linux works well, but the Solaris
binary only produces code that ends up in bus errors, no matter what it
should do.

Below is the output of  the compilation of Main.hs which  is the well-known
hello-world test file, just as it is suggested in the documentation. It is
followed by what "truss hello" has reported.

Thanks for any help,

Martin



menelaos [~] 125) ghc -v -o hello Main.hs
The Glorious Glasgow Haskell Compilation System, version 3.03, patchlevel 0

Effective command line: -v -o hello

Ineffective C pre-processor:
echo '{-# LINE 1 "Main.hs" -}'  /tmp/ghc4865.cpp  cat Main.hs  
/tmp/ghc4865.cpp
0.00user 0.01system 0:00.01elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps

Haskell compiler:
/usr/local/lib/hsc ,-W ,/tmp/ghc4865.cpp  -fignore-interface-pragmas 
-fomit-interface-pragmas -fsimplify [
-ffloat-lets-exposing-whnf -ffloat-primops-ok -fcase-of-case -fdo-case-elim 
-freuse-con -fpedantic-bottoms -fclone-binds
-fmax-simplifier-iterations4  ]   -fwarn-overlapping-patterns -fwarn-missing-methods 
-fwarn-duplicate-exports
-fhi-version=303 -himap=.%.hi:/usr/local/lib/imports/std%.hi   -v 
-hifile=/tmp/ghc4865.hi -S=/tmp/ghc4865.s -F= -FH=
+RTS -H600 -K100
Glasgow Haskell Compiler, version3.03, for Haskell 1.4
1.50user 0.08system 0:01.62elapsed 97%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps

Pin on Haskell consistency info:
echo '
.text
hsc.Main.hs.33.0..:'  /tmp/ghc4865.s
0.00user 0.01system 0:00.01elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps
*** New hi file follows...
_interface_ Main 303
_instance_modules_
IO PrelAddr PrelArr PrelBounded PrelCCall PrelConc PrelForeign PrelIOBase PrelNum

_usages_
IO 1 :: putStr 1;
PrelBase 1 :: $dEval0 1 $dEval1 1 $dEvalBool0 1 $dEvalChar0 1 $dEvalDouble0 1 
$dEvalInt0 1 Eval 1 String 1;
PrelIOBase 1 :: $dEvalIO0 1 $dEvalIOResult0 1 IO 1 IOResult 1;
_exports_
Main main;
_declarations_
main _:_ PrelIOBase.IO PrelBase.() ;;


ghc: module version unchanged at 1

Replace .hi file, if changed:
cmp -s Main.hi /tmp/ghc4865.hi-new || ( rm -f Main.hi  cp 
/tmp/ghc4865.hi-new Main.hi )
0.00user 0.00system 0:00.01elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps

Unix assembler:
gcc -o Main.o -c  /tmp/ghc4865.s
0.02user 0.01system 0:00.17elapsed 17%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps

Linker:
gcc -v -u PrelBase_Z91Z93_closure -u PrelBase_IZh_static_info -u 
PrelBase_CZh_static_info -u
PrelBase_False_inregs_info -u PrelBase_True_inregs_info -u DEBUG_REGS -o hello Main.o 
/usr/local/lib/TopClosure.o
-L/usr/local/lib  -lHS -lHS_cbits -lHSrts -lHSclib -lgmp -lm
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/specs
gcc version 2.8.1
 /usr/local/sparc-sun-solaris2.6/bin/ld -V -Y P,/usr/ccs/lib:/usr/lib -Qy -o hello -u 
PrelBase_Z91Z93_closure -u
PrelBase_IZh_static_info -u PrelBase_CZh_static_info -u PrelBase_False_inregs_info -u 
PrelBase_True_inregs_info -u
DEBUG_REGS /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/crt1.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/crti.o /usr/ccs/lib/values-Xa.o
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/crtbegin.o -L/usr/local/lib
-L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 
-L/usr/local/sparc-sun-solaris2.6/lib -L/usr/ccs/bin -L/usr/ccs/lib
-L/usr/local/lib Main.o /usr/local/lib/TopClosure.o -lHS -lHS_cbits -lHSrts -lHSclib 
-lgmp -lm -lgcc -lc -lgcc
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/crtend.o 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/crtn.o
GNU ld version 2.9.1 (with BFD 2.9.1)
  Supported emulations:
   elf32_sparc
0.56user 0.16system 0:01.56elapsed 46%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps
Checking consistency of: hello

rm -f /tmp/ghc4865*





menelaos [~] 126) hello
Bus error (core dumped)





menelaos [~] 127) truss hello
execve("./hello", 0xEAD0, 0xEAD8)  argc = 1
open("/usr/ccs/lib/libm.so.1", O_RDONLY)Err#2 ENOENT
open("/usr/lib//libm.so.1", O_RDONLY)   = 3
fstat(3, 0xE668)= 0
mmap(0x, 8192, PROT_READ|PROT_EXEC, MAP_SHARED, 3, 0) = 0xEF7B
mmap(0x, 155648, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF78
munmap(0xEF796000, 57344)   = 0
mmap(0xEF7A4000, 7309, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 
81920) = 0xEF7A4000
close(3)= 0
open("/usr/ccs/lib/libc.so.1", O_RDONLY)Err#2 ENOENT
open("/usr/lib//libc.so.1", O_RDONLY)   = 3
fstat(3, 0xE668)= 0
mmap(0xEF7B, 8192, 

Weekly GHC-4.00 grumbling...

1998-11-19 Thread Sven Panne

Here the results from trying to compile today's GHC-4.00:

   * fptools/ghc/rts/StgPrimFloat.c still uses union ieee754_double
 (name clash with /usr/include/ieee754.h).

   * Compiling fptools/ghc/lib/std/PrelDynamic.lhs fails with:

PrelDynamic.lhs:13: Could not find valid interface file
`Prelude'

 Reason: {-# OPTIONS -fno-implicit-prelude #-} comes *after* a
 #ifndef __HUGS__-line, but the driver stops looking for options
 after such a line. Quick hack: Swap both lines. Doing it right
 would probably exceed my Perl-knowledge (-willingness? ;-).

   * The compilation of fptools/ghc/lib/std/Exception.lhs dies with:

Exception.lhs:12: Value not in scope: `catchIO'

 and there's no catchIO in the whole Prelude.

-- 
Sven PanneTel.: +49/89/2178-2235
LMU, Institut fuer Informatik FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen  Oettingenstr. 67
mailto:[EMAIL PROTECTED]D-80538 Muenchen
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne



Some more bugs

1998-11-19 Thread Ralf Hinze

Hi again,

I tried the binary release of GHC 4.00 on my library of sorting
routines. The compiler fails on
ghc -c -O -W -fglasgow-exts -recomp -H32M QuickSortInPlace.lhs
The error message is not that enlightening ;-).
unimplemented check
On
ghc -c -O -W -fglasgow-exts -recomp -H32M Force.lhs
it produces
StixMacro.lhs:42: Non-exhaustive patterns in function macroCode

Cheers, Ralf




RE: Some more bugs

1998-11-19 Thread Simon Marlow

 I tried the binary release of GHC 4.00 on my library of sorting
 routines. The compiler fails on
   ghc -c -O -W -fglasgow-exts -recomp -H32M QuickSortInPlace.lhs
 The error message is not that enlightening ;-).
   unimplemented check
 On
   ghc -c -O -W -fglasgow-exts -recomp -H32M Force.lhs
 it produces
   StixMacro.lhs:42: Non-exhaustive patterns in function macroCode

Please *don't* use the native code generator in 4.00.  On sparc-sun-solaris2
or any other architecture where the NCG is on by default, add the flag
-fvia-c.

Cheers,
Simon

-- 
Simon Marlow 
Microsoft Research Ltd., Cambridge, U.K.



ghc-4.00, s-s-s binary.

1998-11-19 Thread Alex Ferguson


Note the Strange behaviour below...  Module in question compiles
without -O, but not with...

Slainte,
Alex.
_


oconnor.ucc.ie:~/filt4: make OPT=-O
ghc-4.00 -c GalileoModules.lhs -H30m  -K2M -recomp -fglasgow-exts -cpp 
-syslib misc -Rgc-stats -dshow-passes -fmax-simplifier-iterations4 
-funfolding-use-threshold-0 -optC-fallow-undecidable-instances -fvia-C -O
*** Reader:
*** Renamer:
 
GalileoModules.lhs:1: Warning:
Failed to find (optional) interface decl for
`PrelException!catchIO'
desired at
PrelIOBase.hi:99

 
GalileoModules.lhs:1:
Could not find valid interface file `PrelException'


Compilation had errors
*** Error code 1
make: Fatal error: Command failed for target `GalileoModules.o'
oconnor.ucc.ie:~/filt4: make 
ghc-4.00 -c GalileoModules.lhs -H30m  -K2M -recomp -fglasgow-exts -cpp 
-syslib misc -Rgc-stats -dshow-passes -fmax-simplifier-iterations4 
-funfolding-use-threshold-0 -optC-fallow-undecidable-instances -fvia-C 
*** Reader:
*** Renamer:
*** TypeCheck:
*** DeSugar:
*** Desugar
*** Core2Core:
*** Simplify
*** Tidy Core
*** Core2Stg:
*** Stg2Stg:
*** CodeGen:
*** CodeOutput:
ghc-4.00: module version changed to 2; reason: usages changed