From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24082 invoked by alias); 15 Mar 2013 18:13:30 -0000 Received: (qmail 24069 invoked by uid 22791); 15 Mar 2013 18:13:27 -0000 X-SWARE-Spam-Status: No, hits=-10.2 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Mar 2013 18:13:17 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id E0C5F33DB61; Fri, 15 Mar 2013 18:13:16 +0000 (UTC) From: Mike Frysinger To: gdb@sourceware.org Subject: Re: [gdb-7.5.91] mips sim fails to build on mingw32 Date: Fri, 15 Mar 2013 18:13:00 -0000 User-Agent: KMail/1.13.7 (Linux/3.7.6; KDE/4.6.5; x86_64; ; ) Cc: Ralf Corsepius , Joel Sherrill References: <20130312231727.GF31629@adacore.com> <5140894E.6000308@oarcorp.com> <514318D8.8050309@rtems.org> In-Reply-To: <514318D8.8050309@rtems.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2670609.4EyxNI9l10"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201303151416.25408.vapier@gentoo.org> 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/msg00026.txt.bz2 --nextPart2670609.4EyxNI9l10 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-length: 1987 On Friday 15 March 2013 08:49:28 Ralf Corsepius wrote: > Hi, >=20 > The mips sim fails to build on mingw: > ... > x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -DPROFILE=3D1 -DWITH_PROFILE= =3D-1 > -DWITH_ALIGNMENT=3DNONSTRICT_ALIGNMENT -DWITH_TARGET_WORD_BITSIZE=3D32 > -DWITH_TARGET_WORD_MSB=3D31 -DWITH_DEFAULT_TARGET_BYTE_ORDER=3DBIG_ENDIAN > -DWITH_FLOATING_POINT=3DHARD_FLOATING_POINT > -DWITH_TARGET_FLOATING_POINT_BITSIZE=3D32 -DWITH_HW=3D0 > -DWITH_HOST_BYTE_ORDER=3D0 -DDEFAULT_INLINE=3D0 -DWITH_RESERVED_BITS=3D1 > -DWITH_SMP=3D0 -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=3Dbfd_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=3D2 -fexceptions --param=3Dssp-buffer-size=3D4 > -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 >=20 >=20 > ATM, I assume this patch to be the cause (sim/mips): >=20 > 2012-09-03 Joel Sherrill >=20 > * configure.ac: Always link against dv-sockser.o. > * configure: Regenerate. >=20 >=20 > 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=20 layer). adding a m4 macro to the common/ dir would probably be prudent. -mike --nextPart2670609.4EyxNI9l10 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJRQ2V5AAoJEEFjO5/oN/WBG3AP/RfsIY1O9WWIiTT+dZf4WFCG AwjK191amCOGpWK1uzp4szGV+Y35ijEuE/o8748y6DZPR5/8YCK/m59+8WCzHckX iP/Lu1htPyoW9MZ1ZR1mqCOcBLLYAdzyMujyXddTOQ92ePqJpHh4fJwhbrKyPYKt szX2LoVYHgGq2vkQg1eDsoraXAaLYPN6/CQ0aw7L6vMo71b/Nd5RuLP5OurtlZiE /qWK5P/lDX8u7SJEYPLLTY/HiF30WoYmvqghcxfuGkXoZD+yRMxFmy1XPM//Gzva MopjLDd9+bfmfaIE3Rsui/TwvBuqf0+tPPtb5ke5E44ukLq1zbq1G8XcbLwwVug+ BGeVuD87+TEpFXLGqpOCLGH/Iz9Ajo7Lgh9Xdo1+BWVOmXKdpCNpJ3kH3+1nXuHh SgKD8NYI9AQVGXaf8d28NjVtDTr+EU5o1SExB12kOYwTGYunI0v59HdM2iqluE1V pezX2bYman+MXBpjsItT4qSElE4Xdkx3qngiZQBEfVDOC9KXx25fGQHtaO5LdOcC rpzPEaLKhyot6pBkfQdVwW2JBt2e8kLUEiuieToZTIYPjo9mkD5YnRMqcJLEDI10 zAQrGecqlFOO3uIyw8dkoFHTIEKnOJWVxN3q5CeqwOcH6IzsR7pFopQ6nBUmUJZ7 kUXhmordtdl7l0WiLWhw =tmy0 -----END PGP SIGNATURE----- --nextPart2670609.4EyxNI9l10--