Subject: port-hp300/2151: undefined %SFILES causes an empty mkdep call in hp300 kernel make
To: None <gnats-bugs@NetBSD.ORG>
From: Thorsten Frueauf <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 02/29/1996 17:52:28
>Number:         2151
>Category:       port-hp300
>Synopsis:       undefined %SFILES causes an empty mkdep call in hp300 kernel make
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 29 12:20:01 1996
>Last-Modified:
>Originator:     Thorsten Frueauf
>Organization:
private
>Release:        <NetBSD-current source date> current 29.02.96
>Environment:
	
System: NetBSD di_frueauf 1.1A NetBSD 1.1A (CYBERDYNE) #1: Thu Feb 29 12:16:07 GMT 1996 milano@di_frueauf:/home/milano/source/netbsd-src/sys/arch/amiga/compile/CYBERDYNE amiga


>Description:
	
%SFILES is commented out in /src/sys/arch/hp300/conf/Makefile.hp300 which
causes an mkdep call without input files.

>How-To-Repeat:
	
Compile a kernel on current hp300 and watch:

mkdep -a -x assembler-with-cpp -traditional-cpp -D_LOCORE -I. -I../../../../arch
 -I../../../.. -DMILANO -DHP380 -DHP375 -DHP370 -DHP360 -DHP350 -DHP340 -DHP330 
-DHP320 -DGENERIC -DDIAGNOSTIC -DDEBUG -DDDB -DCOMPAT_HPUX -DCOMPAT_NOLABEL -DUS
ELEDS -DFPSP -DTCP_COMPAT_42 -DMROUTING -DGATEWAY -DINET -DMFS -DPROCFS -DFDESC 
-DKERNFS -DUNION -DNFSCLIENT -DNFSSERVER -DCD9660 -DQUOTA -DFFS -DFIFO -DNKMEMCL
USTERS=1024 -DKTRACE -DSYSVMSG -DSYSVSEM -DSYSVSHM -DCOMPAT_10 -DCOMPAT_09 -DCOM
PAT_44 -DCOMPAT_43 -DDEVPAGER -DVNODEPAGER -DSWAPPAGER -D_KERNEL -Dmc68020 -Dhp3
00 -DFPCOPROC 
gcc: Warning: `-x assembler-with-cpp' after last input file has no effect
gcc: No input files

>Fix:
	
If there are really no %SFILES then comment out the following line in
/src/sys/arch/hp300/conf/Makefile.hp300:

#	mkdep -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
>Audit-Trail:
>Unformatted:
undefined %SFILES causes an empty mkdep call in hp300 kernel make