Subject:
Re: [ruby-ffi] Supported architectures?
From:
Wayne Meissner
Date:
4/13/10 4:51 PM
To:
ruby-ffi@googlegroups.com

"Officially" (meaning what I'll try and debug) only i386 and x86_64
are supported.  Other people have fixed up the ppc and ppc64 ports,
but everything else is in the "waiting until someone cares enough to
test it and fix what breaks".

Depending on how much effort you want to put in, and given there are
probably only a handful of people on those alternative arches, it
might be best to just disable builds on them.  If someone complains
enough about it not being there, let them fix it.

The kfreebsd arches could conceivably be supported - FreeBSD should
be, but that weird freebsd-kernel-with-gnu-libc setup might require an
ifdef tweak.


On 14 April 2010 03:12, micah <micaho@gmail.com> wrote:
> Hi all,
>
> When I uploaded ffi to Debian, it was automatically sent to the Debian
> buildd network, where a build was attempted on all the different
> architectures that Debian supports. Many of these failed, a few of
> them succeeded.
>
> I will disable the builds on these failing architectures, but am
> available to do anything to try and help debug the failures. What
> architectures the project aims to support?
>
> The ones that succeeded were: amd64, i386, powerpc, and sparc.
>
> The ones that failed were: alpha, armel, hppa, ia64, mipsel, s390,
> kfreebsd_amd64 and kfreebsd_i386.
>
> The alpha, armel, hppa, ia64, mipsel, s390 architectures all had this
> build error:
>
> cc -I. -I. -I/usr/lib/ruby/1.8/alpha-linux -I/build/buildd-libffi-
> ruby_0.6.2debian-5-alpha-WnppY4/libffi-ruby-0.6.2debian/ext/ffi_c -
> DRUBY_EXTCONF_H=\"extconf.h\"    -fPIC -mieee -fno-strict-aliasing -g -
> g -O2  -fPIC   -c Platform.c
> Platform.c:28:2: error: #error "Unknown cpu type"
> Platform.c: In function 'rbffi_Platform_Init':
> Platform.c:57: error: 'CPU' undeclared (first use in this function)
> Platform.c:57: error: (Each undeclared identifier is reported only
> once
> Platform.c:57: error: for each function it appears in.)
> make[1]: *** [Platform.o] Error 1
>
> kfreebsd_amd64 and kfreebsd_i386 both gave this error:
> make[1]: Entering directory `/build/buildd-libffi-ruby_0.6.2debian-5-
> kfreebsd-amd64-gPYTzl/libffi-ruby-0.6.2debian/ext/ffi_c'
> cc -I. -I. -I/usr/lib/ruby/1.8/x86_64-kfreebsd-gnu -I/build/buildd-
> libffi-ruby_0.6.2debian-5-kfreebsd-amd64-gPYTzl/libffi-
> ruby-0.6.2debian/ext/ffi_c -DRUBY_EXTCONF_H=\"extconf.h\"    -fPIC -
> fno-strict-aliasing -g -g -O2  -fPIC   -c Variadic.c
> In file included from /usr/include/sys/types.h:217,
>                 from /usr/include/sys/param.h:42,
>                 from Variadic.c:28:
> ./endian.h:37:4: error: #error "Cannot determine the endian-ness of
> this platform"
> make[1]: *** [Variadic.o] Error 1
> make[1]: Leaving directory `/build/buildd-libffi-ruby_0.6.2debian-5-
> kfreebsd-amd64-gPYTzl/libffi-ruby-0.6.2debian/ext/ffi_c
>
>
>
> --
> To unsubscribe, reply using "remove me" as the subject.
>