[Haskell-cafe] Problems building HOC

Colin Fleming colin.mailinglist at gmail.com
Mon Oct 27 22:34:13 EDT 2008


Hi all,

I'm trying to get HOC to build because I'd like to take Yi for a spin and
see how it works. I followed the instructions in the Yi README, but I can't
get HOC to build. It seems like HOC is under pretty heavy development right
now, so maybe this is something transient. I didn't build libffi because
according to the Yi docs that's not required on Leopard. HOC built and
installed ok, however it failed on the bindings generation step - I've
pasted the full compile output below. Am I doing something daft? I'm an
(almost) total Haskell newbie so this is entirely possible...

I'm using GHC 6.8.2 from MacPorts, and OSX 10.5.5.

Thanks for any help!

Cheers,
Colin

~/dev/haskell/hoc/Bindings> bash make-bindings-macos.sh --user
*** Processing Framework Foundation ***
NSObjCRuntime.h:139:32: NSIntegerMax undefined
[                         ]
NSObjCRuntime.h:139:32: Couldn't handle enum value for
NSNotFound                 ]
NSPropertyList.h:13:55: kCFPropertyListImmutable
undefined                        ]
NSPropertyList.h:13:55: Couldn't handle enum value for
NSPropertyListImmutable    ]
NSPropertyList.h:14:71: kCFPropertyListMutableContainers
undefined                ]
NSPropertyList.h:14:71: Couldn't handle enum value for
NSPropertyListMutableContainers
NSPropertyList.h:16:1: kCFPropertyListMutableContainersAndLeaves
undefined        ]
NSPropertyList.h:16:1: Couldn't handle enum value for
NSPropertyListMutableContainersAndLeaves
NSPropertyList.h:20:65: kCFPropertyListOpenStepFormat
undefined                   ]
NSPropertyList.h:20:65: Couldn't handle enum value for
NSPropertyListOpenStepFormat
NSPropertyList.h:21:65: kCFPropertyListXMLFormat_v1_0
undefined                   ]
NSPropertyList.h:21:65: Couldn't handle enum value for
NSPropertyListXMLFormat_v1_0
NSPropertyList.h:23:1: kCFPropertyListBinaryFormat_v1_0 undefined
NSPropertyList.h:23:1: Couldn't handle enum value for
NSPropertyListBinaryFormat_v1_0
NSNumberFormatter.h:39:57: kCFNumberFormatterNoStyle
undefined*******             ]
NSNumberFormatter.h:39:57: Couldn't handle enum value for
NSNumberFormatterNoStyle
NSNumberFormatter.h:40:67: kCFNumberFormatterDecimalStyle undefined
NSNumberFormatter.h:40:67: Couldn't handle enum value for
NSNumberFormatterDecimalStyle
NSNumberFormatter.h:41:69: kCFNumberFormatterCurrencyStyle undefined
NSNumberFormatter.h:41:69: Couldn't handle enum value for
NSNumberFormatterCurrencyStyle
NSNumberFormatter.h:42:67: kCFNumberFormatterPercentStyle undefined
NSNumberFormatter.h:42:67: Couldn't handle enum value for
NSNumberFormatterPercentStyle
NSNumberFormatter.h:43:73: kCFNumberFormatterScientificStyle undefined
NSNumberFormatter.h:43:73: Couldn't handle enum value for
NSNumberFormatterScientificStyle
NSNumberFormatter.h:45:1: kCFNumberFormatterSpellOutStyle undefined
NSNumberFormatter.h:45:1: Couldn't handle enum value for
NSNumberFormatterSpellOutStyle
NSNumberFormatter.h:189:73: kCFNumberFormatterPadBeforePrefix undefined
NSNumberFormatter.h:189:73: Couldn't handle enum value for
NSNumberFormatterPadBeforePrefix
NSNumberFormatter.h:190:71: kCFNumberFormatterPadAfterPrefix undefined
NSNumberFormatter.h:190:71: Couldn't handle enum value for
NSNumberFormatterPadAfterPrefix
NSNumberFormatter.h:191:73: kCFNumberFormatterPadBeforeSuffix undefined
NSNumberFormatter.h:191:73: Couldn't handle enum value for
NSNumberFormatterPadBeforeSuffix
NSNumberFormatter.h:193:1: kCFNumberFormatterPadAfterSuffix undefined
NSNumberFormatter.h:193:1: Couldn't handle enum value for
NSNumberFormatterPadAfterSuffix
NSNumberFormatter.h:200:67: kCFNumberFormatterRoundCeiling undefined
NSNumberFormatter.h:200:67: Couldn't handle enum value for
NSNumberFormatterRoundCeiling
NSNumberFormatter.h:201:63: kCFNumberFormatterRoundFloor undefined
NSNumberFormatter.h:201:63: Couldn't handle enum value for
NSNumberFormatterRoundFloor
NSNumberFormatter.h:202:61: kCFNumberFormatterRoundDown undefined
NSNumberFormatter.h:202:61: Couldn't handle enum value for
NSNumberFormatterRoundDown
NSNumberFormatter.h:203:57: kCFNumberFormatterRoundUp undefined
NSNumberFormatter.h:203:57: Couldn't handle enum value for
NSNumberFormatterRoundUp
NSNumberFormatter.h:204:69: kCFNumberFormatterRoundHalfEven undefined
NSNumberFormatter.h:204:69: Couldn't handle enum value for
NSNumberFormatterRoundHalfEven
NSNumberFormatter.h:205:69: kCFNumberFormatterRoundHalfDown undefined
NSNumberFormatter.h:205:69: Couldn't handle enum value for
NSNumberFormatterRoundHalfDown
NSNumberFormatter.h:207:1: kCFNumberFormatterRoundHalfUp undefined
NSNumberFormatter.h:207:1: Couldn't handle enum value for
NSNumberFormatterRoundHalfUp
NSDecimal.h:49:1: problem parsing struct            61%
[***************          ]
NSDateFormatter.h:40:53: kCFDateFormatterNoStyle
undefined***************         ]
NSDateFormatter.h:40:53: Couldn't handle enum value for
NSDateFormatterNoStyle
NSDateFormatter.h:41:59: kCFDateFormatterShortStyle undefined
NSDateFormatter.h:41:59: Couldn't handle enum value for
NSDateFormatterShortStyle
NSDateFormatter.h:42:61: kCFDateFormatterMediumStyle undefined
NSDateFormatter.h:42:61: Couldn't handle enum value for
NSDateFormatterMediumStyle
NSDateFormatter.h:43:57: kCFDateFormatterLongStyle undefined
NSDateFormatter.h:43:57: Couldn't handle enum value for
NSDateFormatterLongStyle
NSDateFormatter.h:45:1: kCFDateFormatterFullStyle undefined
NSDateFormatter.h:45:1: Couldn't handle enum value for
NSDateFormatterFullStyle
NSCalendar.h:16:47: kCFCalendarUnitEra undefined    79%
[*******************      ]
NSCalendar.h:16:47: Couldn't handle enum value for NSEraCalendarUnit
NSCalendar.h:17:49: kCFCalendarUnitYear undefined
NSCalendar.h:17:49: Couldn't handle enum value for NSYearCalendarUnit
NSCalendar.h:18:51: kCFCalendarUnitMonth undefined
NSCalendar.h:18:51: Couldn't handle enum value for NSMonthCalendarUnit
NSCalendar.h:19:47: kCFCalendarUnitDay undefined
NSCalendar.h:19:47: Couldn't handle enum value for NSDayCalendarUnit
NSCalendar.h:20:49: kCFCalendarUnitHour undefined
NSCalendar.h:20:49: Couldn't handle enum value for NSHourCalendarUnit
NSCalendar.h:21:53: kCFCalendarUnitMinute undefined
NSCalendar.h:21:53: Couldn't handle enum value for NSMinuteCalendarUnit
NSCalendar.h:22:53: kCFCalendarUnitSecond undefined
NSCalendar.h:22:53: Couldn't handle enum value for NSSecondCalendarUnit
NSCalendar.h:23:49: kCFCalendarUnitWeek undefined
NSCalendar.h:23:49: Couldn't handle enum value for NSWeekCalendarUnit
NSCalendar.h:24:55: kCFCalendarUnitWeekday undefined
NSCalendar.h:24:55: Couldn't handle enum value for NSWeekdayCalendarUnit
NSCalendar.h:25:69: kCFCalendarUnitWeekdayOrdinal undefined
NSCalendar.h:25:69: Couldn't handle enum value for
NSWeekdayOrdinalCalendarUnit
NSCalendar.h:70:61: kCFCalendarComponentsWrap undefined
NSCalendar.h:70:61: Couldn't handle enum value for NSWrapCalendarComponents
NSCalendar.h:93:1: NSIntegerMax undefined
NSCalendar.h:93:1: Couldn't handle enum value for NSUndefinedDateComponent
NSByteOrder.h:9:45: CFByteOrderUnknown undefined
NSByteOrder.h:9:45: Couldn't handle enum value for NS_UnknownByteOrder
Parsing Objective-C header files:                  100%
[*************************]
Building initial entities:                         100%
[*************************]
Resolving cross-references:                        100%
[*************************]
Converting types:                                  100%
[*************************]
Zapping unconvertable entities:                    100%
[*************************]
Filling in additional instance declarations:       100%
[*************************]
Combining duplicate entities:                      100%
[*************************]
Resolving name conflicts:                          100%
[*************************]
Eliminating redundant instances:                   100%
[*************************]
Writing binding modules:                           100%
[*************************]
Writing Foundation.hs:                             100%
[*************************]
Writing Foundation.pi:                             100%
[*************************]
done.
~/dev/haskell/hoc/Bindings/Generated/HOC-Foundation
~/dev/haskell/hoc/Bindings/Generated
Configuring HOC-Foundation-1.0...
Preprocessing library HOC-Foundation-1.0...
Building HOC-Foundation-1.0...
[  2 of 154] Compiling Foundation.NSProxy[boot] (
Foundation/NSProxy.hs-boot, dist/build/Foundation/NSProxy.o-boot )
[  3 of 154] Compiling Foundation.NSObject[boot] (
Foundation/NSObject.hs-boot, dist/build/Foundation/NSObject.o-boot )
[  4 of 154] Compiling Foundation.NSPort[boot] ( Foundation/NSPort.hs-boot,
dist/build/Foundation/NSPort.o-boot )
[  5 of 154] Compiling Foundation.NSScanner[boot] (
Foundation/NSScanner.hs-boot, dist/build/Foundation/NSScanner.o-boot )
[  6 of 154] Compiling Foundation.NSScriptCommand[boot] (
Foundation/NSScriptCommand.hs-boot,
dist/build/Foundation/NSScriptCommand.o-boot )
[  7 of 154] Compiling Foundation.NSScriptCommandDescription[boot] (
Foundation/NSScriptCommandDescription.hs-boot,
dist/build/Foundation/NSScriptCommandDescription.o-boot )
[  8 of 154] Compiling Foundation.NSScriptObjectSpecifiers[boot] (
Foundation/NSScriptObjectSpecifiers.hs-boot,
dist/build/Foundation/NSScriptObjectSpecifiers.o-boot )
[  9 of 154] Compiling Foundation.NSSet[boot] ( Foundation/NSSet.hs-boot,
dist/build/Foundation/NSSet.o-boot )
[ 10 of 154] Compiling Foundation.NSStream[boot] (
Foundation/NSStream.hs-boot, dist/build/Foundation/NSStream.o-boot )
[ 11 of 154] Compiling Foundation.NSString[boot] (
Foundation/NSString.hs-boot, dist/build/Foundation/NSString.o-boot )
[ 12 of 154] Compiling Foundation.NSTimeZone[boot] (
Foundation/NSTimeZone.hs-boot, dist/build/Foundation/NSTimeZone.o-boot )
[ 13 of 154] Compiling Foundation.NSTimer[boot] (
Foundation/NSTimer.hs-boot, dist/build/Foundation/NSTimer.o-boot )
[ 14 of 154] Compiling Foundation.NSURL[boot] ( Foundation/NSURL.hs-boot,
dist/build/Foundation/NSURL.o-boot )
[ 15 of 154] Compiling Foundation.NSValue[boot] (
Foundation/NSValue.hs-boot, dist/build/Foundation/NSValue.o-boot )
[ 16 of 154] Compiling Foundation.NSXMLNode[boot] (
Foundation/NSXMLNode.hs-boot, dist/build/Foundation/NSXMLNode.o-boot )
[ 17 of 154] Compiling Foundation.NSXMLDTDNode[boot] (
Foundation/NSXMLDTDNode.hs-boot, dist/build/Foundation/NSXMLDTDNode.o-boot )
[ 18 of 154] Compiling Foundation.NSXMLDocument[boot] (
Foundation/NSXMLDocument.hs-boot, dist/build/Foundation/NSXMLDocument.o-boot
)
[ 19 of 154] Compiling Foundation.NSXMLElement[boot] (
Foundation/NSXMLElement.hs-boot, dist/build/Foundation/NSXMLElement.o-boot )
[ 23 of 154] Compiling Foundation.NSNotification[boot] (
Foundation/NSNotification.hs-boot,
dist/build/Foundation/NSNotification.o-boot )
[ 24 of 154] Compiling Foundation.NSMethodSignature[boot] (
Foundation/NSMethodSignature.hs-boot,
dist/build/Foundation/NSMethodSignature.o-boot )
[ 25 of 154] Compiling Foundation.NSLocale[boot] (
Foundation/NSLocale.hs-boot, dist/build/Foundation/NSLocale.o-boot )
[ 26 of 154] Compiling Foundation.NSInvocation[boot] (
Foundation/NSInvocation.hs-boot, dist/build/Foundation/NSInvocation.o-boot )
[ 27 of 154] Compiling Foundation.NSIndexSet[boot] (
Foundation/NSIndexSet.hs-boot, dist/build/Foundation/NSIndexSet.o-boot )
[ 28 of 154] Compiling Foundation.NSGeometry ( Foundation/NSGeometry.hs,
dist/build/Foundation/NSGeometry.o )
Loading package base ... linking ... done.
Loading package array-0.1.0.0 ... linking ... done.
Loading package bytestring-0.9.0.1 ... linking ... done.
Loading package containers-0.1.0.1 ... linking ... done.
Loading package old-locale-1.0.0.0 ... linking ... done.
Loading package old-time-1.0.0.0 ... linking ... done.
Loading package filepath-1.1.0.0 ... linking ... done.
Loading package directory-1.0.0.0 ... linking ... done.
Loading package mtl-1.1.0.0 ... linking ... done.
Loading package fgl-5.4.1.1 ... linking ... done.
Loading package parsec-3.0.0 ... linking ... done.
Loading package pretty-1.0.0.0 ... linking ... done.
Loading package packedstring-0.1.0.0 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package unix-2.3.0.0 ... linking ... done.
Loading package HOC-1.0 ... linking ... done.

