On 2012-01-31 14:20, Rafal Jaworowski wrote:
On 2012-01-30, at 22:56, Dimitry Andric wrote:
...
That said, I still don't understand why the generated aicasm_scan.c file
is still defining the input() function.  Rafal, just to be sure, can you
please paste the file that was generated during your buildkernel?

Problem identified: the auto-gen'd aicasm files would not get updated in the 
preexisting kernel OBJ subdir. After wiping out the OBJ sub dir entirely make 
buildkernel works fine.

Do you know why would the generated aicasm* files not get a refresh in the 
kernel OBJ dir?

Well, in general, incremental building is difficult to get working for
all corner cases, like this particular one.  The lexer and scanner .c
files are generated from .l and .y files, so if the latter did not get
an updated timestamp, the .c files will not be regenerated either.

The only way to fix this would be to add a dependency on the actual lex
and yacc executables.  But that is probably overkill: if you wanted to
be consistent, you would also have to relink every executable if ld gets
updated, recompile every object file if cc gets updated, and so on.

It's probably easier to just clean out your object tree, and build from
scratch. :)

_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to