public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@redhat.com>
To: Jack Howarth <howarth.mailing.lists@gmail.com>,
	       libffi-discuss@sourceware.org
Subject: Re: -m32 build of libffi head fails on darwin
Date: Thu, 15 Jan 2015 23:49:00 -0000	[thread overview]
Message-ID: <54B8521D.9080204@redhat.com> (raw)
In-Reply-To: <CADtEn-3r121SwnL=KKkp_QKeCyAXDT0RM=WZCWsd9CXgZRbmmg@mail.gmail.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~

  reply	other threads:[~2015-01-15 23:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-15 23:37 Jack Howarth
2015-01-15 23:49 ` Richard Henderson [this message]
2015-01-16  0:52   ` Jack Howarth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54B8521D.9080204@redhat.com \
    --to=rth@redhat.com \
    --cc=howarth.mailing.lists@gmail.com \
    --cc=libffi-discuss@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).