This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/8] Add --with-system-zlib in bfd
- From: Antoine Tremblay <antoine dot tremblay at ericsson dot com>
- To: <gdb-patches at sourceware dot org>, <hjl dot tools at gmail dot com>
- Date: Tue, 31 Mar 2015 13:12:58 -0400
- Subject: Re: [PATCH 1/8] Add --with-system-zlib in bfd
- Authentication-results: sourceware.org; auth=none
- References: <CAMe9rOp9RHgjnG3JpfSFXsyT4jwutoC7FWTWFzfoKEnT0GC48Q at mail dot gmail dot com> <1427730751 dot 30498 dot 4 dot camel at ubuntu-sellcey> <CAMe9rOqOPtZ5xD=cP_O-QajKdq8hhgnSFsjFvc+OEyAqrpwoHw at mail dot gmail dot com> <55197D8E dot 7070208 at codesourcery dot com> <CAMe9rOp_RvPPu4HuQDzcH5DwsRs5ViBW=5G5zOC0uvvmu-A25g at mail dot gmail dot com> <1427735607 dot 30498 dot 7 dot camel at ubuntu-sellcey> <CAMe9rOp7UDCMe0vP=uv8Tzh==Je9nyKV=bvHEJoPdvW8Y4Vksg at mail dot gmail dot com> <1427736975 dot 30498 dot 8 dot camel at ubuntu-sellcey> <5519A502 dot 8040001 at ericsson dot com> <5519A5F3 dot 3060505 at ericsson dot com>
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 ?