Problems with ghc 4.00 and hdirect
-BEGIN PGP SIGNED MESSAGE- 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: Here is the output: rcc:~/tmp/hdirect-0.12# make lib make -C lib boot && make -C lib all make[1]: Entering directory `/home/rcc/tmp/hdirect-0.12/lib' ../src/ihc -fno-qualified-names -fno-imports - -fout-pointers-are-not-refs -fno-export-lists -c ComPrim.idl -o ComPrim.hs make[1]: *** [ComPrim.hs] Segmentation fault make[1]: *** Deleting file `ComPrim.hs' make[1]: Leaving directory `/home/rcc/tmp/hdirect-0.12/lib' make: *** [lib] Error 2 === and that are the last bits of a 'strace' == open("ComPrim.hs", O_WRONLY|O_NOCTTY) = -1 ENOENT (No such file or directory) lstat("ComPrim.hs", 0xb24c) = -1 ENOENT (No such file or directory) open("ComPrim.hs", O_WRONLY|O_CREAT|O_EXCL|O_NOCTTY, 0666) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 open("ComPrim.hs", O_WRONLY|O_TRUNC|O_NOCTTY) = 4 close(4)= 0 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 brk(0x82dd000) = 0x82dd000 - --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ == Has anybody got an idea? Regards Ralf - Ralf Comtessee-Mail: [EMAIL PROTECTED] Gipsstrasse 15 Tel: +49-30-28599230 10119 Berlin Fax: +49-30-28599231 Member of the Cetus Team. For OO links visit: http://www.cetus-links.org - -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQB1AwUBNlM78Q+XSzNOWOS5AQHDdAMAzNufAKs0V6PWsr6yNsCJz11fDx56saUg gH7YCxICaECLLeNa5XQ6jBeMCOqSy977PB+O/hhUUwKrQBJinMOrNo2fYqmhrE/K kLupvfsMGfPKqapuDowi7aAseFkTsaC0 =NC2P -END PGP SIGNATURE-
odd error.
I get the following error for a ghc-4.00 binary. Even odder is the fact that with a ghc-3.01 binary for the same program, it runs successfully... -- and that the heap size was _not_ 65536-byte. Slainte, Alex. _ oconnor.ucc.ie:~/filt4: galileo struct Loading struct.gal... Heap exhausted; while trying to allocate 0 bytes in a 65536-byte heap; use `+RTS -H' to increase the total heap size.
Can't install H/Direct on Linux with ghc 4.00
I can't get the current H/Direct (0.12) to install on my Linux system with ghc 4.00 (though I used ghc 3.02 to compile ihc). Thanks for any help. - Mark Tullsen Here's what's happening: -- Information about my system: hdirect-0.12 $ uname -a Linux HAGGIS.CS.YALE.EDU 2.0.35 #1 Thu Jul 23 14:01:04 EDT 1998 i686 unknown -- i.e., Red Hat Linux release 5.1 -- What I've Done So Far: cd /usr/local/fptools-3.02; make install (1) -- make ghc-3.02 the compiler -- if I compile with ghc-4.00, ihc core dumps right away -- in step (4). cd /usr/local/hdirect-0.12(2) make boot make cd /usr/local/fptools-4.00; make install (3) -- switch back to ghc-4.00 cd /usr/local/hdirect-0.12(4) make -k lib -- What Happens: -- (granted, some of the following may be bogus thanks to the use of "make -k") hdirect-0.12 $ make -k lib make -C lib boot && make -C lib all make[1]: Entering directory `/usr/local/hdirect-0.12/lib' /usr/local/bin/ghc -M -optdep-f -optdep.depend -optdep-o -optdepo-fglasgow-exts -fno-prune-tydecls -recomp Pointer.lhs HDirect.lhs PointerPrim.hs make[1]: Leaving directory `/usr/local/hdirect-0.12/lib' make[1]: Entering directory `/usr/local/hdirect-0.12/lib' /usr/local/bin/ghc -fglasgow-exts -fno-prune-tydecls -recomp -c Pointer.lhs -o Pointer.o -osuf o Pointer.lhs:265: Value not in scope: `foreignObjToAddr' Pointer.lhs:275: Value not in scope: `foreignObjToAddr' Pointer.lhs:308: Value not in scope: `foreignObjToAddr' Compilation had errors make[1]: *** [Pointer.o] Error 1 /usr/local/bin/ghc -fglasgow-exts -fno-prune-tydecls -recomp -c AutoPrim.hs -o AutoPrim.o -osuf o AutoPrim.hs:8: Could not find valid interface file `Com' AutoPrim.hs:8: Module `Com' does not export `checkHR' AutoPrim.hs:8: Module `Com' does not export `marshalliptr' AutoPrim.hs:8: Module `Com' does not export `IUnknown' AutoPrim.hs:8: Module `Com' does not export `mkIID' AutoPrim.hs:8: Module `Com' does not export `IID' AutoPrim.hs:9: Could not find valid interface file `HDirect' AutoPrim.hs:9: Module `HDirect' does not export `Ptr' AutoPrim.hs:9: Module `HDirect' does not export `sizeofAddr' AutoPrim.hs:9: Module `HDirect' does not export `allocOutPtr' AutoPrim.hs:9: Module `HDirect' does not export `marshallBool' AutoPrim.hs:9: Module `HDirect' does not export `marshallptr' AutoPrim.hs:9: Module `HDirect' does not export `readptr' AutoPrim.hs:9: Module `HDirect' does not export `unmarshallref' AutoPrim.hs:9: Module `HDirect' does not export `trivialFree' AutoPrim.hs:9: Module `HDirect' does not export `doThenFree' AutoPrim.hs:9: Module `HDirect' does not export `sizeofInt32' AutoPrim.hs:9: Module `HDirect' does not export `readInt32' AutoPrim.hs:9: Module `HDirect' does not export `unmarshallString' AutoPrim.hs:9: Module `HDirect' does not export `freeString' AutoPrim.hs:9: Module `HDirect' does not export `sizeofInt16' AutoPrim.hs:9: Module `HDirect' does not export `readInt16' AutoPrim.hs:9: Module `HDirect' does not export `sizeofFloat' AutoPrim.hs:9: Module `HDirect' does not export `readFloat' AutoPrim.hs:9: Module `HDirect' does not export `sizeofDouble' AutoPrim.hs:9: Module `HDirect' does not export `readDouble' AutoPrim.hs:9: Module `HDirect' does not export `readBool' AutoPrim.hs:9: Module `HDirect' does not export `sizeofChar' AutoPrim.hs:9: Module `HDirect' does not export `readChar' AutoPrim.hs:9: Module `HDirect' does not export `unmarshallBool' Compilation had errors make[1]: *** [AutoPrim.o] Error 1 /usr/local/bin/ghc -fglasgow-exts -fno-prune-tydecls -recomp -c ComPrim.hs -o ComPrim.o -osuf o ComPrim.hs:6: Could not find valid interface file `HDirect' ComPrim.hs:10: Could not find valid interface file `Pointer' Compilation had errors make[1]: *** [ComPrim.o] Error 1 /usr/local/bin/ghc -monly-3-regs -fglasgow-exts -fno-prune-tydecls -recomp -c WideString.hs -o WideString.o -osuf o WideString.hs:7: Could not find valid interface file `Pointer' WideString.hs:8: Could not find valid interface file `HDirect' WideString.hs:11: Module `Foreign' does not export `foreignObjToAddr' Compilation had errors make[1]: *** [WideString.o] Error 1 cc -DCOM -c PointerSrc.c -o PointerSrcCom.o In file included from PointerSrc.c:40: comPrim.h:13: parse error before `IID' comPrim.h:13: warning: data definition has no type or storage class comPrim.h:28: parse error before `OLECHAR' comPrim.h:28: warning: data definition has no type or storage class comPrim.h:29: parse error before `*' comPrim.h:29: warning: data definition has no type or storage class comPrim.h:30: parse error before `*' comPrim.h:30: warning: data definition has no type or storage class comPrim.h:32: parse error before `*' comPrim.h:32: warning: data definition has no type or storage class
Hdirect Instalation
Hi there, I am trying to install the hdirect in a sparc-solaris2. Some of the files in the hdirect lib directory assumes that `foreignObjToAddr' is exported by the 'Foreign' module. But that's not the case in the ghc4.0 binary implementation I have downloaded today. Thanks for any help, Genesio. -- marcus{ggn}96: mk -C lib all make: Entering directory `/users/grad/ggn/haskell/hdirect/hdirect-0.12/lib' ghc-4.00 -fglasgow-exts -fno-prune-tydecls -recomp -c Pointer.lhs -o Pointer.o -osuf o Pointer.lhs:265: Value not in scope: `foreignObjToAddr' Pointer.lhs:275: Value not in scope: `foreignObjToAddr' Pointer.lhs:308: Value not in scope: `foreignObjToAddr' Compilation had errors make: *** [Pointer.o] Error 1 make: Leaving directory `/users/grad/ggn/haskell/hdirect/hdirect-0.12/lib' --
[Fwd: Eval class]
I suggested to the hugs folks that the Eval class be remove from hugs, since that was the Haskell98 decision, and since GHC had already done it. I've enclosed Mark's reply. I have no strong opinion on the immediate fate of Eval, but it would be nice if GHC and Hugs agreed. --Jeff | In the last beta of the new hugs, the Eval class was still there. | According to Haskell98 criteria, it should be gone. My perspective: It's all in the name and Hugs 1.4 is aiming at Haskell 1.4, and everything that goes with that, including Eval. Most things in Haskell 98 will be quite easy for us to support, but I think it's best to wait until the final decisions have been made, as changes to Hugs now might need to be undone later. I'm hoping that Haskell 98 will be finished soon enough to give us time to release a corresponding Hugs 98. Of course, some things---like the dissappearance of Eval---are pretty much foregone conclusions. Curiously, browsing the source for the latest betas (either 981112 or the latest version from the Glasgow repository), you might notice a flag called EVAL_INSTANCES. Guess what happens (or, at least, what is supposed to happen) if you set that to zero? (You will, at the very least, need to edit the Prelude.) :-) All the best, Mark
RE: GHC for PowerPC Linux?
> Is there any such thing in the works? Not as such, but we have ports for x86/Linux and PowerPC/AIX, so it shouldn't be too difficult to do PowerPC/Linux. If you're into that sort of thing, please have a go! We can guide you through the porting process. Alternatively, if you provide us with an account on a box we can do the port. Cheers, Simon -- Simon Marlow Microsoft Research Ltd., Cambridge, U.K.
RE: GHC 4.00 -prof problem...
> I would like to try the profiling `quick demo' with -prof -auto-all > - but if I give the -prof on the command line ghc tells me that it > could not find the interface file for Trace, which I set to be a > symbolic link to IOExts.hi: > > 117> ll /public/languages/ghc-4.00/lib/imports/exts/ > total 1144 > drwxrwsr-x 2 laitenbe public 1024 Nov 14 18:35 ./ > drwxrwsr-x 7 laitenbe public 512 Nov 14 18:34 ../ > ... > -rw-rw-r-- 1 laitenbe public 10857 Nov 14 18:33 IOExts.hi > ... > lrwxrwxrwx 1 laitenbe public 9 Nov 14 18:35 > Trace.hi -> IOExts.hi > -rw-rw-r-- 1 laitenbe public 96156 Nov 14 18:33 Word.hi > -rw-rw-r-- 1 laitenbe public 94107 Nov 14 18:33 Word.p_hi This is a very naughty thing to do and shouldn't be allowed. (incidentally, it's failing with -prof because you haven't linked IOExts.p_hi to Trace.p_hi too). If you want this effect, you should to compile a module called Trace which just imports and exports IOExts. "It hurts when I shoot myself in the foot!" "really?" Cheers, Simon -- Simon Marlow Microsoft Research Ltd., Cambridge, U.K.
GHC 4.00 -prof problem...
Hi, I would like to try the profiling `quick demo' with -prof -auto-all - but if I give the -prof on the command line ghc tells me that it could not find the interface file for Trace, which I set to be a symbolic link to IOExts.hi: 117> ll /public/languages/ghc-4.00/lib/imports/exts/ total 1144 drwxrwsr-x 2 laitenbe public 1024 Nov 14 18:35 ./ drwxrwsr-x 7 laitenbe public 512 Nov 14 18:34 ../ ... -rw-rw-r-- 1 laitenbe public 10857 Nov 14 18:33 IOExts.hi ... lrwxrwxrwx 1 laitenbe public 9 Nov 14 18:35 Trace.hi -> IOExts.hi -rw-rw-r-- 1 laitenbe public 96156 Nov 14 18:33 Word.hi -rw-rw-r-- 1 laitenbe public 94107 Nov 14 18:33 Word.p_hi The normal compilation succeeds: 129> /public/languages/ghc-4.00/bin/ghc -c -fvia-C -syslib exts -H45M Avl.hs ghc: module version unchanged at 1 with -prof this result appears: 130> /public/languages/ghc-4.00/bin/ghc -prof -auto-all -c -fvia-C -syslib exts -H45M Avl.hs Avl.hs:3: Could not find valid interface file `Trace' Compilation had errors Did I make a mistake or does this also look strange to you? Jan ___ '---|-- | __, _ _ EMail: [EMAIL PROTECTED] | / | / |/ | WWWeb: http://www.uni-passau.de/~laitenbe/ |/\_/|_/ | |_/ /| Laitenberger --(-|-- \|
RE: 4.00, s-s-s, linker errors.
> That was the one... One last (?) problem... This program: > > module Main where > > import IOExts > > main = trace "Boogger" print 1 My fault again. New binary dist in the usual place. The old one had a mixture of split and non-split libraries for some strange reason. Cheers, Simon -- Simon Marlow Microsoft Research Ltd., Cambridge, U.K.
Compilation of ghc-4.00 with glibc2
Hi I was wondering if anyone had got GHC-4.00 to compile for i386-unknown-linux with glibc2, I tried to boot-strap the compilation but that failed. Can anyone help? Many thanks Andy -- * * Andrew Cheadleemail: [EMAIL PROTECTED] * * Department of Computing * * Imperial College * * University of London * *