Date: Fri, 1 May 1998 11:44:07 -0400 From: Ian Lance Taylor <ian@cygnus.com> To: peter.jeremy@alcatel.com.au Cc: bug-gnu-utils@gnu.org, freebsd-ports@FreeBSD.ORG Subject: Re: Circular dependency in libiberty Message-ID: <199805011544.LAA08846@subrogation.cygnus.com> In-Reply-To: <199805010017.KAA12929@gsms01.alcatel.com.au> (message from Peter Jeremy on Fri, 01 May 1998 10:17:07 %2B1000 (EST))
next in thread | previous in thread | raw e-mail | index | archive | help
Date: Fri, 01 May 1998 10:17:07 +1000 (EST) From: Peter Jeremy <peter.jeremy@alcatel.com.au> When building libiberty as part of either binutils 2.9 or gdb 4.17 with a FreeBSD 2.x host, gnu make (3.76.1) successfully builds libiberty.a, but reports a circular dependency. Running gnu make in the libiberty directory after the library is successfully built gives: pc0640% gmake gmake[1]: Entering directory `/usr/users/jeremyp/src/binutils/libiberty' gmake[1]: Circular vasprintf.o <- config.h dependency dropped. gmake[1]: Leaving directory `/usr/users/jeremyp/src/binutils/libiberty' pc0640% The standard FreeBSD 2.2.5 make is unable to handle the circular dependency and exits without building the library. Thanks for the bug report. I think the appended patch to libiberty/Makefile.in will avoid the problem. Ian Index: Makefile.in =================================================================== RCS file: /cvs/cvsfiles/devo/libiberty/Makefile.in,v retrieving revision 1.135 retrieving revision 1.136 diff -u -r1.135 -r1.136 --- Makefile.in 1998/01/14 02:43:04 1.135 +++ Makefile.in 1998/05/01 15:43:14 1.136 @@ -252,8 +252,6 @@ required-list: Makefile echo $(REQUIRED_OFILES) > required-list -$(HOST_OFILES) $(REQUIRED_OFILES) : config.h - RULE1 = $(TARGETLIB) $(RULE1): $(REQUIRED_OFILES) $(DO_ALSO) .always. @$(MAKE) RULE1=not-used RULE2=$(TARGETLIB) $(FLAGS_TO_PASS) \ @@ -312,25 +310,27 @@ Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) $(SHELL) ./config.status +alloca.o: config.h argv.o: $(INCDIR)/libiberty.h -basename.o: $(INCDIR)/libiberty.h +basename.o: config.h $(INCDIR)/libiberty.h +choose-temp.o: config.h concat.o: $(INCDIR)/libiberty.h cplus-dem.o: $(INCDIR)/demangle.h fdmatch.o: $(INCDIR)/libiberty.h -fnmatch.o: $(INCDIR)/fnmatch.h -getopt.o: $(INCDIR)/getopt.h -getopt1.o: $(INCDIR)/getopt.h +fnmatch.o: config.h $(INCDIR)/fnmatch.h +getopt.o: config.h $(INCDIR)/getopt.h +getopt1.o: config.h $(INCDIR)/getopt.h getruntime.o: $(INCDIR)/libiberty.h hex.o: $(INCDIR)/libiberty.h floatformat.o: $(INCDIR)/floatformat.h objalloc.o: $(INCDIR)/objalloc.h obstack.o: $(INCDIR)/obstack.h -pexecute.o: $(INCDIR)/libiberty.h +pexecute.o: config.h $(INCDIR)/libiberty.h spaces.o: $(INCDIR)/libiberty.h -strerror.o: $(INCDIR)/libiberty.h -strsignal.o: $(INCDIR)/libiberty.h +strerror.o: config.h $(INCDIR)/libiberty.h +strsignal.o: config.h $(INCDIR)/libiberty.h xatexit.o: $(INCDIR)/libiberty.h xexit.o: $(INCDIR)/libiberty.h xmalloc.o: $(INCDIR)/libiberty.h xstrdup.o: $(INCDIR)/libiberty.h -xstrerror.o: $(INCDIR)/libiberty.h +xstrerror.o: config.h $(INCDIR)/libiberty.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805011544.LAA08846>