From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11584 invoked by alias); 19 Mar 2009 10:04:56 -0000 Received: (qmail 11566 invoked by uid 22791); 19 Mar 2009 10:04:55 -0000 X-SWARE-Spam-Status: No, hits=4.3 required=5.0 tests=AWL,BAYES_00,ROUND_THE_WORLD_LOCAL,TVD_RCVD_IP X-Spam-Check-By: sourceware.org Received: from 219-87-157-169.static.tfn.net.tw (HELO mswedge2.sunplus.com) (219.87.157.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Mar 2009 10:04:48 +0000 Received: from sphsml08.sunplus.com.tw (msw.sunplus.com.tw [172.17.10.162] (may be forged)) by mswedge2.sunplus.com (8.14.1/8.14.1) with ESMTP id n2JA2vLE024884; Thu, 19 Mar 2009 18:02:58 +0800 Received: from maillog.sunplus.com (unverified [172.17.10.158]) by sphsml08.sunplus.com.tw (Mail System 5.2) with ESMTP id ; Thu, 19 Mar 2009 18:03:16 +0800 Received: from ctmail01.sunplusct.com ([172.23.3.54]) by maillog.sunplus.com (8.12.10/8.12.10) with ESMTP id n2JA34Wl030053; Thu, 19 Mar 2009 18:03:04 +0800 In-Reply-To: <000201c9a865$63951e10$2abf5a30$@u-strasbg.fr> To: "Pierre Muller" Cc: , MIME-Version: 1.0 Subject: Re: [Build-failure] elf32-score.c compilation warning Message-ID: From: brain.lin@sunplusct.com Date: Thu, 19 Mar 2009 13:49:00 -0000 Content-Type: text/plain; charset="US-ASCII" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-03/txt/msg00394.txt.bz2 "Pierre Muller" Sent by: binutils-owner@sourceware.org 2009-03-19 15:36 To , cc Subject [Build-failure] elf32-score.c compilation warning Hi Pierre, there are some 48-bits instructions in the new score target. so ,It must add "--enable-64-bit-bfd " to the configure command if your gdb's version is 6.8. The last gdb and binutils already added the option to configure file. please checkout the lastly version from binutils.org. Cheers brain Building gdb with --enable-targets=all but without --enable-64-bit-bfd. on cygwin (windows 32 bits). I get a bfd compilation error, that does not appear with --enable-64-bit-bfd. I think that there is a configuration problem for elf32-score: libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../purecvs/bfd -I. -I. -I../../p urecvs/bfd -I../../purecvs/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing -prototypes -Werror -g -O2 -c ../../purecvs/bfd/elf32-score.c -o elf32-score.o ../../purecvs/bfd/elf32-score.c: In function `score3_bfd_putl48': ../../purecvs/bfd/elf32-score.c:290: warning: right shift count >= width of type There other errors are at the end of the email. The corresponding lines do shifts of 32 or 48 bits, which is indeed too large for 32 bit addresses, so these addresses are probably 64 bit, no? Pierre Muller Pascal language support maintainer for GDB ../../purecvs/bfd/elf32-score.c:291: warning: right shift count >= width of type ../../purecvs/bfd/elf32-score.c: At top level: ../../purecvs/bfd/elf32-score.c:957: warning: large integer implicitly truncated to unsigned type ../../purecvs/bfd/elf32-score.c:957: warning: large integer implicitly truncated to unsigned type ../../purecvs/bfd/elf32-score.c:972: warning: large integer implicitly truncated to unsigned type ../../purecvs/bfd/elf32-score.c:972: warning: large integer implicitly truncated to unsigned type ../../purecvs/bfd/elf32-score.c: In function `score_elf_final_link_relocate': ../../purecvs/bfd/elf32-score.c:2199: warning: right shift count >= width of typ e ../../purecvs/bfd/elf32-score.c:2212: warning: left shift count >= width of type ../../purecvs/bfd/elf32-score.c:2226: warning: right shift count >= width of typ e ../../purecvs/bfd/elf32-score.c:2232: warning: left shift count >= width of type ../../purecvs/bfd/elf32-score.c: In function `s3_bfd_score_elf_relocate_section' : ../../purecvs/bfd/elf32-score.c:2521: warning: right shift count >= width of typ e ../../purecvs/bfd/elf32-score.c:2530: warning: left shift count >= width of type ../../purecvs/bfd/elf32-score.c:2541: warning: right shift count >= width of typ e ../../purecvs/bfd/elf32-score.c:2557: warning: left shift count >= width of type make[3]: *** [elf32-score.lo] Error 1 make[3]: Leaving directory `/usr/local/src/gdbcvs/multibuild32/bfd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/gdbcvs/multibuild32/bfd' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/local/src/gdbcvs/multibuild32/bfd' make: *** [all-bfd] Error 2