From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94494 invoked by alias); 11 Nov 2016 06:37:42 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 94451 invoked by uid 89); 11 Nov 2016 06:37:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.8 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=largely, our X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 11 Nov 2016 06:37:39 +0000 Received: from vapier.lan (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with SMTP id 9CBCF34166C; Fri, 11 Nov 2016 06:37:37 +0000 (UTC) Date: Fri, 11 Nov 2016 06:37:00 -0000 From: Mike Frysinger To: Joel Sherrill Cc: "gdb@sourceware.org" Subject: Re: mipxtx39 sim build failure Message-ID: <20161111063711.GI21655@vapier.lan> Mail-Followup-To: Joel Sherrill , "gdb@sourceware.org" References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lpu0notPcOSkplGy" Content-Disposition: inline In-Reply-To: X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00016.txt.bz2 --lpu0notPcOSkplGy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2381 On 10 Nov 2016 15:53, Joel Sherrill wrote: > I was updating the baseline RTEMS gdb configuration to > 7.12 from 7.11 and noticed that our mipstx39 build > (just used for the tx39 simulator) was still at 7.9. I bumped > it to 7.12 and got the following build errors: >=20 > /usr/bin/gcc -O2 -pipe -I/data/home/joel/rtems-4.11-work/rtems-source-bui= lder/rtems/build/tmp/sb-joel/4.12/rtems-mips/home/joel/rtems-4.11-work/tool= s/4.12/include -DHAVE_CONFIG_H -DWITH_ALIGNMENT=3DNONSTRICT_ALIGNMENT -DWI= TH_TARGET_WORD_BITSIZE=3D32 -DWITH_TARGET_WORD_MSB=3D31 -DWITH_DEFAULT_TARG= ET_BYTE_ORDER=3DBFD_ENDIAN_BIG -DWITH_FLOATING_POINT=3DHARD_FLOATING_POINT = -DWITH_TARGET_FLOATING_POINT_BITSIZE=3D32 -DWITH_HW=3D1 -DDEFAULT_INLINE=3D= 0 -DWITH_RESERVED_BITS=3D1 -Wall -Wdeclaration-after-statement -Wpointer-a= rith -Wpointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switc= h -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement -= Wempty-body -Wmissing-parameter-type -Wold-style-declaration -Wold-style-de= finition -Wformat-nonliteral -DSUBTARGET_R3900=3D1 -DMIPS_MACH_DEFAULT=3D= bfd_mach_mips8000 -I. -I../../../gdb-7.12/sim/mips -I../common -I../../..= /gdb-7.12/sim/mips/../common -I../../include -I../../../gdb-7.12/sim/mips/.= ./..//include -I../../bfd -I../../../gdb-7.12/sim/mips/../..//bfd -I../../o= pcodes -I../../../gdb-7.12/sim/mips/../..//opcodes -g -O2 -c -o dv-tx3904c= pu.o -MT dv-tx3904cpu.o -MMD -MP -MF .deps/dv-tx3904cpu.Tpo ../../../gdb-7.= 12/sim/mips/dv-tx3904cpu.c > In file included from ../../../gdb-7.12/sim/mips/dv-tx3904cpu.c:22:0: > ../../../gdb-7.12/sim/mips/dv-tx3904cpu.c: In function =E2=80=98deliver_t= x3904cpu_interrupt=E2=80=99: > ../../../gdb-7.12/sim/mips/sim-main.h:679:64: error: =E2=80=98SD=E2=80=99= undeclared (first use in this function) > #define SignalExceptionNMIReset() signal_exception (SD, CPU,= cia, NMIReset) the mips sim port is garbage in many ways. you've found another one. it's full of unstated variable names like assuming "SD" is the variable name everywhere, as is "CPU". it largely comes from the igen source. looks like i broke this while trying to clean up the global state refs in the mips sim. the current_state was a global pointer to the sd that is passed around that i punted. at any rate, should be fixed now in master & the gdb-7.12 branch. -mike --lpu0notPcOSkplGy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYJWcwAAoJEEFjO5/oN/WBE/YQAIfFjnFvuHiTUanbdweCnor5 LQO4eSfDTUto6XVmrl8wGTDRXhM2nCvl44IOHaxHNuWO873KR96wiAourLtTqOX4 /CIIIVyxd+3R2xD9HY070VN7xnM1Qwc0OBsZpDQYuDuUs4zzqcvFydJnchK00kqv 9/YSRiGrLvLwcZjPj2SI/Z5t6QSJc7/1HYi3p1quVQm27x1jonmUaPRrdelOpx/P Whl+dSR6PizHvx4QMa+dhXvWC6Gn7nQxBob8XvXenJ1SwYUtDzAz0VJVF6jmrM4y ahlS8UBX4AXpkY0nDcmex0AKAIbAIssOC0hQcXM861elA2nN3OxJH5boMszwxVSB j5zkOZkbe3LYTlvzBw7fDPKC1u/x53tKmi72zc49YgJ2k1Zb4cUBriq1h5W7sgCH ymwLQjr0hPRqO8oQ+/VeJQYUXLk/ItpLZiHF3qbkFphz0DvdtTKPTTLXgxhBag0x /N28YJWKxVSDnZIyy7w/5dCpCAhkTvWY3WdPCOnqLF2gsd5Tij8YDn9Q3keIPSiT CK6ePGoaVSdIY3TmHce/3RkblA0tpoZsVrr/iSds3RrZPg9fO6SR/SVzMg2JiJxo Q0HU5uCn3ntfO6kU4YVROzLHEyHSV9+SDFgzhG2sC4Wys7JTYBiflWjk7MA4UkxH QDRLpxOG8u3qquS8Q1q+ =lKQR -----END PGP SIGNATURE----- --lpu0notPcOSkplGy--