All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Bug u-boot-tools: /usr/include/image.h gets included instead of <WC>/include/image.h
@ 2014-07-20 10:30 disposable at gmx.net
  2014-07-21 17:24 ` Jeroen Hofstee
  0 siblings, 1 reply; 2+ messages in thread
From: disposable at gmx.net @ 2014-07-20 10:30 UTC (permalink / raw)
  To: u-boot

Hi list,

the package lensfun (http://lensfun.sourceforge.net/) ships an image.h which gets installed in /usr/include/image.h.
When I build u-boot from the latest commit 524123a, it bails out with the following error:

> git clone git://git.denx.de/u-boot.git
> cd u-boot
> make coreboot-x86_config
> make

1 CHK include/config/uboot.release
2 CHK include/generated/version_autogenerated.h
3 CHK include/generated/timestamp_autogenerated.h
4 UPD include/generated/timestamp_autogenerated.h
5 HOSTCC tools/aisimage.o
6 In file included from /usr/include/image.h:22:0,
7 from tools/aisimage.c:10:
8 /usr/include/rgbpixel.h:61:3: error: expected specifier-qualifier-list before 'RGBpixel'
9 In file included from tools/aisimage.c:10:0:
10 /usr/include/image.h:40:1: error: unknown type name 'class'
11 /usr/include/image.h:41:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
12 tools/aisimage.c:22:1: error: unknown type name 'table_entry_t'
13 tools/aisimage.c:23:2: warning: braces around scalar initializer [enabled by default]
14 tools/aisimage.c:23:2: warning: (near initialization for 'aisimage_cmds[0]') [enabled by default]
[snip]

As far as I understand the messages, it erroneously tries to include /usr/include/image.h instead of <wc>/include/image.h

Can you confirm this error?

Best

Chris
?
?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] Bug u-boot-tools: /usr/include/image.h gets included instead of <WC>/include/image.h
  2014-07-20 10:30 [U-Boot] Bug u-boot-tools: /usr/include/image.h gets included instead of <WC>/include/image.h disposable at gmx.net
@ 2014-07-21 17:24 ` Jeroen Hofstee
  0 siblings, 0 replies; 2+ messages in thread
From: Jeroen Hofstee @ 2014-07-21 17:24 UTC (permalink / raw)
  To: u-boot

Hello Chris,

On 20-07-14 12:30, disposable at gmx.net wrote:
> Hi list,
>
> the package lensfun (http://lensfun.sourceforge.net/) ships an image.h which gets installed in /usr/include/image.h.
> When I build u-boot from the latest commit 524123a, it bails out with the following error:
>
>> git clone git://git.denx.de/u-boot.git
>> cd u-boot
>> make coreboot-x86_config
>> make
> 1 CHK include/config/uboot.release
> 2 CHK include/generated/version_autogenerated.h
> 3 CHK include/generated/timestamp_autogenerated.h
> 4 UPD include/generated/timestamp_autogenerated.h
> 5 HOSTCC tools/aisimage.o
> 6 In file included from /usr/include/image.h:22:0,
> 7 from tools/aisimage.c:10:
> 8 /usr/include/rgbpixel.h:61:3: error: expected specifier-qualifier-list before 'RGBpixel'
> 9 In file included from tools/aisimage.c:10:0:
> 10 /usr/include/image.h:40:1: error: unknown type name 'class'
> 11 /usr/include/image.h:41:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
> 12 tools/aisimage.c:22:1: error: unknown type name 'table_entry_t'
> 13 tools/aisimage.c:23:2: warning: braces around scalar initializer [enabled by default]
> 14 tools/aisimage.c:23:2: warning: (near initialization for 'aisimage_cmds[0]') [enabled by default]
> [snip]
>
> As far as I understand the messages, it erroneously tries to include /usr/include/image.h instead of <wc>/include/image.h
>
> Can you confirm this error?
>

yes this is an issue with u-boot tools.

see tools/Makefile

HOST_EXTRACFLAGS += -include $(srctree)/include/libfdt_env.h \
         $(patsubst -I%,-idirafter%, $(UBOOTINCLUDE)) \


if you are lucky you can get away with adding image.h as a -include
like above. And yes this needs a decent solution one day.

Regards,
Jeroen

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-21 17:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-20 10:30 [U-Boot] Bug u-boot-tools: /usr/include/image.h gets included instead of <WC>/include/image.h disposable at gmx.net
2014-07-21 17:24 ` Jeroen Hofstee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.