From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zc5GQ-0004WV-Fj for barebox@lists.infradead.org; Wed, 16 Sep 2015 05:28:15 +0000 Date: Wed, 16 Sep 2015 07:27:51 +0200 From: Sascha Hauer Message-ID: <20150916052751.GC4018@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: compile bug about banner and version macros. To: Kevin Du Huanpeng Cc: "barebox@lists.infradead.org" On Tue, Sep 15, 2015 at 07:49:15PM +0800, Kevin Du Huanpeng wrote: > this patch fix a tiny compile bug. > 1. how to reproduce the bug. > $ export ARCH=mips > $ export CROSS_COMPILE=mips-linux-gnu- > $ make allnoconfig > - - - error msg - - - > du@L64:~/source/barebox$ make > CHK include/generated/version.h > CHK include/generated/utsrelease.h > AS arch/mips/boot/start.o > arch/mips/boot/start.S:25:31: fatal error: generated/compile.h: No > such file or directory > #include > ^ > compilation terminated. > make[1]: *** [arch/mips/boot/start.o] Error 1 > make: *** [arch/mips/boot] Error 2 include/generated/compile.h is autogenerated, but arch/mips/boot/start.o does not have a dependency on that file, so depending on the number of cores you have it might or might not exist when you compile start.S. Just try building barebox again when it failed, it should work the second time. The patch you post may work by accident, but is no proper fix for this problem. Unfortunately I haven't found a working solution yet other than removing UTS_VERSION from start.S Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox