
Hi I am just starting to learn Haskell (and FP in general). I've printed a copy of Yet Another Haskell Tutorial[1], and I wanted to work through it simultaneously using Ghc and Yhc. I've done this so far: % darcs get --partial http://darcs.haskell.org/yhc % scons But I get this error:
darcs get --partial --repo-name=depends/cpphs http://www.cs.york.ac.uk/fp/yhc/dependencies/cpphs
darcs failed: Failed to download URL http://www.cs.york.ac.uk/fp/yhc/dependencies/cpphs/_darcs/patches/2005122014... : HTTP response code said error
Running scons again give the following output:
40> ../Documents/Development/haskell/yhc % scons scons: Reading SConscript files ... Building version 0.7.0-20080514104547-custom. Checking for architecture... (cached) x86 Checking for operating system... (cached) darwin Checking for Subversion binary... (cached) "svn" Checking for Subversion version... (cached) Found version 1.5.0. Checking for GHC binary... (cached) "ghc" Checking for GHC version 6.4.1 or later... (cached) Found version 6.8.3. Checking for C header file gmp.h... (cached) yes Checking for mpz_t integ; mpz_init (integ) in C library gmp... (cached) yes Checking for libgmp version... (cached) 4.2.2
scons: warning: The env.TargetSignatures() method is deprecated; convert your build to use the env.Decider() method instead. File "/Users/ashleymoran/Documents/Development/haskell/yhc/ SConstruct", line 87, in <module> Bootstrapping... build/SConscript.cpphs -> depends/cpphs/SConscript Done.
scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead. File "/Users/ashleymoran/Documents/Development/haskell/yhc/depends/ ctypes/libffi/SConscript", line 6, in <module> scons: done reading SConscript files. scons: Building targets ... scons: *** Source `depends/ctypes/libffi/src/x86/ffi_darwin.c' not found, needed by target `depends/ctypes/libffi/src/x86/ ffi_darwin.o'. Stop. scons: building terminated because of errors.
Can anyone help me get Yhc building? Thanks Ashley [1] http://en.wikibooks.org/wiki/Haskell/YAHT -- http://www.patchspace.co.uk/ http://aviewfromafar.net/

Hi Ashley, Unfortunately Yhc is not that well maintained or usable - the GHC compiler is a lot more robust. If you want to work through something like YAHT with two compilers, I'd recommend Hugs and GHC.
darcs get --partial --repo-name=depends/cpphs http://www.cs.york.ac.uk/fp/yhc/dependencies/cpphs
darcs failed: Failed to download URL http://www.cs.york.ac.uk/fp/yhc/dependencies/cpphs/_darcs/patches/2005122014...:
Weird. I will check this one out - sounds very suspicious.
scons: *** Source `depends/ctypes/libffi/src/x86/ffi_darwin.c' not found, needed by target `depends/ctypes/libffi/src/x86/ffi_darwin.o'. Stop. scons: building terminated because of errors.
It looks like you are building on Mac, which I know people have had difficulty with in the past. I'm not sure if anyone has figured it out yet? Thanks Neil

On Jul 14, 2008, at 11:21 am, Neil Mitchell wrote:
Unfortunately Yhc is not that well maintained or usable - the GHC compiler is a lot more robust. If you want to work through something like YAHT with two compilers, I'd recommend Hugs and GHC.
Hi Neil I was under the impression that the Yhc was still being developed, although the repo has no patches for the last few months. What's its likely future? The reason I was looking at Yhc is that in the long run (aka when I get time) I'd like to learn more about compilers and virtual machines. So I'm using GHC to learn Haskell because I know it will work, but my interest was in Yhc as project rather than just a Haskell compiler. Yhc looks a lot more approachable (I think GHC is something like 100kloc?) and there's already some work done to make it compile to other environments, so I figured it'd be more fun to hack. Would Yhc be suitable for my learning purposes or could you recommend something else?
darcs failed: Failed to download URL http://www.cs.york.ac.uk/fp/yhc/dependencies/cpphs/_darcs/patches/2005122014... :
Weird. I will check this one out - sounds very suspicious.
Looks like the patch file is just plain missing.
scons: *** Source `depends/ctypes/libffi/src/x86/ffi_darwin.c' not found, needed by target `depends/ctypes/libffi/src/x86/ffi_darwin.o'. Stop. scons: building terminated because of errors.
It looks like you are building on Mac, which I know people have had difficulty with in the past. I'm not sure if anyone has figured it out yet?
Yeah - I'm using OS X 10.5. I could try it in a FreeBSD or Linux VM, although if the cpphs repo is unavailable I don't suppose I'd have much luck. Incidentally I did try replacing the cpphs darcs repo with an unpacked tarball source[1], but that doesn't help. It's also interesting to note that cpphs (version 1.3) is in MacPorts and compiles fine. I haven't looked at it further, I simply carried on working with GHC alone. Cheers Ashley [1] http://www.cs.york.ac.uk/fp/cpphs/#download -- http://www.patchspace.co.uk/ http://aviewfromafar.net/
participants (2)
-
Ashley Moran
-
Neil Mitchell