From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31976 invoked by alias); 5 Mar 2012 23:29:56 -0000 Received: (qmail 31966 invoked by uid 22791); 5 Mar 2012 23:29:55 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,TW_BF,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e31.co.us.ibm.com (HELO e31.co.us.ibm.com) (32.97.110.149) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 05 Mar 2012 23:29:42 +0000 Received: from /spool/local by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 5 Mar 2012 16:29:41 -0700 Received: from d01dlp03.pok.ibm.com (9.56.224.17) by e31.co.us.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 5 Mar 2012 16:29:35 -0700 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id CF264C9005E for ; Mon, 5 Mar 2012 18:29:33 -0500 (EST) Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q25NTISq209186 for ; Mon, 5 Mar 2012 18:29:26 -0500 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q25NTI2K020412 for ; Mon, 5 Mar 2012 20:29:18 -0300 Received: from [192.168.1.103] (vorma.rchland.ibm.com [9.10.86.174]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q25NTHMm020355; Mon, 5 Mar 2012 20:29:17 -0300 Message-ID: <1330990156.29904.24.camel@otta> Subject: Re: libffi fails to build on powerpc64-linux From: Peter Bergner To: dclarke@blastwave.org Cc: libffi-discuss@sourceware.org, Anthony Green Date: Mon, 05 Mar 2012 23:29:00 -0000 In-Reply-To: <64185.10.0.66.17.1330988704.squirrel@interact.purplecow.org> References: <64185.10.0.66.17.1330988704.squirrel@interact.purplecow.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12030523-7282-0000-0000-0000071DCDDA X-IsSubscribed: yes 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 X-SW-Source: 2012/txt/msg00081.txt.bz2 On Mon, 2012-03-05 at 18:05 -0500, Dennis Clarke wrote: > > After the latest libffi merge into GCC, GCC no longer builds on > > powerpc64-linux due to the following errors: > > I ran into a bucket of issues with libffi also : > > http://sourceware.org/ml/libffi-discuss/2012/msg00048.html > > May or may not be related. Not related, since I'm not even getting past the build, let alone firing off the testsuite. I'll let you know what happens when I get that far. :) That said, adding your --enable-debug configure option, I see a few other changes that should be made to silence some warnings about casting a pointer to an integer of a different size (ie, smaller): @@ -155,9 +156,9 @@ ffi_prep_args_SYSV (extended_cif *ecif, unsigned *const stack) next_arg.u = stack + 2; /* Check that everything starts aligned properly. */ - FFI_ASSERT (((unsigned) (char *) stack & 0xF) == 0); - FFI_ASSERT (((unsigned) copy_space.c & 0xF) == 0); - FFI_ASSERT (((unsigned) stacktop.c & 0xF) == 0); + FFI_ASSERT (((unsigned long) (char *) stack & 0xF) == 0); + FFI_ASSERT (((unsigned long) copy_space.c & 0xF) == 0); + FFI_ASSERT (((unsigned long) stacktop.c & 0xF) == 0); FFI_ASSERT ((bytes & 0xF) == 0); FFI_ASSERT (copy_space.c >= next_arg.c); Peter