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).  
Neil Mitchell | 21 Oct 2009 22:05
Picon
Gravatar

Re: Can't build Yhc on Mac

Hi

I haven't build Yhc in ages (about a year), so the following is purely
from memory. From what I can remember Yhc used to depend on Tree234,
but then we moved to Data.Map. I wouldn't expect Tree234 to still be
needed/referenced at all. Is this using the latest darcs snapshot?

The Yhc libraries are unlikely to build anymore, but if you just want
the Yhc binary then that should still work. I used to regularly
compile Yhc with hugs (simply load up Main.hs with some include
directories), so compiling Yhc should be trivial.

Sorry I can't help any further - I think Yhc is now unmaintained, sadly.

Also sorry for the delay in replying, I was on honeymoon for 3 weeks!

Thanks

Neil

2009/9/30 Andrew Oakley <andrew <at> ado.is-a-geek.net>:
> 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).
> _______________________________________________
> Yhc mailing list
> Yhc <at> haskell.org
> http://www.haskell.org/mailman/listinfo/yhc
>
Jared Updike | 21 Oct 2009 22:46
Picon
Gravatar

Re: Can't build Yhc on Mac

> Sorry I can't help any further - I think Yhc is now unmaintained, sadly.

That's too bad, I thought they were just picking up momentum and
making cool things happen.

> Also sorry for the delay in replying, I was on honeymoon for 3 weeks!

Congrats.

  Jared.

> 2009/9/30 Andrew Oakley <andrew <at> ado.is-a-geek.net>:
>> 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).
>> _______________________________________________
>> Yhc mailing list
>> Yhc <at> haskell.org
>> http://www.haskell.org/mailman/listinfo/yhc
>>
> _______________________________________________
> Yhc mailing list
> Yhc <at> haskell.org
> http://www.haskell.org/mailman/listinfo/yhc
>

Gmane