On Jun 30, 2006, at 6:33 AM, Andrew Wilkinson wrote:

On 6/30/06, Brent Fulgham <bfulgham@mac.com> wrote:
Attempting to build with gcc 4.0 on OS X fails with the following
errors.  Has anyone else successfully built on OS X?


Hi,

Yhc is currently in the process of moving towards using scons for the build process rather than make. Can you try building using scons? You might need to install scons first ( www.scons.org) then simply type 'scons'.

I suspect it will still fail as the errors look to be coming from the fact that you're missing libgmp, but it would be useful to check.

Erg!  That's even worse.

Must I have certain environment variables defined?  All I did was install the DarwinPorts package of 'scons' and ran it.

Thanks,

-Brent

scons: Reading SConscript files ...
AttributeError: 'module' object has no attribute 'ArAction':
  File "SConstruct", line 7:
    hsenv = Environment(tools = ["default", "haskell"], toolpath=["./build/tools/"], ENV = {'PATH' : os.environ['PATH']})
  File "/opt/local/lib/scons-0.96.91/SCons/Memoize.py", line 819:
    klassdict['__init__'] = lambda self, *args, **kw: newinit(self, args, kw)
  File ".../SCons/Memoizer-init-lambda</opt/local/lib/scons-0.96.91/SCons/Memoize.py>", line 1:
    None
  File "/opt/local/lib/scons-0.96.91/SCons/Memoize.py", line 778:
    apply(actual_init, (self,)+args, kw)
  File "/opt/local/lib/scons-0.96.91/SCons/Memoize.py", line 1:
    """Memoizer
  File "/opt/local/lib/scons-0.96.91/SCons/Memoize.py", line 781:
    apply(super(cls, self).__init__, args, kw)
  File "/opt/local/lib/scons-0.96.91/SCons/Memoize.py", line 819:
    klassdict['__init__'] = lambda self, *args, **kw: newinit(self, args, kw)
  File ".../SCons/Memoizer-init-lambda</opt/local/lib/scons-0.96.91/SCons/Environment.py>", line 471:
    None
  File "/opt/local/lib/scons-0.96.91/SCons/Memoize.py", line 778:
    apply(actual_init, (self,)+args, kw)
  File "/opt/local/lib/scons-0.96.91/SCons/Environment.py", line 517:
    apply_tools(self, tools, toolpath)
  File "/opt/local/lib/scons-0.96.91/SCons/Environment.py", line 133:
    env.Tool(tool)
  File "/opt/local/lib/scons-0.96.91/SCons/Environment.py", line 1091:
    tool(self)
  File "/opt/local/lib/scons-0.96.91/SCons/Tool/__init__.py", line 128:
    apply(self.generate, ( env, ) + args, kw)
  File "./build/tools/haskell.py", line 163:
    haskellLibrary = SCons.Builder.Builder(action = SCons.Defaults.ArAction,
Chaz:~/Projects/Yhc/yhc-devel brent$