From owner-svn-src-head@FreeBSD.ORG Tue Jan 31 13:53:53 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23CBB106564A; Tue, 31 Jan 2012 13:53:53 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id D29CD8FC08; Tue, 31 Jan 2012 13:53:52 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:4dd4:e805:cea2:78dc] (unknown [IPv6:2001:7b8:3a7:0:4dd4:e805:cea2:78dc]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 9BBF65C59; Tue, 31 Jan 2012 14:53:51 +0100 (CET) Message-ID: <4F27F26F.8080107@FreeBSD.org> Date: Tue, 31 Jan 2012 14:53:51 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120124 Thunderbird/10.0 MIME-Version: 1.0 To: Rafal Jaworowski References: <201201271829.q0RIT4Xq051545@svn.freebsd.org> <4F26F8C9.3080807@FreeBSD.org> <1327956501.1662.13.camel@revolution.hippie.lan> <4F27120E.5000207@FreeBSD.org> <9DAB4777-9799-49E3-8EBC-E7A567414D2A@semihalf.com> In-Reply-To: <9DAB4777-9799-49E3-8EBC-E7A567414D2A@semihalf.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, Ian Lepore , svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r230622 - head X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2012 13:53:53 -0000 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. :)