Modify

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#12232 closed defect (fixed)

tools/mkimage fails to compile in trunk

Reported by: bob.deblier@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: compilation fails mkimage u-boot wndr3700 Cc:

Description

Trying to build the latest trunk version for my WNDR3700v2, I've been getting this error for the last couple of weeks:

make[5]: Entering directory `/home/bob/openwrt/wndr3700/trunk/build_dir/host/u-boot-2012.04.01/tools'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/bob/openwrt/wndr3700/trunk/build_dir/host/u-boot-2012.04.01/include -idirafter /home/bob/openwrt/wndr3700/trunk/build_dir/host/u-boot-2012.04.01/include2 -idirafter /home/bob/openwrt/wndr3700/trunk/build_dir/host/u-boot-2012.04.01/include -I /home/bob/openwrt/wndr3700/trunk/build_dir/host/u-boot-2012.04.01/lib/libfdt -I /home/bob/openwrt/wndr3700/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'
In file included from aisimage.c:29:0:
/usr/include/image.h:40:1: error: unknown type name 'class'
/usr/include/image.h:41:1: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token
aisimage.c:42:1: error: unknown type name 'table_entry_t'
aisimage.c:43:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:43:2: warning: (near initialization for 'aisimage_cmds[0]') [enabled by default]
aisimage.c:43:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:43:2: warning: (near initialization for 'aisimage_cmds[0]') [enabled by default]
aisimage.c:43:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:43:2: warning: (near initialization for 'aisimage_cmds[0]') [enabled by default]
aisimage.c:44:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:44:2: warning: (near initialization for 'aisimage_cmds[1]') [enabled by default]
aisimage.c:44:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:44:2: warning: (near initialization for 'aisimage_cmds[1]') [enabled by default]
aisimage.c:44:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:44:2: warning: (near initialization for 'aisimage_cmds[1]') [enabled by default]
aisimage.c:45:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:45:2: warning: (near initialization for 'aisimage_cmds[2]') [enabled by default]
aisimage.c:45:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:45:2: warning: (near initialization for 'aisimage_cmds[2]') [enabled by default]
aisimage.c:45:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:45:2: warning: (near initialization for 'aisimage_cmds[2]') [enabled by default]
aisimage.c:46:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:46:2: warning: (near initialization for 'aisimage_cmds[3]') [enabled by default]
aisimage.c:46:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:46:2: warning: (near initialization for 'aisimage_cmds[3]') [enabled by default]
aisimage.c:46:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:46:2: warning: (near initialization for 'aisimage_cmds[3]') [enabled by default]
aisimage.c:47:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:47:2: warning: (near initialization for 'aisimage_cmds[4]') [enabled by default]
aisimage.c:47:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:47:2: warning: (near initialization for 'aisimage_cmds[4]') [enabled by default]
aisimage.c:47:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:47:2: warning: (near initialization for 'aisimage_cmds[4]') [enabled by default]
aisimage.c:48:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:48:2: warning: (near initialization for 'aisimage_cmds[5]') [enabled by default]
aisimage.c:48:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:48:2: warning: (near initialization for 'aisimage_cmds[5]') [enabled by default]
aisimage.c:48:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:48:2: warning: (near initialization for 'aisimage_cmds[5]') [enabled by default]
aisimage.c:49:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:49:2: warning: (near initialization for 'aisimage_cmds[6]') [enabled by default]
aisimage.c:49:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:49:2: warning: (near initialization for 'aisimage_cmds[6]') [enabled by default]
aisimage.c:49:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:49:2: warning: (near initialization for 'aisimage_cmds[6]') [enabled by default]
aisimage.c:50:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:50:2: warning: (near initialization for 'aisimage_cmds[7]') [enabled by default]
aisimage.c:50:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:50:2: warning: (near initialization for 'aisimage_cmds[7]') [enabled by default]
aisimage.c:50:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:50:2: warning: (near initialization for 'aisimage_cmds[7]') [enabled by default]
aisimage.c:51:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:51:2: warning: (near initialization for 'aisimage_cmds[8]') [enabled by default]
aisimage.c:51:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:51:2: warning: (near initialization for 'aisimage_cmds[8]') [enabled by default]
aisimage.c:51:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:51:2: warning: (near initialization for 'aisimage_cmds[8]') [enabled by default]
aisimage.c:52:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:52:2: warning: (near initialization for 'aisimage_cmds[9]') [enabled by default]
aisimage.c:52:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:52:2: warning: (near initialization for 'aisimage_cmds[9]') [enabled by default]
aisimage.c:52:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:52:2: warning: (near initialization for 'aisimage_cmds[9]') [enabled by default]
aisimage.c:53:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:53:2: warning: (near initialization for 'aisimage_cmds[10]') [enabled by default]
aisimage.c:53:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:53:2: warning: (near initialization for 'aisimage_cmds[10]') [enabled by default]
aisimage.c:53:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:53:2: warning: (near initialization for 'aisimage_cmds[10]') [enabled by default]
aisimage.c:54:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:54:2: warning: (near initialization for 'aisimage_cmds[11]') [enabled by default]
aisimage.c:54:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:54:2: warning: (near initialization for 'aisimage_cmds[11]') [enabled by default]
aisimage.c:54:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:54:2: warning: (near initialization for 'aisimage_cmds[11]') [enabled by default]
aisimage.c:55:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:55:2: warning: (near initialization for 'aisimage_cmds[12]') [enabled by default]
aisimage.c:55:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:55:2: warning: (near initialization for 'aisimage_cmds[12]') [enabled by default]
aisimage.c:55:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:55:2: warning: (near initialization for 'aisimage_cmds[12]') [enabled by default]
aisimage.c:56:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:56:2: warning: (near initialization for 'aisimage_cmds[13]') [enabled by default]
aisimage.c:56:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:56:2: warning: (near initialization for 'aisimage_cmds[13]') [enabled by default]
aisimage.c:56:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:56:2: warning: (near initialization for 'aisimage_cmds[13]') [enabled by default]
aisimage.c:57:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:57:2: warning: (near initialization for 'aisimage_cmds[14]') [enabled by default]
aisimage.c:57:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:57:2: warning: (near initialization for 'aisimage_cmds[14]') [enabled by default]
aisimage.c:57:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:57:2: warning: (near initialization for 'aisimage_cmds[14]') [enabled by default]
aisimage.c:58:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:58:2: warning: (near initialization for 'aisimage_cmds[15]') [enabled by default]
aisimage.c:58:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:58:2: warning: (near initialization for 'aisimage_cmds[15]') [enabled by default]
aisimage.c:58:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:58:2: warning: (near initialization for 'aisimage_cmds[15]') [enabled by default]
aisimage.c:59:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:59:2: warning: (near initialization for 'aisimage_cmds[16]') [enabled by default]
aisimage.c:59:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:59:2: warning: (near initialization for 'aisimage_cmds[16]') [enabled by default]
aisimage.c:59:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:59:2: warning: (near initialization for 'aisimage_cmds[16]') [enabled by default]
aisimage.c:60:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:60:2: warning: (near initialization for 'aisimage_cmds[17]') [enabled by default]
aisimage.c:60:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:60:2: warning: (near initialization for 'aisimage_cmds[17]') [enabled by default]
aisimage.c:60:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:60:2: warning: (near initialization for 'aisimage_cmds[17]') [enabled by default]
aisimage.c:61:2: warning: braces around scalar initializer [enabled by default]
aisimage.c:61:2: warning: (near initialization for 'aisimage_cmds[18]') [enabled by default]
aisimage.c:61:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:61:2: warning: (near initialization for 'aisimage_cmds[18]') [enabled by default]
aisimage.c:61:2: warning: excess elements in scalar initializer [enabled by default]
aisimage.c:61:2: warning: (near initialization for 'aisimage_cmds[18]') [enabled by default]
aisimage.c: In function 'aisimage_print_header':
aisimage.c:171:4: warning: implicit declaration of function 'get_table_entry_name' [-Wimplicit-function-declaration]
aisimage.c:171:4: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat]
aisimage.c: In function 'aisimage_generate':
aisimage.c:337:5: warning: implicit declaration of function 'get_table_entry_id' [-Wimplicit-function-declaration]
aisimage.c:355:25: error: request for member 'sname' in something not a structure or union
aisimage.c: In function 'aisimage_check_image_types':
aisimage.c:386:14: error: 'IH_TYPE_AISIMAGE' undeclared (first use in this function)
aisimage.c:386:14: note: each undeclared identifier is reported only once for each function it appears in
aisimage.c:390:1: warning: control reaches end of non-void function [-Wreturn-type]
make[5]: * [aisimage.o] Error 1
make[5]: Leaving directory `/home/bob/openwrt/wndr3700/trunk/build_dir/host/u-boot-2012.04.01/tools'
make[4]:
* [tools] Error 2
make[4]: Leaving directory `/home/bob/openwrt/wndr3700/trunk/build_dir/host/u-boot-2012.04.01'
make[3]: * /home/bob/openwrt/wndr3700/trunk/build_dir/host/u-boot-2012.04.01/.built Error 2
make[3]: Leaving directory `/home/bob/openwrt/wndr3700/trunk/tools/mkimage'
make[2]:
* [tools/mkimage/compile] Error 2
make[2]: Leaving directory `/home/bob/openwrt/wndr3700/trunk'
make[1]: * /home/bob/openwrt/wndr3700/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.tools_install_nnnnn Error 2
make[1]: Leaving directory `/home/bob/openwrt/wndr3700/trunk'
make:
* [world] Error 2

