Subject: toolchain/22299: gcc3 Makefile not fixed for latest .depend handling
To: None <gnats-bugs@gnats.netbsd.org>
From: Anders Hjalmarsson <hjalmar@hjalmar.to>
List: netbsd-bugs
Date: 07/30/2003 00:43:24
>Number:         22299
>Category:       toolchain
>Synopsis:       gcc3 Makefile not fixed for latest .depend handling
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 29 22:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Anders Hjalmarsson
>Release:        NetBSD 1.6U
>Organization:
>Environment:
System: NetBSD bigbox.hjalmar.to 1.6U NetBSD 1.6U (BIGBOX-$Revision: 1.25 $) #228: Mon Jul 21 23:05:34 CEST 2003 hjalmar@bigbox.hjalmar.to:/usr/SRC/config/i386/compile/BIGBOX i386
Architecture: i386
Machine: i386
>Description:
	The Makefile for gcc3 has not been updated for the latest
	changes to .depend handling

	Note: There some other Makefiles which refer to .depend
	Running
	find . -name Mak\* -print | xargs grep -H -l \\\.depend
	gives some matches, but I do not know which ones need fixing
	nor how they should be fixed.

>How-To-Repeat:
	cd /usr/src/gnu/usr.bin/gcc3; make dependall

dependall ===> frontend
mkdep -f gcc.d    -I/usr/SRC/netbsd/gnu/usr.bin/gcc3/frontend -I/usr/SRC/netbsd/gnu/usr.bin/gcc3/frontend/../arch/i386 -I/usr/SRC/netbsd/gnu/usr.bin/gcc3/backend/obj.i386 -I.  -DIN_GCC -DHAVE_CONFIG_H -I/usr/src/gnu/dist/gcc/gcc -I/usr/src/gnu/dist/gcc/gcc/. -I/usr/src/gnu/dist/gcc/gcc/config -I/usr/src/gnu/dist/gcc/gcc/../include  -DPREFIX=\"/usr\"  -DDEFAULT_TARGET_VERSION=\"3.3.1\"  -DDEFAULT_TARGET_MACHINE=\"i386--netbsdelf\" -DLOCALEDIR=\"/usr/share/locale\" -DNETBSD_NATIVE     /usr/src/gnu/dist/gcc/gcc/gcc.c
/usr/src/gnu/dist/gcc/gcc/gcc.c:866:19: specs.h: No such file or directory mkdep: compile failed.
*** Error code 1

>Fix:
Index: frontend/Makefile
===================================================================
RCS file: /cvsroot/src/gnu/usr.bin/gcc3/frontend/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile	2003/07/29 07:26:23	1.2
+++ Makefile	2003/07/29 21:59:12
@@ -18,7 +18,7 @@
 
 .include <bsd.lib.mk>
 
-${OBJS} .depend: multilib.h specs.h
+${OBJS} ${DEPENDSRCS}: multilib.h specs.h
 
 .PATH: ${DIST}/gcc
 
>Release-Note:
>Audit-Trail:
>Unformatted:
 	Current from 20030729