From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22122 invoked by alias); 15 Jan 2015 23:49:56 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 22112 invoked by uid 89); 15 Jan 2015 23:49:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 15 Jan 2015 23:49:54 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0FNnqsr029519 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 15 Jan 2015 18:49:52 -0500 Received: from pike.twiddle.home (vpn-52-118.rdu2.redhat.com [10.10.52.118]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t0FNnoYl018050; Thu, 15 Jan 2015 18:49:51 -0500 Message-ID: <54B8521D.9080204@redhat.com> Date: Thu, 15 Jan 2015 23:49:00 -0000 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Jack Howarth , libffi-discuss@sourceware.org Subject: Re: -m32 build of libffi head fails on darwin References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015/txt/msg00020.txt.bz2 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~