This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error building libffi on x86_64


On Wed, Mar 13, 2013 at 12:14 PM, Yaakov
<yselkowitz@users.sourceforge.net> wrote:
> On Wed, 13 Mar 2013 10:25:03 +0100, Kai Tietz wrote:
>> 2013/3/13 Yaakov:
>> > I have encountered the following error attempting to build
>> > libffi-3.0.12 on Cygwin:
>> >
>> > src/x86/.libs/win64.o:/usr/src/debug/libffi-3.0.12-1/src/x86/win64.S:298:(.text+0x69): relocation truncated to fit: R_X86_64_32S against symbol `ffi_closure_win64_inner' defined in .text section in src/x86/.libs/ffi.o
>>
>> Hmm, I think the issue is here that the instruction used at this place
>> misses ip-relative addressing.
>>
>> At line 298  we have       mov     $SYMBOL_NAME(ffi_closure_win64_inner), %rax
>>
>> Could you try if you get same isse with that line replaced by  lea
>> SYMBOL_NAME(ffi_closure_win64_inner)(%rip), %rax
>
> That compiles; results of make check:

Great as now Python can be compiled successfully, I noticed that
ctypes didn't compile earlier as it depends on libffi but for some
reason cygport compiled and packaged it.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]