From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63649 invoked by alias); 2 Apr 2015 05:35:17 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 63632 invoked by uid 89); 2 Apr 2015 05:35:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_50,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 02 Apr 2015 05:35:15 +0000 Received: from vapier (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with SMTP id 6254A34076D; Thu, 2 Apr 2015 05:35:13 +0000 (UTC) Date: Thu, 02 Apr 2015 05:35:00 -0000 From: Mike Frysinger To: "H.J. Lu" Cc: GDB Subject: Re: [committed, PATCH] Fix sim build Message-ID: <20150402053501.GA9832@vapier> Mail-Followup-To: "H.J. Lu" , GDB References: <20150401173315.GA2820@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="eRtJSFbw+EEWtPj3" Content-Disposition: inline In-Reply-To: <20150401173315.GA2820@intel.com> X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00096.txt.bz2 --eRtJSFbw+EEWtPj3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1797 On 01 Apr 2015 10:33, H.J. Lu wrote: > I checked in this patch to fix sim build. this partially fixes it. the zlib macro is still broken: # Use the system's zlib library. zlibdir=3D-L../zlib that only works if you try to link zlib when you're one dir deep. the sim = is=20 two dirs deep which leads to failure: make[2]: Entering directory '/usr/local/src/gnu/gdb/build/build-bfin-mingw/= sim/bfin' i686-w64-mingw32-gcc -DHAVE_CONFIG_H -DWITH_DEFAULT_MODEL=3D'"bf537"' -D= PROFILE=3D1 -DWITH_PROFILE=3D-1 -DWITH_DEFAULT_ALIGNMENT=3DSTRICT_ALIGNME= NT -DWITH_TARGET_BYTE_ORDER=3DLITTLE_ENDIAN -DWITH_ENVIRONMENT=3DALL_ENVIR= ONMENT -DWITH_HW=3D1 -DWITH_HOST_BYTE_ORDER=3D0 -DDEFAULT_INLINE=3D0 = -Wall -Wdeclaration-after-statement -Wpointer-arith -Wpointer-sign -Wno-un= used -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmi= ssing-prototypes -Wdeclaration-after-statement -Wempty-body -Wmissing-param= eter-type -Wold-style-declaration -Wold-style-definition -Wno-format -D= __USE_MINGW_FSEEK -I. -I../../../../sim/bfin -I../common -I../../../../sim= /bfin/../common -I../../include -I../../../../sim/bfin/../../include -I../.= ./bfd -I../../../../sim/bfin/../../bfd -I../../opcodes -I../../../../sim/bf= in/../../opcodes -g -O2 -D__USE_MINGW_ACCESS -static-libstdc++ -static-lib= gcc -Wl,--stack,12582912 -o run.exe \ nrun.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a ../../libi= berty/libiberty.a -lm -L../zlib -lz -lm=20 /usr/libexec/gcc/i686-w64-mingw32/ld: cannot find -lz collect2: error: ld returned 1 exit status Makefile:297: recipe for target 'run.exe' failed make[2]: *** [run.exe] Error 1 the zlib.a is in zlib/, but sim/bfin/ can't see that with -L../zlib. guess= you=20 want -L\$(top_builddir)/lib instead. -mike --eRtJSFbw+EEWtPj3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVHNURAAoJEEFjO5/oN/WB+yUP/2bBiUgDv1peADhhp/8SUfTA 0E/J/q099789U2U2duh8BVL8VjJqJ6YQZ0sNTuu4GBMw2PPgtJEifj50LUaU4ze0 1Nj7jkD/sxmfvHUvZQ5nw0ijjeQIS534rMZfXDA6qpywFnP9J28BOc1yYnij7tYQ 4fuB65C7UwRie7uCnhs1w2etQIHXrSC5yli9c6JHeWC8ex2VcUJgWL30tyomdDH/ B7W4u1aIQpNlJTpAgwXmgbZ4ZSRelScwqUEaeQ0/Ez4sJ0EJdisEQcx3lcGlWptp zi4uzVgWdQwI5jn/5Vq8HiX3b3iXnkynY0W4iJ2/xGn7XDCKOTNBJ7EiE4xVGnU9 6RqDC+JDV02VDOdIV+AiGj8qwcw/TJnBhVOEmcd7ZanysPHzHFgiw0v1Jq4MNFVS WcwqOKdffPnlx9NW1utnrONfPUECR34jo+b4btyn7QM1rtJXfOT0s4A1jc7kz/eA cg0hGCf5IzLjaRnbiGhV37ZnQQC7HdfV8tsalNB7JWrP4aeUGZYrvnJ+uJ2fP6DY BN9OgVka/92qTgfQOFkQnEoN4Q/vELqTBRVrxXPzFQJzGnExgu+guTS3+0w5WZ7g rXVyKnQLrIlPVWKN9+FJrQ2byeLirWX8YMQQSO65Swx3RhjvHlxciqTY+WJZLKUP acszog5fiuGTsC9Khoj7 =fwIr -----END PGP SIGNATURE----- --eRtJSFbw+EEWtPj3--