From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6654 invoked by alias); 17 Mar 2013 16:11:06 -0000 Received: (qmail 6636 invoked by uid 22791); 17 Mar 2013 16:11:02 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from oarmail.oarcorp.com (HELO OARmail.OARCORP.com) (67.63.146.244) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 17 Mar 2013 16:10:57 +0000 Received: from [192.168.0.14] (24.96.88.41) by OARmail.OARCORP.com (192.168.2.2) with Microsoft SMTP Server (TLS) id 8.2.255.0; Sun, 17 Mar 2013 11:10:56 -0500 Message-ID: <5145EB0E.4040104@oarcorp.com> Date: Sun, 17 Mar 2013 16:11:00 -0000 From: Joel Sherrill User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: Joel Brobecker CC: Mike Frysinger , Ralf Corsepius , "gdb@sourceware.org" Subject: Re: [gdb-7.5.91] mips sim fails to build on mingw32 References: <5evvfpyhuvbs9ftm3edxb7na.1363372668425@email.android.com> <20130316181049.GK4474@adacore.com> <5144BE6C.7060909@oarcorp.com> <201303161927.31479.vapier@gentoo.org> <514518B9.4070506@oarcorp.com> <20130317160230.GN4474@adacore.com> In-Reply-To: <20130317160230.GN4474@adacore.com> Content-Type: text/plain; charset="ISO-8859-1"; 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/msg00043.txt.bz2 On 3/17/2013 11:02 AM, Joel Brobecker wrote: >> 2013-03-16 Joel Sherrill >> >> * configure.ac: Avoid use of dv-sockser on *mingw32* >> * aclocal.m4: Regenerated. >> * configure: Regenerated. > [...] >> + >> SIM_AC_OPTION_HARDWARE($hw_enabled,$hw_devices,$hw_extra_devices) >> -mips_extra_objs="dv-sockser.o" >> -AC_SUBST(mips_extra_objs) >> + >> +mips_extra_objs= >> +dnl make sure the dv-sockser code can be supported (i.e. windows) >> +case ${host} in >> + *mingw32*) ;; > I would change that to *mingw*. We might get mingw64 someday... :) The patch I posted simultaneously to address this in common/acinclude.m4 also has mingw32. I will fix it. But that patch needs more review. cd sim grep dv-sockser.o */Makefile.in grep dv-sockser.o */configure.ac And you will see what I need advice on. The patch in the next email fixes bfin and mips I think. Scratches problem on other targets. > >> + *) >> + AC_DEFINE_UNQUOTED([HAVE_DV_SOCKSER], 1, [Define if dv-sockser is usable.]) >> + mips_extra_objs="${mips_extra_objs} dv-sockser.o" >> + ;; >> +esac >> + >> +AC_SUBST([mips_extra_objs], ${mips_extra_objs}) >> + >> +## mips_extra_objs="dv-sockser.o" >> +## AC_SUBST(mips_extra_objs) > Can you also remove the commented-out code? > The mips/configure.ac in the new patch relies on common/acinclude.m4 to tell it whether or to use dv-sockser.o. This centralizes the test for which hosts it supports. -- Joel Sherrill, Ph.D. Director of Research & Development joel.sherrill@OARcorp.com On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35805 Support Available (256) 722-9985