From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1412 invoked by alias); 15 Mar 2013 18:32:10 -0000 Received: (qmail 1394 invoked by uid 22791); 15 Mar 2013 18:32:09 -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 mout2.freenet.de (HELO mout2.freenet.de) (195.4.92.92) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Mar 2013 18:32:03 +0000 Received: from [195.4.92.142] (helo=mjail2.freenet.de) by mout2.freenet.de with esmtpa (ID ralf.corsepius@freenet.de) (port 25) (Exim 4.80.1 #2) id 1UGZQ7-0007I4-S1; Fri, 15 Mar 2013 19:31:59 +0100 Received: from localhost ([::1]:59468 helo=mjail2.freenet.de) by mjail2.freenet.de with esmtpa (ID ralf.corsepius@freenet.de) (Exim 4.80.1 #2) id 1UGZQ7-0008Qa-Nq; Fri, 15 Mar 2013 19:31:59 +0100 Received: from [195.4.92.17] (port=48330 helo=7.mx.freenet.de) by mjail2.freenet.de with esmtpa (ID ralf.corsepius@freenet.de) (Exim 4.80.1 #2) id 1UGZNX-0002Pe-BX; Fri, 15 Mar 2013 19:29:19 +0100 Received: from hsi-kbw-109-193-026-150.hsi7.kabel-badenwuerttemberg.de ([109.193.26.150]:35673 helo=[192.168.1.104]) by 7.mx.freenet.de with esmtpsa (ID ralf.corsepius@freenet.de) (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (port 587) (Exim 4.80.1 #2) id 1UGZNX-0003BF-3Y; Fri, 15 Mar 2013 19:29:19 +0100 Message-ID: <5143687C.5060400@rtems.org> Date: Fri, 15 Mar 2013 18:32:00 -0000 From: Ralf Corsepius User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3 MIME-Version: 1.0 To: Mike Frysinger CC: gdb@sourceware.org, Ralf Corsepius , Joel Sherrill Subject: Re: [gdb-7.5.91] mips sim fails to build on mingw32 References: <20130312231727.GF31629@adacore.com> <5140894E.6000308@oarcorp.com> <514318D8.8050309@rtems.org> <201303151416.25408.vapier@gentoo.org> In-Reply-To: <201303151416.25408.vapier@gentoo.org> 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/msg00028.txt.bz2 On 03/15/2013 07:16 PM, Mike Frysinger wrote: > On Friday 15 March 2013 08:49:28 Ralf Corsepius wrote: >> Hi, >> >> The mips sim fails to build on mingw: >> ... >> x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 >> -DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT -DWITH_TARGET_WORD_BITSIZE=32 >> -DWITH_TARGET_WORD_MSB=31 -DWITH_DEFAULT_TARGET_BYTE_ORDER=BIG_ENDIAN >> -DWITH_FLOATING_POINT=HARD_FLOATING_POINT >> -DWITH_TARGET_FLOATING_POINT_BITSIZE=32 -DWITH_HW=0 >> -DWITH_HOST_BYTE_ORDER=0 -DDEFAULT_INLINE=0 -DWITH_RESERVED_BITS=1 >> -DWITH_SMP=0 -Wall -Wdeclaration-after-statement -Wpointer-arith >> -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value >> -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes >> -Wno-format -DMIPS_MACH_DEFAULT=bfd_mach_mips8000 -I. >> -I../../../gdb-7.5.91/sim/mips -I../common >> -I../../../gdb-7.5.91/sim/mips/../common -I../../include >> -I../../../gdb-7.5.91/sim/mips/../..//include -I../../bfd >> -I../../../gdb-7.5.91/sim/mips/../..//bfd -I../../opcodes >> -I../../../gdb-7.5.91/sim/mips/../..//opcodes -O2 -g -pipe -Wall >> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 >> -mms-bitfields -D__USE_MINGW_ACCESS -c -o interp.o -MT interp.o -MMD -MP >> -MF .deps/interp.Tpo ../../../gdb-7.5.91/sim/mips/interp.c >> ../../../gdb-7.5.91/sim/mips/../common/dv-sockser.c:44:24: fatal error: >> netinet/in.h: No such file or directory >> >> >> ATM, I assume this patch to be the cause (sim/mips): >> >> 2012-09-03 Joel Sherrill >> >> * configure.ac: Always link against dv-sockser.o. >> * configure: Regenerate. >> >> >> From what I can gather from comparing sim/mips/configure.ac to other >> sim/*/configure.ac (e.g. bfin/configure.ac), >> dv-sockser.o needs to be suppressed for mingw32-* targets? > > dv-sockser has always been a bit of an ad-hoc hack (at just about every > layer). adding a m4 macro to the common/ dir would probably be prudent. > -mike Hmm, Joel, which issue did your patch (snippet below) try to address? diff --git a/sim/mips/configure.ac b/sim/mips/configure.ac index 5f59637..862e2b5 100644 --- a/sim/mips/configure.ac +++ b/sim/mips/configure.ac @@ -409,14 +413,13 @@ case "${target}" in mips*tx39*) hw_enabled=yes hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio" - mips_extra_objs="dv-sockser.o" SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1" ;; *) - mips_extra_objs="" ;; esac SIM_AC_OPTION_HARDWARE($hw_enabled,$hw_devices,$hw_extra_devices) +mips_extra_objs="dv-sockser.o" AC_SUBST(mips_extra_objs) IIUC, this lets all mips-sim-variants link against dv-sockser.o, while previously only the tx39*-variants did. I don't understand this step. Ralf