ANNOUNCE: hsclock-0.01.0 release
I am pleased to announce the initial release of hsclock, another gtk+hs "applet" I've written. hsclock is an accurate multi-zone gtk clock, which can also run in a tty. hsclock uses gtk timeouts to synchronise the time updates to occur on the second or minute "tick" (dependent on the clock format string), making display updates accurate to within milliseconds. More info, source and rpm's are available at: http://www.01.246.ne.jp/~juhp/haskell/hsclock/ As usual feedback and comments welcome. Enjoy, Jens ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
ANNOUNCE: linkchk-0.02 released
Happy to announce linkchk version 0.02 is out. >From the NEWS file: * width of window is now fixed * new options to set: ** window width ** host to be pinged ** interface * checks ifconfig to see if interface is up * use implicit parameters for command-line options The tarball and i386 rpm are now available on: http://www.01.246.ne.jp/~juhp/haskell/linkchk/ linkchk is also on freshmeat.net. Enjoy, Jens ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
ANNOUNCE: linkchk-0.01 released
Two months after the first release, linkchk version 0.01 is released! New in this version: * displays ping time instead of ok status * IPv6 support * command option to set delay between pings * uses netstat instead of /proc/net/route * uses popenhs * uses automake and autoconf The source and rpm files are available from: http://www.01.246.ne.jp/~juhp/haskell/linkchk/ Feedback, comments and code contributions appreciated, Jens ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
ANNOUNCE: popenhs-0.00 released
I am happy to announce the first release of popenhs, version 0.00. popenhs is a very small Haskell library, based on runProcess in hslibs' posix library. It provides lazy output from subprocesses through two functions popen2 and popen3. The source and rpm files are available from: http://www.01.246.ne.jp/~juhp/haskell/popenhs/ I welcome comments and feedback. Jens ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: trouble with ghc-4.08.2-1.i386.rpm
"Jens-Ulrik Petersen" <[EMAIL PROTECTED]> writes: > I tried ghc-4.08.2-1.i386.rpm (both the RH-6 rpm and the RH-7 rpm) on > my Linux box running RH rawhide-2001-02-06 (a touch newer than the > RH-7.0.90 beta release Fisher), which both use glibc-2.2.1. > > When I compile a program, eg a test program like "test.hs": [:] > I get [..] linking errors: [:] > I think these are related to gmp2. Oops, I just realised that I has gmp-devel-3 installed, which was causing my linking problem. Installing gmp-devel-2 and everything is as it should be. > (BTW are there plans to upgrade to gmp3, which seems to be standard > now in the Linux world?) Any comments on this? Thanks, Jens ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
trouble with ghc-4.08.2-1.i386.rpm
I tried ghc-4.08.2-1.i386.rpm (both the RH-6 rpm and the RH-7 rpm) on my Linux box running RH rawhide-2001-02-06 (a touch newer than the RH-7.0.90 beta release Fisher), which both use glibc-2.2.1. When I compile a program, eg a test program like "test.hs": module Main (main) where main = putStrLn "Hello!" I get a put linking errors: Start of included text ---8<--- cut here - % ghc test.hs /usr/lib/ghc-4.08.2/libHSrts.a(Storage.o): In function `initStorage': Storage.o(.text+0x2c2): undefined reference to `mp_set_memory_functions' /usr/lib/ghc-4.08.2/libHSrts.a(PrimOps.o): In function `addr2Integerzh_fast': PrimOps.o(.text+0x4a6): undefined reference to `mpz_init_set_str' /usr/lib/ghc-4.08.2/libHSrts.a(PrimOps.o): In function `plusIntegerzh_fast': PrimOps.o(.text+0x6fa): undefined reference to `mpz_init' PrimOps.o(.text+0x710): undefined reference to `mpz_add' /usr/lib/ghc-4.08.2/libHSrts.a(PrimOps.o): In function `minusIntegerzh_fast': PrimOps.o(.text+0x78e): undefined reference to `mpz_init' PrimOps.o(.text+0x7a4): undefined reference to `mpz_sub' /usr/lib/ghc-4.08.2/libHSrts.a(PrimOps.o): In function `timesIntegerzh_fast': PrimOps.o(.text+0x822): undefined reference to `mpz_init' PrimOps.o(.text+0x838): undefined reference to `mpz_mul' /usr/lib/ghc-4.08.2/libHSrts.a(PrimOps.o): In function `gcdIntegerzh_fast': PrimOps.o(.text+0x8b6): undefined reference to `mpz_init' PrimOps.o(.text+0x8cc): undefined reference to `mpz_gcd' /usr/lib/ghc-4.08.2/libHSrts.a(PrimOps.o): In function `quotIntegerzh_fast': PrimOps.o(.text+0x94a): undefined reference to `mpz_init' PrimOps.o(.text+0x960): undefined reference to `mpz_tdiv_q' /usr/lib/ghc-4.08.2/libHSrts.a(PrimOps.o): In function `remIntegerzh_fast': PrimOps.o(.text+0x9de): undefined reference to `mpz_init' PrimOps.o(.text+0x9f4): undefined reference to `mpz_tdiv_r' /usr/lib/ghc-4.08.2/libHSrts.a(PrimOps.o): In function `divExactIntegerzh_fast': PrimOps.o(.text+0xa72): undefined reference to `mpz_init' PrimOps.o(.text+0xa88): undefined reference to `mpz_divexact' /usr/lib/ghc-4.08.2/libHSrts.a(PrimOps.o): In function `quotRemIntegerzh_fast': PrimOps.o(.text+0xb06): undefined reference to `mpz_init' PrimOps.o(.text+0xb15): undefined reference to `mpz_init' PrimOps.o(.text+0xb2f): undefined reference to `mpz_tdiv_qr' /usr/lib/ghc-4.08.2/libHSrts.a(PrimOps.o): In function `divModIntegerzh_fast': PrimOps.o(.text+0xbbe): undefined reference to `mpz_init' PrimOps.o(.text+0xbcd): undefined reference to `mpz_init' PrimOps.o(.text+0xbe7): undefined reference to `mpz_fdiv_qr' collect2: ld returned 1 exit status End of included text -8<--- and here - I think these are related to gmp2. (BTW are there plans to upgrade to gmp3, which seems to be standard now in the Linux world?) I can compile ok with nhc98 (from "nhc98-1.02-1.i386.rpm"). Any ideas why the ghc rpms aren't working for me? Best wishes, Jens ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: problems ld'ing current ghc
Simon Marlow <[EMAIL PROTECTED]> writes: > > Apart from some warnings (which I don't include in this mail) > > compilation of the current ghc in cvs with ghc-4.06 and egcs-2.91.66 > > now goes smoothly for me, until the linking at the end. > > > > What's going wrong? > > It looks like you might have droppings in your ghc/rts directory. > Try this: > >$ cd fptools/ghc/rts >$ rm ghc3527* >$ make clean && make Thanks that helped. What I now ran "make" again in the top directory, things are again still ok until DriFT is reached: see below. Or should I "make clean && make" in the top directory? Jens : : ==fptools== make all - --no-print-directory -r; in /home/juhp/haskell/ghc/hslibs/tools/DrIFT ../../../ghc/driver/ghc-inplace -o DrIFT -cpp -fglasgow-exts -package text -O DataP.o DrIFT.o Literate.o Pretty.o StandardRules.o ChaseImports.o CommandP.o DigitToInt.o ParseLib2.o PreludData.o RuleUtils.o UserRuleBinary.o UserRuleXml.o UserRules.o /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(Schedule.o): In function `threadStackOverflow': Schedule.o(.text+0x7a0): undefined reference to `PrelException_stackOverflow_closure' /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(Schedule.o): In function `resurrectThreads': Schedule.o(.text+0xdd1): undefined reference to `PrelException_BlockedOnDeadMVar_closure' Schedule.o(.text+0xdd8): undefined reference to `PrelException_NonTermination_closure' /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(Schedule.o): In function `detectBlackHoles': Schedule.o(.text+0xe49): undefined reference to `PrelException_NonTermination_closure' /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(PrimOps.o): In function `putMVarzh_fast': PrimOps.o(.text+0xe8c): undefined reference to `PrelException_PutFullMVar_closure' collect2: ld returned 1 exit status : :
problems ld'ing current ghc
Apart from some warnings (which I don't include in this mail) compilation of the current ghc in cvs with ghc-4.06 and egcs-2.91.66 now goes smoothly for me, until the linking at the end. What's going wrong? Jens ===fptools== Recursively making `all' in DrIFT DtdToHaskell Xtract ... PWD = /home/juhp/haskell/ghc/hslibs/tools ==fptools== make all - --no-print-directory -r; in /home/juhp/haskell/ghc/hslibs/tools/DrIFT ../../../ghc/driver/ghc-inplace -o DrIFT -cpp -fglasgow-exts -package text -O DataP.o DrIFT.o Literate.o Pretty.o StandardRules.o ChaseImports.o CommandP.o DigitToInt.o ParseLib2.o PreludData.o RuleUtils.o UserRuleBinary.o UserRuleXml.o UserRules.o /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(GC.o)(.data+0x0): multiple definition of `g0s0_pcnt_kept' /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(ghc3527.o)(.data+0x14): first defined here /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(GC.o): In function `GarbageCollect': GC.o(.text+0x0): multiple definition of `GarbageCollect' /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(ghc3527.o)(.text+0x0): first defined here /usr/bin/ld: Warning: size of symbol `GarbageCollect' changed from 2646 to 2673 in GC.o /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(GC.o): In function `isAlive': GC.o(.text+0xc58): multiple definition of `isAlive' /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(ghc3527.o)(.text+0xc2c): first defined here /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(Schedule.o): In function `threadStackOverflow': Schedule.o(.text+0x7a0): undefined reference to `PrelException_stackOverflow_closure' /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(Schedule.o): In function `resurrectThreads': Schedule.o(.text+0xdd1): undefined reference to `PrelException_BlockedOnDeadMVar_closure' Schedule.o(.text+0xdd8): undefined reference to `PrelException_NonTermination_closure' /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(Schedule.o): In function `detectBlackHoles': Schedule.o(.text+0xe49): undefined reference to `PrelException_NonTermination_closure' /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(ghc3527.o): In function `GarbageCollect': ghc3527.o(.text+0x2c): undefined reference to `N' ghc3527.o(.text+0x32): undefined reference to `major_gc' ghc3527.o(.text+0x42): undefined reference to `scavenge_large' ghc3527.o(.text+0x52): undefined reference to `N' ghc3527.o(.text+0x7e): undefined reference to `N' ghc3527.o(.text+0x98): undefined reference to `N' ghc3527.o(.text+0xaa): undefined reference to `major_gc' ghc3527.o(.text+0xc4): undefined reference to `major_gc' ghc3527.o(.text+0xe0): undefined reference to `zero_mutable_list' ghc3527.o(.text+0x113): undefined reference to `N' ghc3527.o(.text+0x203): undefined reference to `N' ghc3527.o(.text+0x2f8): undefined reference to `N' ghc3527.o(.text+0x32b): undefined reference to `N' ghc3527.o(.text+0x352): undefined reference to `scavenge_mut_once_list' ghc3527.o(.text+0x358): undefined reference to `evac_gen' ghc3527.o(.text+0x39c): undefined reference to `scavenge' ghc3527.o(.text+0x3af): undefined reference to `N' ghc3527.o(.text+0x3da): undefined reference to `scavenge_mutable_list' ghc3527.o(.text+0x3e0): undefined reference to `evac_gen' ghc3527.o(.text+0x423): undefined reference to `scavenge' ghc3527.o(.text+0x436): undefined reference to `N' ghc3527.o(.text+0x43e): undefined reference to `evac_gen' ghc3527.o(.text+0x452): undefined reference to `old_weak_ptr_list' ghc3527.o(.text+0x462): undefined reference to `weak_done' ghc3527.o(.text+0x472): undefined reference to `old_all_threads' ghc3527.o(.text+0x482): undefined reference to `resurrected_threads' ghc3527.o(.text+0x48c): undefined reference to `major_gc' ghc3527.o(.text+0x4a2): undefined reference to `major_gc' ghc3527.o(.text+0x4b3): undefined reference to `scavenge_static' ghc3527.o(.text+0x515): undefined reference to `evac_gen' ghc3527.o(.text+0x52b): undefined reference to `scavenge' ghc3527.o(.text+0x581): undefined reference to `major_gc' ghc3527.o(.text+0x59c): undefined reference to `major_gc' ghc3527.o(.text+0x690): undefined reference to `N' ghc3527.o(.text+0x6f2): undefined reference to `N' ghc3527.o(.text+0x715): undefined reference to `N' ghc3527.o(.text+0x987): undefined reference to `N' ghc3527.o(.text+0xa00): undefined reference to `major_gc' ghc3527.o(.text+0xa0e): undefined reference to `zero_static_object_list' ghc3527.o(.text+0xa1c): undefined reference to `old_weak_ptr_list' ghc3527.o(.text+0xa27): undefined reference to `resurrected_threads' ghc3527.o(.text+0xa35): undefined reference to `N' /home/juhp/haskell/ghc/ghc/driver/../rts/libHSrts.a(ghc3527.o): In function `t
another patch for 4.06 compilation
Here's another patch to make ghc-cvs compile (almost[1]) with ghc-4.06. Jens ps Is this the wrong forum for patches? Should I send patches to glasgow-haskell-bugs in the future? Footnotes: [1] see next mail about linking problems Index: Makefile === RCS file: /cvs/fptools/ghc/driver/Makefile,v retrieving revision 1.40 diff -u -r1.40 Makefile --- Makefile2000/06/30 09:46:04 1.40 +++ Makefile2000/07/05 22:05:33 @@ -10,11 +10,11 @@ HC=$(GHC_INPLACE) endif -ghc_406_at_least = $(shell expr "$(GhcMinVersion)" \>= 6) +ghc_407_at_least = $(shell expr "$(GhcMinVersion)" \>= 7) ifeq "$(ghc_406_at_least)" "1" SRC_HC_OPTS += -fglasgow-exts -cpp -package concurrent -package posix -package text else -SRC_HC_OPTS += -fglasgow-exts -cpp -syslib concurrent -syslib posix -syslib misc +SRC_HC_OPTS += -fglasgow-exts -cpp -syslib concurrent -syslib posix -syslib text endif HS_PROG = ghc-$(ProjectVersion)
Re: can't compile ghc from cvs
Sven Panne <[EMAIL PROTECTED]> writes: > Sven Panne wrote: > > [...] This has been fixed for 4.07, but as people are supposed to be > > able to build 4.07 with pre-4.07 compilers, I'll change those > > identifiers in the driver sources with something more defensive. > > I've just realised that this is not the true story. You *can* build > 4.07 with <=4.06, but not the CVS version with anything <4.07. But > I'll fix it anyway. Thanks, Sven. I got the idea now. I think you missed one though: patch attached below. Cheers, Jens Index: Main.hs === RCS file: /cvs/fptools/ghc/driver/Main.hs,v retrieving revision 1.14 diff -u -r1.14 Main.hs --- Main.hs 2000/06/25 19:17:57 1.14 +++ Main.hs 2000/06/27 13:53:09 @@ -51,7 +51,7 @@ - -- non-configured things -_Haskell1Version = "5" -- i.e., Haskell 98 +cHaskell1Version = "5" -- i.e., Haskell 98 - -- Usage Message @@ -200,7 +200,7 @@ -- Cpp-related flags GLOBAL_VAR(cpp_flag, False, Bool) hs_source_cpp_opts = global - [ "-D__HASKELL1__="++_Haskell1Version + [ "-D__HASKELL1__="++cHaskell1Version , "-D__GLASGOW_HASKELL__="++cProjectVersionInt , "-D__HASKELL98__" , "-D__CONCURRENT_HASKELL__"
can't compile ghc from cvs
For some time I haven't been able to compile ghc from cvs. Presumably it is due to some local artefact in my cvs copy, but as a ghc learner I don't really know where to start looking. On my Linux Redhat 6.2 box, I have ghc-current, and am compiling with: gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) and have ghc-4.06 installed. "make clean" (or "make distclean") followed by "make boot" gives output ending as below. What's going wrong? Thanks in advance, Jens % make boot : ===fptools== Finished making `boot' in hp2ps hscpp mkdependHS parallel stat2resid prof unlit ... PWD = /home/juhp/haskell/ghc/ghc/utils ==fptools== make boot - --no-print-directory -r; in /home/juhp/haskell/ghc/ghc/driver Creating Config.hs ... done. ===fptools== Recursively making `boot' in mangler split stats ... PWD = /home/juhp/haskell/ghc/ghc/driver ==fptools== make boot - --no-print-directory -r; in /home/juhp/haskell/ghc/ghc/driver/mangler ==fptools== make boot - --no-print-directory -r; in /home/juhp/haskell/ghc/ghc/driver/split ==fptools== make boot - --no-print-directory -r; in /home/juhp/haskell/ghc/ghc/driver/stats ===fptools== Finished making `boot' in mangler split stats ... PWD = /home/juhp/haskell/ghc/ghc/driver /usr/bin/ghc -M -optdep-f -optdep.depend -osuf o-fglasgow-exts -cpp -syslib concurrent -syslib posix -syslib textConfig.hs Main.hs PackageSrc.hs /usr/bin/ghc -fglasgow-exts -cpp -syslib concurrent -syslib posix -syslib text-c Config.hs -o Config.o -osuf o Config.hs:2: Data constructor not in scope: `_ProjectName' Config.hs:3: Data constructor not in scope: `_ProjectVersion' Config.hs:4: Data constructor not in scope: `_ProjectVersionInt' Config.hs:5: Data constructor not in scope: `_ProjectPatchLevel' Config.hs:6: Data constructor not in scope: `_HOSTPLATFORM' Config.hs:7: Data constructor not in scope: `_TARGETPLATFORM' Config.hs:8: Data constructor not in scope: `_CURRENT_DIR' Config.hs:9: Data constructor not in scope: `_GHC_LIB_DIR' Config.hs:10: Data constructor not in scope: `_GHC_RUNTIME_DIR' Config.hs:11: Data constructor not in scope: `_GHC_UTILS_DIR' Config.hs:12: Data constructor not in scope: `_GHC_INCLUDE_DIR' Config.hs:13: Data constructor not in scope: `_GHC_DRIVER_DIR' Config.hs:14: Data constructor not in scope: `_GCC' Config.hs:15: Data constructor not in scope: `_GhcWithNativeCodeGen' Config.hs:16: Data constructor not in scope: `_LeadingUnderscore' Config.hs:17: Data constructor not in scope: `_GHC_MKDEPENDHS' Config.hs:18: Data constructor not in scope: `_GHC_UNLIT' Config.hs:19: Data constructor not in scope: `_GHC_HSCPP' Config.hs:20: Data constructor not in scope: `_GHC_HSC' Config.hs:21: Data constructor not in scope: `_GHC_MANGLER' Config.hs:22: Data constructor not in scope: `_GHC_SPLIT' Config.hs:23: Data constructor not in scope: `_GHC_STATS' Config.hs:24: Data constructor not in scope: `_GHC_SYSMAN' Config.hs:25: Data constructor not in scope: `_EnableWin32DLLs' Config.hs:26: Data constructor not in scope: `_CP' Config.hs:27: Data constructor not in scope: `_RM' Config.hs:28: Data constructor not in scope: `_CONTEXT_DIFF' Config.hs:29: Data constructor not in scope: `_HaveLibGmp' Config.hs:30: Data constructor not in scope: `_GhcWithRegisterised' Config.hs:31: Data constructor not in scope: `_USER_WAY_NAMES' Config.hs:32: Data constructor not in scope: `_USER_WAY_OPTS' Config.hs:37: Data constructor not in scope: `_TMPDIR' Config.hs:38: Data constructor not in scope: `_FPTOOLS_TOP_ABS' Compilation had errors make[2]: *** [Config.o] Error 1 make[1]: *** [boot] Error 1 make: *** [boot] Error 1
ghc-hugs progress/status?
It seems a while since we had any news of recent ghc developments. For those of us who're not following the cvs archive, could the maintainers give us a brief summary of recent progress on the ghc-hugs "marriage" and other recent ghc work? Thanks, Jens