This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: -m32 build of libffi head fails on darwin
- From: Richard Henderson <rth at redhat dot com>
- To: Jack Howarth <howarth dot mailing dot lists at gmail dot com>, libffi-discuss at sourceware dot org
- Date: Thu, 15 Jan 2015 15:49:49 -0800
- Subject: Re: -m32 build of libffi head fails on darwin
- Authentication-results: sourceware.org; auth=none
- References: <CADtEn-3r121SwnL=KKkp_QKeCyAXDT0RM=WZCWsd9CXgZRbmmg at mail dot gmail dot com>
On 01/15/2015 03:37 PM, Jack Howarth wrote:
> ../src/x86/sysv.S:1005:Rest of line ignored. 1st junk character valued 64 (@).
> Makefile:1230: recipe for target 'src/x86/sysv.lo' failed
>
> Any ideas on how to fix this issue with sysv,S?
For some reason, the configure test
echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
...
AC_DEFINE(HAVE_AS_X86_PCREL, 1,
[Define if your assembler supports PC relative relocs.])
fails on darwin. Which leads to
#ifdef HAVE_AS_X86_PCREL
# define PCREL(X) X - .
#else
# define PCREL(X) X@rel
#endif
which leads to the error. Curiously, "X-." does seem to work on Darwin,
and you ought to be able to get sysv.S to compile if you edit that ifdef.
If you could figure out why the assembly works, but the configure test
doesn't, that'd be great.
r~