From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20606 invoked by alias); 9 Nov 2013 11:19:25 -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 20597 invoked by uid 89); 9 Nov 2013 11:19:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mail-pa0-f48.google.com Received: from Unknown (HELO mail-pa0-f48.google.com) (209.85.220.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 09 Nov 2013 11:19:23 +0000 Received: by mail-pa0-f48.google.com with SMTP id kq14so3341485pab.21 for ; Sat, 09 Nov 2013 03:19:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Ab94SBgxlwz9xJ5jTPz6xkmZmj6fjT9KWOD88YoKMfE=; b=MYRbWHeXYGgYpiGOD5C24pR3JxzP5T9Xc5Ia9nIlTcvVHtqfpybf72iPkqKt+nWzlS 4gSE8yAs/WmYtlE29oYPXxq9AkdK9CZoiRoc/UQ8zeghoeMPIIS9GUJ3T90X32PdVoHP ltDvzHRnZorBp5FXNOXJNSl9mdXjHuLGdU0tnQiaTCyQQasdm39YPhhXZNr03geh2PdB LtWA6H9ETZ/DzO5spRpipr/hkLfK9bMgdJV6IfTefMvwDHzLdWiUiL+gEiMwXA2dSVjA wdSCWzLl7C09vy5enUqnj2wRUewTuxzX+komhiJ6you2Aq9TGFTDYgM9QW4Ar4a62Div d6Fg== X-Gm-Message-State: ALoCoQm7kyCJW1vAijudEuZQPxOAmRaYgqzcETKOk9Fl5Efx5AwyJx0WEJt7UA3q9vjLftJuW/W1 MIME-Version: 1.0 X-Received: by 10.68.219.102 with SMTP id pn6mr19875834pbc.153.1383995955301; Sat, 09 Nov 2013 03:19:15 -0800 (PST) Received: by 10.70.96.228 with HTTP; Sat, 9 Nov 2013 03:19:15 -0800 (PST) In-Reply-To: <201311090649.rA96nFRF002304@pc98tak.iee.niit.ac.jp> References: <201311090649.rA96nFRF002304@pc98tak.iee.niit.ac.jp> Date: Sat, 09 Nov 2013 11:19:00 -0000 Message-ID: Subject: Re: problem for UltraSPARC-IIi From: Anthony Green To: Shigeharu TAKENO Cc: "libffi-discuss@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013/txt/msg00197.txt.bz2 Thanks! The file to fix here is actually m4/ax_gcc_archflag.m4, which comes from the upstream autoconf-archive project. I've made the change here and rebuilt configure. I've also reported the bug along with your patch to the autoconf-archive project. AG On Sat, Nov 9, 2013 at 1:49 AM, Shigeharu TAKENO wrote: > shige 11/09 2013 > ---------------- > > I use Solaris 10 on an UltraSPARC-IIi machine. The configure > script of libffi-3.0.13 recognizes the cpu to ultrasparc3, but it > is not correct because "UltraSPARC-IIi" should be identified as > ultrasparc (IIi is not III). The following patch may fix the > problem. > > ----- From here ----- > diff -uN libffi-3.0.13/configure.ORG libffi-3.0.13/configure > --- libffi-3.0.13/configure.ORG 2013-03-18 07:36:19.000000000 +0900 > +++ libffi-3.0.13/configure 2013-11-08 18:55:24.797500000 +0900 > @@ -12811,7 +12811,7 @@ > > > cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null` > - cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters` > + cputype=`echo "$cputype" | tr -d ' -' | sed 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters` > case $cputype in > *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; > *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; > ----- To here ----- > > +========================================================+ > Shigeharu TAKENO NIigata Institute of Technology > kashiwazaki,Niigata 945-1195 JAPAN > shige@iee.niit.ac.jp TEL(&FAX): +81-257-22-8161 > +========================================================+