Attachments (0)

Change History (5)

comment:1 Changed 5 years ago by nbd

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

fixed in r33519

comment:2 Changed 5 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

r36550 dropped patches/040-include_order.patch from r33519. The build of mkimage is broken again.

Here's an updated version of 040-include_order.patch:

--- a/tools/Makefile
+++ b/tools/Makefile
@@ -165,9 +165,9 @@
 # Define __KERNEL_STRICT_NAMES to prevent typedef overlaps
 #
 HOSTCPPFLAGS = -include $(SRCTREE)/include/libfdt_env.h \
-               -idirafter $(SRCTREE)/include \
+               -I $(SRCTREE)/include \
                -idirafter $(OBJTREE)/include2 \
-               -idirafter $(OBJTREE)/include \
+               -I $(OBJTREE)/include \
                -I $(SRCTREE)/lib/libfdt \
                -I $(SRCTREE)/tools \
                -DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE) \

comment:3 Changed 5 years ago by bob.deblier@…

Compiling trunk for TL-WDR4900 has the same problem. The patch above doesn't seem to apply correctly with today's trunk. Manually putting the change in the Makefile does work, so it's probably as easy fix.

comment:4 Changed 5 years ago by nbd

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

fixed in r36967

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

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


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

 
Note: See TracTickets for help on using tickets.