From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127488 invoked by alias); 31 Mar 2015 17:18:39 -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 127475 invoked by uid 89); 31 Mar 2015 17:18:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: usevmg20.ericsson.net Received: from usevmg20.ericsson.net (HELO usevmg20.ericsson.net) (198.24.6.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 31 Mar 2015 17:18:37 +0000 Received: from EUSAAHC007.ericsson.se (Unknown_Domain [147.117.188.93]) by usevmg20.ericsson.net (Symantec Mail Security) with SMTP id 06.02.12456.2D08A155; Tue, 31 Mar 2015 13:11:14 +0200 (CEST) Received: from [142.133.110.95] (147.117.188.8) by smtp-am.internal.ericsson.com (147.117.188.95) with Microsoft SMTP Server id 14.3.210.2; Tue, 31 Mar 2015 13:18:34 -0400 Message-ID: <551AD6EA.4070603@ericsson.com> Date: Tue, 31 Mar 2015 17:18:00 -0000 From: Antoine Tremblay User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "H.J. Lu" CC: GDB Subject: Re: [PATCH 1/8] Add --with-system-zlib in bfd References: <1427730751.30498.4.camel@ubuntu-sellcey> <55197D8E.7070208@codesourcery.com> <1427735607.30498.7.camel@ubuntu-sellcey> <1427736975.30498.8.camel@ubuntu-sellcey> <5519A502.8040001@ericsson.com> <5519A5F3.3060505@ericsson.com> <551AD59A.9090507@ericsson.com> In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg01063.txt.bz2 On 03/31/2015 01:16 PM, H.J. Lu wrote: > On Tue, Mar 31, 2015 at 10:12 AM, Antoine Tremblay > wrote: >>> Also doing ./configure in binutils/zlib I get : >>> >>> config.status: creating Makefile >>> config.status: executing default-1 commands >>> ./config.status: line 1190: ./../../config-ml.in: No such file or >>> directory >>> >>> So configure does not exit cleanly...ideas? >>> >>> >> >> I did a bit more research on this issue and I get this if I build gdb from >> it's source directory >> >> in binutils-gdb >> ./configure >> make >> >> make fails with : while in zlib directory >> >> configure: creating ./config.status >> config.status: creating Makefile >> config.status: executing default-1 commands >> ./config.status: line 1190: ./../../config-ml.in: No such file or directory >> >> However if I build out of tree in like binutils-gdb/build for example I do >> not get this issue. >> >> Could this be related to 92c695a14f6a5a24b177e89624c13d7dbcbf9e1f ? >> >> Subject: [PATCH 09/76] A zlib to tarball >> >> I see this snippet there >> >> - ./configure --target=i386-pc-linux-gnu >> + ./configure --target=i386-pc-linux-gnu \ >> + --with-target-subdir=. \ >> + --disable-multilib >> >> With these options I get around the configure problem only to fail in gas >> with : >> make[4]: Entering directory `/home/x/src/binutils-gdb/gas' >> /bin/bash ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes >> -Wmissing-prototypes -Wshadow -Werror -I./../zlib -g -O2 -static-libstdc++ >> -static-libgcc -o as-new app.o as.o atof-generic.o compress-debug.o cond.o >> depend.o dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o >> flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o >> listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o >> stabs.o subsegs.o symbols.o write.o tc-i386.o obj-elf.o atof-ieee.o >> ../opcodes/libopcodes.la ../bfd/libbfd.la ../libiberty/libiberty.a -ldl >> libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes >> -Wshadow -Werror -I./../zlib -g -O2 -static-libstdc++ -static-libgcc -o >> as-new app.o as.o atof-generic.o compress-debug.o cond.o depend.o >> dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o >> flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o >> macro.o messages.o output-file.o read.o remap.o sb.o stabs.o subsegs.o >> symbols.o write.o tc-i386.o obj-elf.o atof-ieee.o >> ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a >> -L/home/x/src/binutils-gdb/zlib -lz ../libiberty/libiberty.a -ldl >> /usr/bin/ld: cannot find -lz >> >> >> This is with head as : 711a72d3d6f8cd3c3f408e718ff19aa4bfd2144e >> >> Did you try to compile directly in the src tree ? >> > > Yes, I did. You need to add --disable-multilib, and maybe > --with-target-subdir=. > As I said if I add --disable-multilib, -with-target-subdir=. I get into the gas missing zlib error above ? Also I don't think it's a good idea that gdb would require options to compile in it's source tree ? Is there a good reason for this ?