Foundation/NSGeometry.hs:36:8:
    Not in scope: data constructor `NSRect'

Foundation/NSGeometry.hs:36:16:
    Not in scope: data constructor `NSPoint'

Foundation/NSGeometry.hs:36:30:
    Not in scope: data constructor `NSSize'

Foundation/NSGeometry.hs:37:8:
    Not in scope: data constructor `NSRect'

Foundation/NSGeometry.hs:37:16:
    Not in scope: data constructor `NSPoint'

Foundation/NSGeometry.hs:37:30:
    Not in scope: data constructor `NSSize'

Foundation/NSGeometry.hs:38:8:
    Not in scope: data constructor `NSRect'

Foundation/NSGeometry.hs:38:16:
    Not in scope: data constructor `NSPoint'

Foundation/NSGeometry.hs:38:30:
    Not in scope: data constructor `NSSize'

Foundation/NSGeometry.hs:39:8:
    Not in scope: data constructor `NSRect'

Foundation/NSGeometry.hs:39:16:
    Not in scope: data constructor `NSPoint'

Foundation/NSGeometry.hs:39:30:
    Not in scope: data constructor `NSSize'

Foundation/NSGeometry.hs:40:8:
    Not in scope: data constructor `NSRect'

Foundation/NSGeometry.hs:40:16:
    Not in scope: data constructor `NSPoint'

Foundation/NSGeometry.hs:40:30:
    Not in scope: data constructor `NSSize'

Foundation/NSGeometry.hs:41:8:
    Not in scope: data constructor `NSRect'

Foundation/NSGeometry.hs:41:16:
    Not in scope: data constructor `NSPoint'

Foundation/NSGeometry.hs:41:30:
    Not in scope: data constructor `NSSize'

Foundation/NSGeometry.hs:42:9:
    Not in scope: data constructor `NSRect'

Foundation/NSGeometry.hs:42:17:
    Not in scope: data constructor `NSPoint'

Foundation/NSGeometry.hs:42:31:
    Not in scope: data constructor `NSSize'

Foundation/NSGeometry.hs:43:10:
    Not in scope: data constructor `NSRect'

Foundation/NSGeometry.hs:43:18:
    Not in scope: data constructor `NSPoint'

Foundation/NSGeometry.hs:43:32:
    Not in scope: data constructor `NSSize'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20081027/1ecfb51e/attachment.htm


More information about the Haskell-Cafe mailing list