Seo Sanghyeon | 23 Sep 2009 13:59
Picon

Can't build

Hello,

I can't build Yhc. I followed instructions here:
http://www.haskell.org/haskellwiki/Yhc/Building

darcs get finished fine. When I simply typed "scons" into a console
window, I get:

tinuviel <at> debian:~/haskell/yhc$ scons
scons: Reading SConscript files ...
IOError: [Errno 2] No such file or directory: '_darcs/inventory':
  File "/home/tinuviel/haskell/yhc/Sconstruct", line 22:
    setup_version(env, Configure, ARGUMENTS)
  File "/home/tinuviel/haskell/yhc/build/configure.py", line 49:
    env["ENV"]["VERSION"] = getVersion(vtype)
  File "/home/tinuviel/haskell/yhc/build/version.py", line 8:
    lines = filter(lambda x: x.find("**") != -1,
open("_darcs/inventory", "r").readlines())

And there is no _darcs/inventory file indeed. Any idea?

--

-- 
Seo Sanghyeon
Samuel Bronson | 23 Sep 2009 16:05
Picon
Gravatar

Re: Can't build

On Wed, Sep 23, 2009 at 7:59 AM, Seo Sanghyeon <sanxiyn <at> gmail.com> wrote:
> Hello,
>
> I can't build Yhc. I followed instructions here:
> http://www.haskell.org/haskellwiki/Yhc/Building
>
> darcs get finished fine. When I simply typed "scons" into a console
> window, I get:
>
> tinuviel <at> debian:~/haskell/yhc$ scons
> scons: Reading SConscript files ...
> IOError: [Errno 2] No such file or directory: '_darcs/inventory':
>  File "/home/tinuviel/haskell/yhc/Sconstruct", line 22:
>    setup_version(env, Configure, ARGUMENTS)
>  File "/home/tinuviel/haskell/yhc/build/configure.py", line 49:
>    env["ENV"]["VERSION"] = getVersion(vtype)
>  File "/home/tinuviel/haskell/yhc/build/version.py", line 8:
>    lines = filter(lambda x: x.find("**") != -1,
> open("_darcs/inventory", "r").readlines())
>
> And there is no _darcs/inventory file indeed. Any idea?

I'm guessing your darcs is rather new, and defaults to the --hashed
format when "darcs get"ing darcs1-semantics repositories, and that the
scons file is just not prepared to deal with this.
Sergey Martynov | 24 Sep 2009 12:25
Picon

Can't build Yhc on Mac

Hi,

i'm trying to build yhc from darcs on my mac (x86 10.5.8) but get following error:

$ scons build
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.4.4.
Checking for GHC binary... (cached) "ghc"
Checking for GHC version 6.4.1 or later... (cached) Found version 6.10.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.4

scons: warning: The env.TargetSignatures() method is deprecated;
    convert your build to use the env.Decider() method instead.
File "/Users/serega/Projects/side/yhc/SConstruct", line 87, in <module>
Bootstrapping...
Done.

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/Users/serega/Projects/side/yhc/depends/ctypes/libffi/SConscript", line 6, in <module>
scons: done reading SConscript files.
scons: Building targets ...
Getting dependencies for src/compiler/AssocTree.hs.
An error ocurred running `ghc -M -optdep-f -optdepsrc/compiler/.AssocTree.hs.dep -i./src/compiler:./src/libraries/general:./src/libraries/core:depends/cpphs:depends/filepath:depends/uniplate:./src/interactive src/compiler/AssocTree.hs`:
>
>on the commandline:
>    Warning: -optdep-f is deprecated: Use -dep-makefile instead
>
Dependencies will not be calculated.
"ghc" -i./src/compiler -i./src/libraries/general -i./src/libraries/core -idepends/cpphs -idepends/filepath -idepends/uniplate -i./src/interactive -package mtl -package containers -package pretty -package packedstring -c src/compiler/AssocTree.hs -o src/compiler/AssocTree.o

src/compiler/AssocTree.hs:17:0:
    Failed to load interface for `Tree234':
      Use -v to see a list of the files searched for.
scons: *** [src/compiler/AssocTree.o] Error 1
scons: building terminated because of errors.

How can i fix this error?

On wiki http://www.haskell.org/haskellwiki/Yhc/Building i found link to buildbot status but it's dead.
Does buildbot still used for build automation? If yes then i can setup slave on my machine.

--
Best regards,
Sergey Martynov

_______________________________________________
Yhc mailing list
Yhc <at> haskell.org
http://www.haskell.org/mailman/listinfo/yhc
Andrew Oakley | 30 Sep 2009 01:31

Re: Can't build Yhc on Mac

On Thu, 24 Sep 2009 14:25:41 +0400
Sergey Martynov <martynovs <at> gmail.com> wrote:
> Getting dependencies for src/compiler/AssocTree.hs.
> An error ocurred running `ghc -M -optdep-f
> -optdepsrc/compiler/.AssocTree.hs.dep
> -i./src/compiler:./src/libraries/general:./src/libraries/core:depends/cpphs:depends/filepath:depends/uniplate:./src/interactive
> src/compiler/AssocTree.hs`:
Have you tried simply running the given command so you can see any
errors?  Perhaps they will help.  

> "ghc" -i./src/compiler -i./src/libraries/general
> -i./src/libraries/core -idepends/cpphs -idepends/filepath
> -idepends/uniplate -i./src/interactive -package mtl -package
> containers -package pretty -package packedstring -c
> src/compiler/AssocTree.hs -o src/compiler/AssocTree.o
> 
> src/compiler/AssocTree.hs:17:0:
>     Failed to load interface for `Tree234':
>       Use -v to see a list of the files searched for.
Again, perhaps you could try running the given command directly with
the "-v" flag.  Do a search to see if you can see Tree234 defined
anywhere (its a Yhc thing IIRC).  

Gmane