| Summary: | dev-embedded/u-boot-tools-2015.01 fails to build: tools/image-host.c:63:16: error: ‘HASH_MAX_DIGEST_SIZE’ undeclared (first use in this function) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Markus Meier <maekke> |
| Component: | Current packages | Assignee: | Embedded Gentoo Team <embedded> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | ARM | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
dev-embedded:u-boot-tools-2015.01:20150223-120902.log
.config emerge log |
||
|
Description
Markus Meier
2015-02-25 16:18:39 UTC
Can you attach your .config file please? I think I can see the problem FIT_MAX_HASH_LEN is only defined if CONFIG_FIT is enabled but it used used later on unconditionally. Sounds like we need to enforce CONFIG_FIT in our tools build but this is really an upstream bug I think. Moreover, can you edit the ebuild to use emake sandbox_defconfig instead of defconfig and see if that fixes your problem? Created attachment 397650 [details] .config (In reply to Markos Chandras from comment #1) > Can you attach your .config file please? (In reply to Markos Chandras from comment #1) > Can you attach your .config file please? > > I think I can see the problem > > FIT_MAX_HASH_LEN is only defined if CONFIG_FIT is enabled but it used used > later on unconditionally. > > Sounds like we need to enforce CONFIG_FIT in our tools build but this is > really an upstream bug I think. Ignore that. I was looking at the wrong thing... (In reply to Markos Chandras from comment #4) > (In reply to Markos Chandras from comment #1) > > Can you attach your .config file please? > > > > I think I can see the problem > > > > FIT_MAX_HASH_LEN is only defined if CONFIG_FIT is enabled but it used used > > later on unconditionally. > > > > Sounds like we need to enforce CONFIG_FIT in our tools build but this is > > really an upstream bug I think. > > Ignore that. I was looking at the wrong thing... no actually i was right. it still seems a problem with CONFIG_FIT. hash.h is only included if CONFIG_FIT is enabled. However, it builds fine without CONFIG_FIT on x86_64 (In reply to Markos Chandras from comment #2) > Moreover, can you edit the ebuild to use > > emake sandbox_defconfig instead of defconfig > > and see if that fixes your problem? Nope, this doesn't help: HOSTCC tools/image-host.o In file included from include/bootm.h:12:0, from tools/image-host.c:13: tools/image-host.c: In function ‘fit_image_process_hash’: tools/image-host.c:63:16: error: ‘HASH_MAX_DIGEST_SIZE’ undeclared (first use in this function) uint8_t value[FIT_MAX_HASH_LEN]; ^ tools/image-host.c:63:16: note: each undeclared identifier is reported only once for each function it appears in WRAP tools/common/image.c HOSTCC tools/imagetool.o scripts/Makefile.host:108: recipe for target 'tools/image-host.o' failed make[1]: *** [tools/image-host.o] Error 1 make[1]: *** Waiting for unfinished jobs.... Makefile:1093: recipe for target 'tools' failed make: *** [tools] Error 2 * ERROR: dev-embedded/u-boot-tools-2015.01::x-gentoo-x86 failed (compile phase): * emake failed unfortunately I can't seem to suggest anything else. You need to do some debugging on your platform. after the switch to kconfig/kbuild build system, it should be easier to debug build problems in u-boot. Created attachment 403234 [details]
emerge log
happened here to at a chroot tinderbox image, log attached
Is it still a problem on the modern u-boot-tools? |