All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeroen Hofstee <jeroen@myspectrum.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot] Bug u-boot-tools: /usr/include/image.h gets included instead of <WC>/include/image.h
Date: Mon, 21 Jul 2014 19:24:12 +0200	[thread overview]
Message-ID: <53CD4CBC.3050200@myspectrum.nl> (raw)
In-Reply-To: <trinity-7c188377-00ed-46d2-a303-7d1056118de7-1405852202321@3capp-gmx-bs51>

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

      reply	other threads:[~2014-07-21 17:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53CD4CBC.3050200@myspectrum.nl \
    --to=jeroen@myspectrum.nl \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.