From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108051 invoked by alias); 30 Mar 2015 16:32:00 -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 107982 invoked by uid 89); 30 Mar 2015 16:31:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-ob0-f171.google.com Received: from mail-ob0-f171.google.com (HELO mail-ob0-f171.google.com) (209.85.214.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 30 Mar 2015 16:31:58 +0000 Received: by obcjt1 with SMTP id jt1so127177699obc.2; Mon, 30 Mar 2015 09:31:55 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.227.132 with SMTP id sa4mr27839445obc.40.1427733104292; Mon, 30 Mar 2015 09:31:44 -0700 (PDT) Received: by 10.76.134.102 with HTTP; Mon, 30 Mar 2015 09:31:44 -0700 (PDT) In-Reply-To: <1427730751.30498.4.camel@ubuntu-sellcey> References: <1427730751.30498.4.camel@ubuntu-sellcey> Date: Mon, 30 Mar 2015 16:32:00 -0000 Message-ID: Subject: Re: [PATCH 1/8] Add --with-system-zlib in bfd From: "H.J. Lu" To: sellcey@imgtec.com Cc: Binutils , GDB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg01000.txt.bz2 On Mon, Mar 30, 2015 at 8:52 AM, Steve Ellcey wrote: > 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 remo= ve >> > --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=3DCC --mode=3Dlink gcc -W -Wall -Wstrict-protot= ypes -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 libb= fd.la archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo coff-bfd.l= o compress.lo corefile.lo format.lo hash.lo init.lo libbfd.lo linker.lo mer= ge.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` -l= dl -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-l= inux-gnu/binutils-gdb/bfd' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/scratch/sellcey/repos/nightly/obj-mips-mti-l= inux-gnu/binutils-gdb/bfd' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/scratch/sellcey/repos/nightly/obj-mips-mti-l= inux-gnu/binutils-gdb/bfd' > make: *** [all-bfd] Error 2 > Error: Make command failed, stopping build. I will take a look. --=20 H.J.