From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13130 invoked by alias); 23 Oct 2013 17:51:50 -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 13118 invoked by uid 89); 23 Oct 2013 17:51:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 X-HELO: smtp-out-s3.userservices.net Received: from smtp-out-s3.userservices.net (HELO smtp-out-s3.userservices.net) (204.16.46.30) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 Oct 2013 17:51:48 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp-out-s3.userservices.net (Postfix) with ESMTP id EBBDE1A1989; Wed, 23 Oct 2013 10:51:46 -0700 (PDT) Received: from smtp-out-s3.userservices.net ([127.0.0.1]) by localhost (smtp-out-s3.userservices.net [127.0.0.1]) (amavisd-new, port 10099) with LMTP id mpJPUqpRE54Y; Wed, 23 Oct 2013 10:51:42 -0700 (PDT) Received: from s6.visp.net (s6.userservices.net [204.16.46.143]) by smtp-out-s3.userservices.net (Postfix) with ESMTP id 217441A19EA; Wed, 23 Oct 2013 10:51:41 -0700 (PDT) Received: from [66.178.162.114] (unknown [66.178.162.114]) by s6.visp.net (Postfix) with ESMTP id EEF8F2EBC44; Wed, 23 Oct 2013 10:51:40 -0700 (PDT) Mime-Version: 1.0 Message-Id: In-Reply-To: References: <5430341D-132E-4F68-9917-DFB0508D7F96@mindspring.com> Date: Wed, 23 Oct 2013 17:51:00 -0000 To: libffi-discuss@sourceware.org From: Ed Mansky Subject: RE: Problem with darwin_closure.S on 10.4.11/gcc 4.3.3 Cc: jay.krell@cornell.edu Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-IsSubscribed: yes X-SW-Source: 2013/txt/msg00190.txt.bz2 Thanks Jay, that tip was very helpful. I didn't think about the define coming from cc. In my case, it is indeed __ppc__ that is defined as expected for my PPC 7450 G4. I have narrowed down the issue to version 3.0.10. I downloaded 3.0.4 of libffi. Builds fine on Darwin 8.11.0 on my G4 version 3.0.9 builds too, some warnings from ffi_darwin.c in function ffi_call. version 3.0.10 build fails with the same errors in darwin_closure.S I noted earlier. So, the code that was added in 3.0.10 to darwin_closure.S, specifically the SAVE_SIZE define used in LCFI1 label in the sgu command seems to be a problem. I'd be happy to look into these, if anyone could point me to the right OSX assembler manual that has sg and sgu commands in it, that would be great. For now, I'll fall back to 3.0.4 and go with that version. --Ed >---------------------------------------- > CC: >mansky@mindspring.com > From: mansky@mindspring.com > >... > Where >is the constant __ppc64__ defined in the code? Is it defined in > >libffi code itself somewhere, or in the OSX system headers ? I > >compared my G4 with my G5 and could not find __ppc64__ defined in >the > system headers there either. >... > > Thanks, > --Ed #defines >often come from within cc. Try this: echo> 1.c echo> 1.s >cc -dM -c 1.s -E cc -dM -c 1.c -E or cc -arch >ppc -dM -c 1.s -E | grep ppc cc -m64 -arch ppc -dM -c 1.s >-E | grep ppc (man gcc> 1.txt ; edit 1.txt) - Jay > -- E. J. Mansky II Eikonal Research Institute Bend, Oregon