Abdulaziz Ghuloum <[email protected]> writes:

> On Aug 18, 2009, at 10:49 PM, Andreas Rottmann wrote:
>
>> Marco Maggi <[email protected]> writes:
>>
>>> "cdiddca" wrote:
>>>> There is sbank http://live.gnome.org/sbank based on GObject
>>>> Introspection http://live.gnome.org/GObjectIntrospection
>>>
>>> It worked!  (For both Ikarus  and Ypsilon)
>>>
>> Yippey!
>
> No yippy for me! :-(
>
> Yesterday I installed the whole GTK stack on my Mac, and was
> really excited to try this (this is why I fixed all the pending
> bugs).  Unfortunately, gobject-introspection refuses to build.
> :-(  Do you know where on earth their bug tracker is?
>
It's part of the GLib product at GNOME's bugzilla[0], select the
"introspection" component in that form.

As you're to my knowledge the first person to try spells' FFI
abstraction on OS X, you'll have to tweak
"systems/spells/foreign/config.sls.in" to account for the new platform
(in the `c-type-alignof' function):

When running sbank's testsuite (or spells', for that matter), you should
encounter an error by c-type-alignof: "unknown target", with your
platform's target as single irritant. I think just adding the reported
target to the first `cond' branch should work for OS X (from what I can
tell from the links at [1]):

  (define c-type-alignof
    (let ((target '("#!@(host-info os)"
                    "#!@(host-info cpu)")))
      (cond
       ((member target '(("linux-gnu" "x86_64") <<OS-X-targets-go-here>>))
        c-type-sizeof)
       ((member target '(("linux-gnu" "i686")))
        (lambda (type)
          (let ((size (c-type-sizeof type)))
            (if (= size 8)
                4
                size))))
       (else
        (error 'c-type-alignof "unknown target" target))))))

[0] http://bugzilla.gnome.org/enter_bug.cgi?product=glib
[1] 
http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/LowLevelABI/000-Introduction/introduction.html

Regards, Rotty
-- 
Andreas Rottmann -- <http://rotty.yi.org/>

Reply via email to