From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29879 invoked by alias); 30 Mar 2015 15:52:46 -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 29852 invoked by uid 89); 30 Mar 2015 15:52:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 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: mailapp01.imgtec.com Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 Mar 2015 15:52:44 +0000 Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id EC519254EB51A; Mon, 30 Mar 2015 16:52:38 +0100 (IST) Received: from BAMAIL02.ba.imgtec.org (10.20.40.28) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 30 Mar 2015 16:52:42 +0100 Received: from [10.20.3.58] (10.20.3.58) by bamail02.ba.imgtec.org (10.20.40.28) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 30 Mar 2015 08:52:39 -0700 Message-ID: <1427730751.30498.4.camel@ubuntu-sellcey> Subject: Re: [PATCH 1/8] Add --with-system-zlib in bfd From: Steve Ellcey Reply-To: To: "H.J. Lu" CC: Binutils , GDB Date: Mon, 30 Mar 2015 15:52:00 -0000 In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg00991.txt.bz2 On Sun, 2015-03-29 at 07:10 -0700, H.J. Lu wrote: > On Thu, Mar 26, 2015 at 8:57 AM, H.J. Lu wrote: > > I imported zlib from GCC. This patch adds --with-system-zlib and remove > > --with-zlib in bfd. OK for master? I think the global binutils-gdb Makefile needs to have a dependency of bfd on zlib. If I build 'all-binutils' (using just the binutils-gdb repository, not a combined tree with GCC) I get a build failure. If I explicitly build all-zlib before building all-binutils it works, but I should not have to do that. /bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -I/scratch/sellcey/repos/nightly/src/binutils-gdb/bfd/../zlib -g -O2 -rpath /scratch/sellcey/repos/nightly/install-mips-mti-linux-gnu/x86_64-unknown-linux-gnu/mips-mti-linux-gnu/lib -release `cat libtool-soversion` -static-libstdc++ -static-libgcc -o libbfd.la archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo coff-bfd.lo compress.lo corefile.lo format.lo hash.lo init.lo libbfd.lo linker.lo merge.lo opncls.lo reloc.lo section.lo simple.lo stab-syms.lo stabs.lo syms.lo targets.lo binary.lo ihex.lo srec.lo tekhex.lo verilog.lo `cat ofiles` -ldl -L../zlib -lz -ldl ./libtool: line 5195: cd: ../zlib: No such file or directory libtool: link: cannot determine absolute directory name of `../zlib' make[3]: *** [libbfd.la] Error 1 make[3]: Leaving directory `/scratch/sellcey/repos/nightly/obj-mips-mti-linux-gnu/binutils-gdb/bfd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/scratch/sellcey/repos/nightly/obj-mips-mti-linux-gnu/binutils-gdb/bfd' make[1]: *** [all] Error 2 make[1]: Leaving directory `/scratch/sellcey/repos/nightly/obj-mips-mti-linux-gnu/binutils-gdb/bfd' make: *** [all-bfd] Error 2 Error: Make command failed, stopping build. Steve Ellcey sellcey@imgtec.com