From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90212 invoked by alias); 2 Apr 2015 16:26:06 -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 89548 invoked by uid 89); 2 Apr 2015 16:26:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients 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 16:26:05 +0000 Received: from vapier (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with SMTP id D24953407E9; Thu, 2 Apr 2015 16:26:02 +0000 (UTC) Date: Thu, 02 Apr 2015 16:26:00 -0000 From: Mike Frysinger To: "H.J. Lu" Cc: GDB , Binutils Subject: Re: [committed, PATCH] Fix sim build Message-ID: <20150402162602.GD22171@vapier> Mail-Followup-To: "H.J. Lu" , GDB , Binutils References: <20150401173315.GA2820@intel.com> <20150402053501.GA9832@vapier> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BI5RvnYi6R4T2M87" Content-Disposition: inline In-Reply-To: X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00109.txt.bz2 --BI5RvnYi6R4T2M87 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2386 On 02 Apr 2015 05:50, H.J. Lu wrote: > On Wed, Apr 1, 2015 at 10:35 PM, Mike Frysinger wrote: > > 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 > > two dirs deep which leads to failure: > > > > make[2]: Entering directory '/usr/local/src/gnu/gdb/build/build-bfin-mi= ngw/sim/bfin' > > i686-w64-mingw32-gcc -DHAVE_CONFIG_H -DWITH_DEFAULT_MODEL=3D'"bf537"'= -DPROFILE=3D1 -DWITH_PROFILE=3D-1 -DWITH_DEFAULT_ALIGNMENT=3DSTRICT_ALI= GNMENT -DWITH_TARGET_BYTE_ORDER=3DLITTLE_ENDIAN -DWITH_ENVIRONMENT=3DALL_E= NVIRONMENT -DWITH_HW=3D1 -DWITH_HOST_BYTE_ORDER=3D0 -DDEFAULT_INLINE=3D0 = -Wall -Wdeclaration-after-statement -Wpointer-arith -Wpointer-sign -Wn= o-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts = -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body -Wmissing-p= arameter-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../../../../si= m/bfin/../../opcodes -g -O2 -D__USE_MINGW_ACCESS -static-libstdc++ -static= -libgcc -Wl,--stack,12582912 -o run.exe \ > > nrun.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a ../../= libiberty/libiberty.a -lm -L../zlib -lz -lm > > /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. g= uess you > > want -L\$(top_builddir)/lib instead. > > -mike >=20 > These are 3 patches I pushed. I used >=20 > zlibdir=3D"-L\$(top_builddir)/../zlib" > zlibinc=3D"-I\$(top_srcdir)/../zlib" >=20 > since top_xxx is relative to configure. I also added top_srcdir to > gdb/Makefile.in. err, yeah, obviously you're right :). the sim provides srcroot, but that=20 doesn't look common, and there doesn't seem to be a buildroot. the latest tree is working for me now. thanks! -mike --BI5RvnYi6R4T2M87 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVHW2aAAoJEEFjO5/oN/WBkpsP+wRbsEf2bWXtbsFEQSthQI4n VngmmSU2Gjv3G0ILrnDhPpH9JL0rkoThUfwf0sbvHA/WNpRVzwu/egX6gnDcH7hT njHb2+pIuJ9SxcxDNvLUUyfeq0KdX3qhjrM99KR4cW5pZs6pdlDevkfisUDEqPV9 8JHuuLRadAPDjPSqTNOGrK/tJXWzFf0Lh6Ka2IX4KAktxBDavl83V1OBNzBijBeX Pu3/y+LEXo1Ss7KWrE7Yevou/YkiXUaUE4mfUF7dTLf8H0JQue0I/UGVdk2tttvS wn6MJ3RL7DhqNfEKbmCltRHl6DrSD+Sp5m0rjbXe+eMfXxQKpMisob/rPRgwLolZ BzNw/mS7UFPIt29XCq7b6f0YyPi8/zFZVW1F64Sh8aw7Er8umNQ5jd0x0DDBdmII 71eIAnYOmePPAt58p8OdxOrzLJyzn0LY/xwYI9GeazaQQrxe+mLO8dK2vgCJBaIS agf/j5zm98ybJ2RB5nhVaGXd4UnTLVm2lcP/CfdOBWXJCDsZAS2Cgoc0Czw1TR6n QHaC3xm8H9ISuA0PVSB/Os/fbNvh2FXJWtrUNPaLIibUDk73goETvBv6J4sQCm6j nGrxB220Twm2rie1QFmfVe9zLAL2LMEcChL/fyQzMKRo71nuiGGtbGuV6Rj1L1z+ X28xQ2foQRyKVmUvs3+5 =S0Mt -----END PGP SIGNATURE----- --BI5RvnYi6R4T2M87--