From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17228 invoked by alias); 17 Mar 2013 04:16:58 -0000 Received: (qmail 17219 invoked by uid 22791); 17 Mar 2013 04:16:56 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mout0.freenet.de (HELO mout0.freenet.de) (195.4.92.90) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 17 Mar 2013 04:16:50 +0000 Received: from [195.4.92.142] (helo=mjail2.freenet.de) by mout0.freenet.de with esmtpa (ID ralf.corsepius@freenet.de) (port 25) (Exim 4.80.1 #2) id 1UH51Z-00046e-UR; Sun, 17 Mar 2013 05:16:45 +0100 Received: from localhost ([::1]:59750 helo=mjail2.freenet.de) by mjail2.freenet.de with esmtpa (ID ralf.corsepius@freenet.de) (Exim 4.80.1 #2) id 1UH51Z-0004eI-QX; Sun, 17 Mar 2013 05:16:45 +0100 Received: from [195.4.92.15] (port=60573 helo=5.mx.freenet.de) by mjail2.freenet.de with esmtpa (ID ralf.corsepius@freenet.de) (Exim 4.80.1 #2) id 1UH4zN-0007w1-LQ; Sun, 17 Mar 2013 05:14:29 +0100 Received: from hsi-kbw-109-193-026-150.hsi7.kabel-badenwuerttemberg.de ([109.193.26.150]:49524 helo=[192.168.1.104]) by 5.mx.freenet.de with esmtpsa (ID ralf.corsepius@freenet.de) (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (port 587) (Exim 4.80.1 #2) id 1UH4zM-00063k-Gz; Sun, 17 Mar 2013 05:14:29 +0100 Message-ID: <51454320.1090000@rtems.org> Date: Sun, 17 Mar 2013 04:16:00 -0000 From: Ralf Corsepius User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Joel Sherrill CC: Ralf Corsepius , Mike Frysinger , "gdb@sourceware.org" Subject: Re: [gdb-7.5.91] mips sim fails to build on mingw32 References: <5evvfpyhuvbs9ftm3edxb7na.1363372668425@email.android.com> <5143F627.3030905@rtems.org> <5144169C.6060902@rtems.org> <51448AD1.70201@oarcorp.com> In-Reply-To: <51448AD1.70201@oarcorp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2013-03/txt/msg00038.txt.bz2 On 03/16/2013 04:08 PM, Joel Sherrill wrote: > On 3/16/2013 1:52 AM, Ralf Corsepius wrote: >> On 03/16/2013 05:33 AM, Ralf Corsepius wrote: >>> On 03/15/2013 07:37 PM, Joel Sherrill wrote: >>>> My recollection is that it did not link on CentOS 6 and was missing >>>> these symbols. Disabling it again should make it obvious. >>> Reverting your patch lets build mips-rtems*gdb-7.5.91 build >>> successfully on all hosts I am build gdb on [1] >>> >>> This is not surprising to me, as reverting the patch pushes >>> mips*gdb-7.5.91's configuration into a similar state as gdb-7.5.1 was, >>> which built for all of my build hosts. >>> >>>> But I didn't build in any particularly special way and it failed. >>> I am suspecting you were building mipstx39-rtems-gdb. >> OK, I found the original thread: >> http://www.sourceware.org/ml/gdb-patches/2012-09/msg00030.html >> >> All I can say, I can not reproduce the issue you were reporting with >> gdb-7.5.1 and gdb-7.5.91. Reverting this change brings back >> mingw32-w64/gdb-7.5.91. > It is still there if you configure correctly. "Correctly" is a bold term! > On a completely up to date > CentOS 6.x install. I reversed the patch locally and configured like this: > > ../gdb-7.5.91/configure --target=mips-rtems4.11 \ > --prefix=/home/joel/test-gdb/install/ --enable-sim \ > --enable-sim-hardware --enable-timebase --enable-sim-trace && > make > > And the build failed like this: > > -o run \ > nrun.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a > ../../libiberty/libiberty.a -lm -lm -lz -lnsl > libsim.a(interp.o): In function `sim_open': > /home/joel/test-gdb/b-gdb/sim/mips/../../../gdb-7.5.91/sim/mips/interp.c:552: > undefined reference to `sockser_addr' This fails on all hosts for me. But ... this provides further insights: I configure using "default" simulator flags: --enable-sim You configure using "exotic" simulator flags: --enable-sim --enable-sim-hardware --enable-timebase --enable-sim-trace Why you're using them, I don't know. Further trial and error with your patch reversed shows: --enable-sim-hardware triggers the link-error your reported on all hosts. All other permutations of --enable-sim --enable-sim-{timebase,sim-trace} build. I conclude from this: sim/mips only needs dv-sockser.o for tx39* targets or when --enable-sim-hardware is used. => The patch is wrong and should be reverted. The configuration magic to pull in dv-socksers.o should be reworked and likely needs to be keyed to -enable-sim-hardware. Ralf