compile bug about banner and version macros.

Sascha Hauer s.hauer at pengutronix.de
Tue Sep 15 22:27:51 PDT 2015


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 at 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 <generated/compile.h>
>                                ^
> 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 |



More information about the barebox mailing list