From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1442 invoked by alias); 9 Nov 2013 06:49:26 -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 1432 invoked by uid 89); 9 Nov 2013 06:49:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=BAYES_50,RDNS_NONE,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: nolm01.iee.niit.ac.jp Received: from Unknown (HELO nolm01.iee.niit.ac.jp) (202.243.124.21) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 09 Nov 2013 06:49:24 +0000 Received: from pc98tak.iee.niit.ac.jp (pc98tak.iee.niit.ac.jp [202.243.124.33]) by nolm01.iee.niit.ac.jp (8.14.6/8.14.6) with ESMTP id rA96nFrW017359; Sat, 9 Nov 2013 15:49:15 +0900 (JST) Received: (from shige@localhost) by pc98tak.iee.niit.ac.jp (8.14.7/8.14.7/Submit) id rA96nFRF002304; Sat, 9 Nov 2013 15:49:15 +0900 (JST) Date: Sat, 09 Nov 2013 06:49:00 -0000 Message-Id: <201311090649.rA96nFRF002304@pc98tak.iee.niit.ac.jp> From: Shigeharu TAKENO To: libffi-discuss@sourceware.org Subject: problem for UltraSPARC-IIi User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/20.7 (i386-unknown-freebsd8.1) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-SW-Source: 2013/txt/msg00196.txt.bz2 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 +========================================================+