[OpenWrt-Devel] ar71xx-mikrotik: Imagebuilder fails with "VERSIONOPT=y"

Sven Roederer devel-sven at geroedel.de
Sun Jul 1 17:20:12 EDT 2018


Hi,

since long time our buildbot hat problems creating images for ar71xx-mikrotik 
with openwrt-master. I'm not sure anymore when it started after branching 
17.01, as I did not look for this target for long.

By default we are using the following config-options:
CONFIG_VERSIONOPT=y
CONFIG_VERSION_FILENAMES=y
CONFIG_VERSION_CODE_FILENAMES=y
CONFIG_VERSION_DIST="Freifunk Berlin"
CONFIG_VERSION_HWREV=""
CONFIG_VERSION_MANUFACTURER=""
CONFIG_VERSION_NICK="Dev"
CONFIG_VERSION_NUMBER="2018-alpha"
CONFIG_VERSION_CODE=""
CONFIG_VERSION_PRODUCT=""
CONFIG_VERSION_REPO="http://buildbot.berlin.freifunk.net/buildbot/stable/%V/
%T/packages"

which fails when we use the imagebuilder to create our firmware. The 
regular compile, by using "make" will work.
All other targets (e.g. ar71xx-generic, ramips-mt7620) we build for do not 
show this problem.

This is the error from calling the imagebuilder
> Building images for ar71xx - Default Profile
> Packages: wpad community-profiles mtr ip iperf tmux vnstat ethtool 
> dnsmasq qos-scripts firewall iwinfo libiwinfo-lua tcpdump uhttpd 
> uhttpd-mod-ubus px5g-mbedtls libustream-mbedtls luci-app-olsr 
> luci-app-firewall luci-app-olsr-services luci-theme-bootstrap luci-i18n-base-
de 
> luci-i18n-base-en luci-i18n-firewall-de luci-i18n-firewall-en luci-i18n-olsr-
de 
> luci-i18n-olsr-en luci-i18n-statistics-de luci-i18n-statistics-en olsrd 
> olsrd-mod-arprefresh olsrd-mod-dyn-gw olsrd-mod-jsoninfo olsrd-mod-txtinfo 
> olsrd-mod-nameservice olsrd-mod-watchdog kmod-ipip kmod-batman-adv 
> alfred batctl luci-app-statistics collectd collectd-mod-interface 
> collectd-mod-iwinfo collectd-mod-network collectd-mod-olsrd 
> collectd-mod-rrdtool collectd-mod-ping collectd-mod-uptime 
> collectd-mod-memory base-files busybox dnsmasq dropbear firewall fstools 
> ip6tables iptables kernel kmod-ath9k kmod-gpio-button-hotplug 
> kmod-usb-core kmod-usb-ledtrig-usbport kmod-usb-ohci kmod-usb2 libc 
> libgcc logd mtd nand-utils netifd odhcp6c odhcpd-ipv6only opkg swconfig 
> uboot-envtools uci uclient-fetch
> 
> ...
> 
> Parallel mksquashfs: Using 1 processor
> Creating 4.0 filesystem on /var/lib/buildbot/slaves/slave/ar71xx-mikrotik/
build/firmware/imgQGH2jj/openwrt-imagebuilder-SNAPSHOT-ar71xx-mikrotik.Linux-
x86_64/build_dir/target-mips_24kc_musl/linux-ar71xx_mikrotik/root.squashfs, 
block size 262144.
> 
> [|                                                             ]    0/1324   
0%
> [====/                                                         ]  100/1324   
7%
> [=========/                                                    ]  200/1324  
15%
> [=============|                                                ]  300/1324  
22%
> [==================|                                           ]  400/1324  
30%
> [================================/                             ]  700/1324  
52%
> [=======================================================/      ] 1200/1324  
90%
> [=============================================================|] 1324/1324 
100%
> Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
> 	compressed data, compressed metadata, compressed fragments, no xattrs
> 	duplicates are removed
> Filesystem size 4145.19 Kbytes (4.05 Mbytes)
> 	34.40% of uncompressed filesystem size (12051.00 Kbytes)
> Inode table size 11690 bytes (11.42 Kbytes)
> 	21.38% of uncompressed inode table size (54688 bytes)
> Directory table size 16702 bytes (16.31 Kbytes)
> 	46.46% of uncompressed directory table size (35951 bytes)
> Number of duplicate files found 174
> Number of inodes 1664
> Number of files 1317
> Number of fragments 38
> Number of symbolic links  225
> Number of device nodes 1
> Number of fifo nodes 0
> Number of socket nodes 0
> Number of directories 121
> Number of ids (unique uids + gids) 1
> Number of uids 1
> 	unknown (0)
> Number of gids 1
> 	unknown (0)
> sysupgrade-routerboard/
> sysupgrade-routerboard/CONTROL
> sysupgrade-routerboard/root
> sysupgrade-routerboard/kernel
> sysupgrade-routerboard/
> sysupgrade-routerboard/CONTROL
> sysupgrade-routerboard/root
> sysupgrade-routerboard/kernel
> sysupgrade-routerboard/
> sysupgrade-routerboard/CONTROL
> sysupgrade-routerboard/root
> sysupgrade-routerboard/kernel
> 2645+1 records in
> 2645+1 records out
> 1354744 bytes (1.4 MB) copied, 0.0227269 s, 59.6 MB/s
> Can't get lstat from kernel file!: No such file or directory
> make[4]: *** [/var/lib/buildbot/slaves/slave/ar71xx-mikrotik/build/firmware/
imgQGH2jj/openwrt-imagebuilder-SNAPSHOT-ar71xx-mikrotik.Linux-x86_64/
build_dir/target-mips_24kc_musl/linux-ar71xx_mikrotik/tmp/openwrt-snapshot-
bd98d38-ar71xx-mikrotik-rb-nor-flash-16M-squashfs-sysupgrade.bin] Error 255
> make[3]: *** [build_image] Error 2
> make[2]: *** [_call_image] Error 2
> make[1]: *** [image] Error 2
> make[1]: Leaving directory `/var/lib/buildbot/slaves/slave/ar71xx-mikrotik/
build/firmware/imgQGH2jj/openwrt-imagebuilder-SNAPSHOT-ar71xx-mikrotik.Linux-
x86_64'
> make: *** [.stamp-images] Error 2


When I change the following options, it will not fail:
CONFIG_VERSION_FILENAMES=n
CONFIG_VERSION_DIST="OpenWrt"
CONFIG_VERSION_NUMBER="SNAPSHOT"

I looked around in the Makefiles, but was not able to find the relavant code.


Any ideas?

Sven

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list