[U-Boot] problem building next on P2020DS_36BIT

I'm seeing the following build compile error related to building the next tree on P2020DS_36BIT. What's odd is that git bisect says its related to:
commit 4b142febff71eabdb7ddbb125c7b583b24ddc434 Author: Heiko Schocher hs@denx.de Date: Thu Dec 3 11:21:21 2009 +0100
common: delete CONFIG_SYS_64BIT_VSPRINTF and CONFIG_SYS_64BIT_STRTOUL
...
But that seems very odd to me. The other thing is if I run 'make' again it completes.
- k
make[2]: Leaving directory `/local/home/galak/git/u-boot-85xx/disk' make -C drivers/bios_emulator/ make[2]: Entering directory `/local/home/galak/git/u-boot-85xx/drivers/bios_emulator' In file included from atibios.c:49: biosemui.h:47:21: error: biosemu.h: No such file or directory In file included from biosemu.c:50: biosemui.h:47:21: error: biosemu.h: No such file or directory In file included from besys.c:51: biosemui.h:47:21: error: biosemu.h: No such file or directory In file included from bios.c:45: biosemui.h:47:21: error: biosemu.h: No such file or directory x86emu/decode.c:40:28: error: x86emu/x86emui.h: No such file or directory x86emu/ops2.c:45:28: error: x86emu/x86emui.h: No such file or directory x86emu/ops.c:76:28: error: x86emu/x86emui.h: No such file or directory x86emu/prim_ops.c:103:28: error: x86emu/x86emui.h: No such file or directory x86emu/sys.c:43:28: error: x86emu/x86emui.h: No such file or directory x86emu/debug.c:42:28: error: x86emu/x86emui.h: No such file or directory make[2]: *** No rule to make target `/tmp/p2020-2/drivers/bios_emulator/.depend', needed by `/tmp/p2020-2/drivers/bios_emulator/libatibiosemu.a'. Stop. make[2]: Leaving directory `/local/home/galak/git/u-boot-85xx/drivers/bios_emulator' make[1]: *** [/tmp/p2020-2/drivers/bios_emulator/libatibiosemu.a] Error 2 make[1]: Leaving directory `/local/home/galak/git/u-boot-85xx' make: *** [P2020DS_36BIT] Error 2

Scott,
This appears to be related to .depend generation and the patch that seems to cause the issue is:
Author: Scott Wood scottwood@freescale.com Date: Wed Nov 4 18:41:41 2009 -0600
makefiles: fixes for building build tools
Currently, some of the tools instead set CC to be HOSTCC in order to re-use some pattern rules -- but this fails when the user overrides CC on the make command line. Also, the HOSTCFLAGS in tools/Makefile are currently not being used because config.mk overwrites them.
It looks like for some reason we aren't getting the EXTRA_CFLAGS in drivers/bios_emulator/Makefile aren't getting picked up in the .depend generation.
- k
On Dec 10, 2009, at 1:22 PM, Kumar Gala wrote:
I'm seeing the following build compile error related to building the next tree on P2020DS_36BIT. What's odd is that git bisect says its related to:
commit 4b142febff71eabdb7ddbb125c7b583b24ddc434 Author: Heiko Schocher hs@denx.de Date: Thu Dec 3 11:21:21 2009 +0100
common: delete CONFIG_SYS_64BIT_VSPRINTF and CONFIG_SYS_64BIT_STRTOUL
...
But that seems very odd to me. The other thing is if I run 'make' again it completes.
- k
make[2]: Leaving directory `/local/home/galak/git/u-boot-85xx/disk' make -C drivers/bios_emulator/ make[2]: Entering directory `/local/home/galak/git/u-boot-85xx/drivers/bios_emulator' In file included from atibios.c:49: biosemui.h:47:21: error: biosemu.h: No such file or directory In file included from biosemu.c:50: biosemui.h:47:21: error: biosemu.h: No such file or directory In file included from besys.c:51: biosemui.h:47:21: error: biosemu.h: No such file or directory In file included from bios.c:45: biosemui.h:47:21: error: biosemu.h: No such file or directory x86emu/decode.c:40:28: error: x86emu/x86emui.h: No such file or directory x86emu/ops2.c:45:28: error: x86emu/x86emui.h: No such file or directory x86emu/ops.c:76:28: error: x86emu/x86emui.h: No such file or directory x86emu/prim_ops.c:103:28: error: x86emu/x86emui.h: No such file or directory x86emu/sys.c:43:28: error: x86emu/x86emui.h: No such file or directory x86emu/debug.c:42:28: error: x86emu/x86emui.h: No such file or directory make[2]: *** No rule to make target `/tmp/p2020-2/drivers/bios_emulator/.depend', needed by `/tmp/p2020-2/drivers/bios_emulator/libatibiosemu.a'. Stop. make[2]: Leaving directory `/local/home/galak/git/u-boot-85xx/drivers/bios_emulator' make[1]: *** [/tmp/p2020-2/drivers/bios_emulator/libatibiosemu.a] Error 2 make[1]: Leaving directory `/local/home/galak/git/u-boot-85xx' make: *** [P2020DS_36BIT] Error 2
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Kumar Gala wrote:
Scott,
This appears to be related to .depend generation and the patch that seems to cause the issue is:
Author: Scott Wood scottwood@freescale.com Date: Wed Nov 4 18:41:41 2009 -0600
makefiles: fixes for building build tools Currently, some of the tools instead set CC to be HOSTCC in order to re-use some pattern rules -- but this fails when the user overrides CC on the make command line. Also, the HOSTCFLAGS in tools/Makefile are currently not being used because config.mk overwrites them.
It looks like for some reason we aren't getting the EXTRA_CFLAGS in drivers/bios_emulator/Makefile aren't getting picked up in the .depend generation.
EXTRA_CFLAGS is not part of the u-boot build system. CFLAGS is, but it is not used in dependency generation.
Prior to that change, HOSTCFLAGS was being used inappropriately in generating target dependencies. If you change the HOSTCFLAGS reference in drivers/bios_emulator/Makefile to CPPFLAGS, it works.
Unfortunately, that makefile still has to update CFLAGS as well, because it's too late at that point for changes to CPPFLAGS to propagate to CFLAGS.
-Scott
participants (2)
-
Kumar Gala
-
Scott Wood