Subject: kern/2050: 'make depend' fails for kernel builds
To: None <gnats-bugs@NetBSD.ORG>
From: Mike Long <mike.long@analog.com>
List: netbsd-bugs
Date: 02/08/1996 02:20:04
>Number:         2050
>Category:       kern
>Synopsis:       'make depend' fails for kernel builds
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb  8 02:35:04 1996
>Last-Modified:
>Originator:     Mike Long <mike.long@analog.com>
>Organization:
	Unquotable quotes
>Release:        960207
>Environment:
System: NetBSD azathoth 1.1A NetBSD 1.1A (NOIDE) #0: Wed Feb 7 01:30:23 EST 1996 root@azathoth:/usr/src/sys/arch/i386/compile/NOIDE i386

>Description:
	mkdep passes the '-x assembler-with-cpp' flag to gcc so that
it will preprocess assembly sources; but it fails to pass
'-traditional-cpp', so the preprocessor chokes on quote characters in
assembly comments.  Actually assembling the files works properly,
because the -traditional-cpp flag is used in NORMAL_S and NORMAL_S_C.

>How-To-Repeat:
	# csh, heh
	foreach i (/sys/arch/*/conf)
	cd $i
	config GENERIC
	cd ../compile/GENERIC
	make depend
	end
>Fix:
	Apply the patch below for the i386.  The other ports must also
be fixed; *all* of them have this bug.

*** sys/arch/i386/conf/Makefile.i386~  Sat Feb  3 07:23:28 1996
--- sys/arch/i386/conf/Makefile.i386   Thu Feb  8 01:08:13 1996
***************
*** 153,159 ****
  depend: .depend
  .depend: ${SRCS} assym.h vnode_if.h param.c
!       mkdep -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${I386}/i386/locore.s
        mkdep -a ${CFLAGS} ${CPPFLAGS} vnode_if.c param.c ioconf.c ${CFILES}
!       mkdep -a -x assembler-with-cpp ${AFLAGS} ${CPPFLAGS} ${SFILES}
        mkdep -a ${CFLAGS} ${CPPFLAGS} ${PARAM} ${I386}/i386/genassym.c
  
--- 153,161 ----
  depend: .depend
  .depend: ${SRCS} assym.h vnode_if.h param.c
!       mkdep -traditional-cpp -x assembler-with-cpp ${AFLAGS} \
!           ${CPPFLAGS} ${I386}/i386/locore.s
        mkdep -a ${CFLAGS} ${CPPFLAGS} vnode_if.c param.c ioconf.c ${CFILES}
!       mkdep -a -traditional-cpp -x assembler-with-cpp ${AFLAGS} \
!           ${CPPFLAGS} ${SFILES}
        mkdep -a ${CFLAGS} ${CPPFLAGS} ${PARAM} ${I386}/i386/genassym.c
  

>Audit-Trail:
>Unformatted: