Subject:
[ruby-ffi] Fwd: PPC not getting __WORDSIZE set
From:
Bryan Kearney
Date:
11/2/09 6:28 PM
To:
ruby-ffi@googlegroups.com


So.. I am not a strong C guy. If you check this message, it appears that __WORDSIZE is not being set correctly for ppc64. If I look at ffi/ext/ffi_c/libffi/configure I see:

        ppc64-*linux*|powerpc64-*linux*)
          LD="${LD-ld} -m elf32ppclinux"
          ;;


Is this correct? Should it be calling 32 bit libraries

-- bk

-------- Original Message --------
Subject: PPC not getting __WORDSIZE set
Date: Mon, 02 Nov 2009 17:15:50 -0500
From: Bryan Kearney <bkearney@redhat.com>
Reply-To: Development discussions related to Fedora <fedora-devel-list@redhat.com>
To: Development discussions related to Fedora <fedora-devel-list@redhat.com>

Word of warning.. I am no too familiar with C across platforms.  I am
trying to package ruby-ffi (spec file is at [1]) and when I do a scratch
build in Koji [2] it runs fine on x86 but is failing in ppc_64. It
appears that __WORDSIZE is not being set [3]. I looked at the CFLags for
the x86_64 and they are the same, so I assumed things would run fine.
Can anyone point me at what to look at next?

-- bk

[1] Spec file: http://bkearney.fedorapeople.org/ruby-ffi.spec
[2] Main Build: http://koji.fedoraproject.org/koji/taskinfo?taskID=1783879
[3] Failing Build Log:
http://koji.fedoraproject.org/koji/getfile?taskID=1783882&name=build.log
[4] SRPM: http://bkearney.fedorapeople.org/ruby-ffi-0.5.1-1.fc11.src.rpm

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list