Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: /backup/obj/tooldir.NetBSD-5.99.22-amd64/bin/nbhost-mkdep: Unknown option: -traditional-cpp

On Tue, May 18, 2010 at 12:26:17PM -0500, Jeremy C. Reed wrote:
> On Tue, 18 May 2010, Jeremy C. Reed wrote:
> > *** Failed command: 
> > /backup/obj/tooldir.NetBSD-5.99.22-amd64/bin/nbhost-mkdep -f cat.d -- 
> > -I/backup/obj/tools/compat -I/backup/obj/tools/compat/include 
> > -I/usr/src/tools/cat/../compat -DHAVE_NBTOOL_CONFIG_H=1 
> > -D_FILE_OFFSET_BITS=64 -traditional-cpp 
> > /usr/src/tools/cat/../../bin/cat/cat.s
> I should have looked closer. See that "cat.s" (assembler source file). 
> It was being used instead of the cat.c. I don't know why cat.s was used 
> in this case. But I do know why it was there -- I created it over a 
> month ago when I was comparing pcc and gcc generation.

Nothing in the makefiles adds the dependency of foo.o against (typically)
foo.c when the foo.o list is generated.
This means that makes suffix rules are used to find the source file (as
well as the commands).
A simple change to the relevant .mk file would fix this - and also
fix the problem in libc where some sub-archs don't want the .S file.


David Laight:

Home | Main Index | Thread Index | Old Index