This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] binutils/ Makefile.am missing dependency


Hi,

checked-in
	http://sourceware.org/ml/binutils-cvs/2009-09/msg00080.html

as getting spurious errors during -j12 builds otherwise.

Assuming as forgotten in:
	http://sourceware.org/ml/binutils/2009-08/msg00237.html

Considering it as obvious:
	$ grep '# *include.*[.]c' binutils/*.c
	binutils/srconv.c:#include "sysroff.c"
	binutils/sysdump.c:#include "sysroff.c"

binutils/Makefile.am did already contain:
	srconv.o: sysroff.c

It was reproducible by:
	$ cd binutils; for i in .deps/*; do : >$i; done; rm sysroff.c sysdump{,.o}; make sysdump
	gcc -DHAVE_CONFIG_H -I.  -I. -I. -I../bfd -I./../bfd -I./../include -DLOCALEDIR="\"/usr/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -m64 -ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -MT sysdump.o -MD -MP -MF .deps/sysdump.Tpo -c -o sysdump.o sysdump.c
	sysdump.c:255:21: error: sysroff.c: No such file or directory
	make: *** [sysdump.o] Error 1


Thanks,
Jan


--- src/binutils/ChangeLog	2009/09/05 07:56:22	1.1523
+++ src/binutils/ChangeLog	2009/09/05 11:09:34	1.1524
@@ -1,3 +1,8 @@
+2009-09-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* Makefile.am (sysdump.o): Depend on sysroff.c.
+	* Makefile.in: Regenerate.
+
 2009-09-05  Martin Thuresson  <martin@mtme.org>
 
 	* ieee.c (ieee_read_cxx_misc, ieee_read_cxx_class,
--- src/binutils/Makefile.am	2009/09/01 20:56:51	1.118
+++ src/binutils/Makefile.am	2009/09/05 11:09:34	1.119
@@ -432,6 +432,7 @@
 coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
 
 sysdump_SOURCES = sysdump.c $(BULIBS)
+sysdump.o: sysroff.c
 
 # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
 # scripts, since they are only included conditionally.
--- src/binutils/Makefile.in	2009/09/01 20:56:51	1.139
+++ src/binutils/Makefile.in	2009/09/05 11:09:35	1.140
@@ -1305,6 +1305,7 @@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@
 @AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCC_FALSE@	$(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
+sysdump.o: sysroff.c
 
 # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
 # scripts, since they are only included conditionally.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]