Subject: bin/2407: as creates output even if no input file
To: None <gnats-bugs@NetBSD.ORG>
From: Ignatios Souvatzis <is@jocelyn.rhein.de>
List: netbsd-bugs
Date: 05/13/1996 02:56:58
>Number:         2407
>Category:       bin
>Synopsis:       as creates output even if no input file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 14 07:20:08 1996
>Last-Modified:
>Originator:     Ignatios Souvatzis
>Organization:
	Hackers 'R' Us
>Release:        1.1
>Environment:
	
System: NetBSD jocelyn.rhein.de 1.1B NetBSD 1.1B (DRACO) #56: Mon May 13 02:35:50 MET DST 1996 is@jocelyn.rhein.de:/bulk/s2/src/sys/arch/amiga/compile/DRACO amiga


>Description:
	When the input file isn't there, as nevertheless creates a 32 byte 
	output file. This can lead to confusion, because in some circumstances
	(e.g. 060sp build process) the compilation process will happily
	continue until the linker will notice missing symbols.

	As a side effect, innocent existing output files will be overwritten
	even if the input files don't exist due to a typing error.

>How-To-Repeat:
	rm bla.s
	ls -l bla.o
	as -o bla.o bla.s
	ls -l bla.o
>Fix:
	Fix not known.

	Workaround: always make clean first (and be sure your clean
	target will REALLY clean all) Don't try this at home if
	you have a slow machine. ;-)
>Audit-Trail:
>Unformatted: