Opened 6 years ago

Closed 5 years ago

Last modified 4 years ago

#11876 closed defect (fixed)

[TRUNK] uboot fails to build

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: Cc:


I'm doing a fresh build of the trunk. (after a distclean) and getting a failed build of uboot:

make[5]: Entering directory `/home/reuben/code/OpenWRT/trunk/build_dir/host/u-boot-2012.04.01/tools'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/reuben/code/OpenWRT/trunk/build_dir/host/u-boot-2012.04.01/include -idirafter /home/reuben/code/OpenWRT/trunk/build_dir/host/u-boot-2012.04.01/include2 -idirafter /home/reuben/code/OpenWRT/trunk/build_dir/host/u-boot-2012.04.01/include -I /home/reuben/code/OpenWRT/trunk/build_dir/host/u-boot-2012.04.01/lib/libfdt -I /home/reuben/code/OpenWRT/trunk/build_dir/host/u-boot-2012.04.01/tools -DCONFIG_SYS_TEXT_BASE= -DUSE_HOSTCC -DKERNEL_STRICT_NAMES -o aisimage.o aisimage.c -c
In file included from /usr/include/image.h:22:0,

from aisimage.c:29:

/usr/include/rgbpixel.h:61:3: error: expected specifier-qualifier-list before 'RGBpixel'

Attachments (2)

uboot-image_h-build_error.txt (19.2 KB) - added by c.exe@… 6 years ago.
U-Boot image.h build bug console output
config-openwrt.svn-rev32793-build0 (120.3 KB) - added by c.exe@… 6 years ago.
Config file for failed U-Boot build

Download all attachments as: .zip

Change History (7)

Changed 6 years ago by c.exe@…

U-Boot image.h build bug console output

Changed 6 years ago by c.exe@…

Config file for failed U-Boot build

comment:1 Changed 6 years ago by c.exe@…

Dear OpenWRT-Team,

Since the SVN revision 325xx (rev32499 was the last working build) I get the same error (see attachment) when I try to build an image for the MIPSel AR7 arch.

On my x86_64 Gentoo system the "/usr/include/image.h" file, which caused the error at the u-boot build, belongs to the program "lensfun".

On my AR7 architecture (AVM FritzBox 3020) I don´t need U-Boot, it uses ADAM instead (a proprietary AVM loader), so which package causes the "mkimage" tool included in U-Boot to be selected for building (see attachment for my config file).

If the "mkimage" tool is needed by the OpenWRT build process to create images or something, please remove this annoying bug soon. Or tell me how to work this around. It is alive since 393 revisions (at the moment), long enough, so please help me to get a working image for my AR7 machine :-)

comment:2 Changed 5 years ago by sovic@…

can confirm, with installed lensfun u-boot failed to build

lensfun used by

comment:3 Changed 5 years ago by anonymous

Well, there is a workaround. Problem is that compiler is instructed to search first host system include directories, and then u-boot own dirs. And image.h is hardly unique name, so if it is found in your system /usr/include you get this error.
You can either rename include/image.h to include/u-image.h, and than change all references in code

#include <image.h>


#include <u-image.h>

or skip renaming and hardcode search path with

#include "../include/image.h"

comment:4 Changed 5 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r33519

comment:5 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.