Modify

Opened 5 years ago

Last modified 3 years ago

#13063 new defect

02.25.2013 /snapshots/trunk/ar71xx/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64 make error

Reported by: mmentus88@… Owned by: developers
Priority: response-needed Milestone: Barrier Breaker 14.07
Component: other Version: Trunk
Keywords: x86, imagebuilder Cc:

Description (last modified by jow)

make[1]: Entering directory `/home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64'
echo 'Building images for ar71xx - TP-LINK TL-WR841N/ND'
Building images for ar71xx - TP-LINK TL-WR841N/ND
echo 'Packages: base-files busybox dnsmasq dropbear firewall hotplug2 iptables kernel kmod-ath9k kmod-gpio-button-hotplug kmod-ipt-nathelper kmod-leds-gpio kmod-ledtrig-default-on kmod-ledtrig-netdev kmod-ledtrig-timer kmod-wdt-ath79 libc libgcc mtd netifd opkg ppp ppp-mod-pppoe swconfig uboot-envtools uci wpad-mini'
Packages: base-files busybox dnsmasq dropbear firewall hotplug2 iptables kernel kmod-ath9k kmod-gpio-button-hotplug kmod-ipt-nathelper kmod-leds-gpio kmod-ledtrig-default-on kmod-ledtrig-netdev kmod-ledtrig-timer kmod-wdt-ath79 libc libgcc mtd netifd opkg ppp ppp-mod-pppoe swconfig uboot-envtools uci wpad-mini
echo

rm -rf /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/build_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx
mkdir -p /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/build_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/bin/ar71xx /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/tmp
if [ ! -f "/home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/packages/Packages" ] || [ ! -f "/home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/packages/Packages.gz" ] || [ "`find /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/packages -cnewer /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/packages/Packages.gz`" ]; then \
		echo "Package list missing or not up-to-date, generating it.";\
		make package_index; \
	else \
		mkdir -p /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/build_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp; \
		IPKG_TMP="/home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/tmp/ipkgtmp" IPKG_INSTROOT="/home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/build_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx" IPKG_CONF_DIR="/home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/tmp" IPKG_OFFLINE_ROOT="/home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/build_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx" /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/staging_dir/host/bin/opkg -f /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/repositories.conf --force-depends --force-overwrite --force-postinstall --cache /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/dl --offline-root /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/build_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx --add-dest root:/ --add-arch all:100 --add-arch ar71xx:200 update; \
	fi
Package list missing or not up-to-date, generating it.
make[2]: Entering directory `/home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64'

Building package index...
(cd /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/packages; /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/scripts/ipkg-make-index.sh . > Packages && \
		gzip -9c Packages > Packages.gz \
	) >/dev/null 2>/dev/null
make[2]: *** [package_index] Error 126
make[2]: Leaving directory `/home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64'
make[1]: *** [_call_image] Error 2
make[1]: Leaving directory `/home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64'

Attachments (0)

Change History (10)

comment:1 Changed 5 years ago by jow

  • Priority changed from normal to response-needed

Provide some details about your host system.

comment:2 Changed 5 years ago by anonymous

Has the same problem. ubuntu server 12.1

comment:3 Changed 5 years ago by anonymous

Same on newest Arch...

comment:4 Changed 5 years ago by jow

  • Description modified (diff)

comment:5 Changed 5 years ago by jow

Attach the output of

(cd /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/packages; /home/max/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/scripts/ipkg-make-index.sh . > Packages)

(Replace /home/max/ with whatever is appropriate in your case)

Also be more precise than "ubuntu server 12.1" or "newest arch..."
What CPU architecture is used?

Last edited 5 years ago by jow (previous) (diff)

comment:6 Changed 5 years ago by squalyl@…

same bug for mips ar71xx tp-link wr703n in trunk 36195.
(svn update and ./scripts/feeds update -a just done)

make V=s reports:

Making all in extensions
make[6]: Entering directory `/home/squalyl/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.18/extensions'
mips-openwrt-linux-uclibc-gcc -Wl,--no-undefined -shared -L/home/squalyl/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib -L/home/squalyl/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib -L/home/squalyl/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.7-linaro_uClibc-0.9.33.2/usr/lib -L/home/squalyl/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.7-linaro_uClibc-0.9.33.2/lib -o libxt_AUDIT.so libxt_AUDIT.oo -L../libxtables/.libs -L../libiptc/.libs -lxtables ;
libxt_AUDIT.oo: In function `audit_parse':
libxt_AUDIT.c:(.text+0xc): undefined reference to `xtables_option_parse'
libxt_AUDIT.c:(.text+0x28): undefined reference to `xtables_option_parse'
collect2: error: ld returned 1 exit status
make[6]: * [libxt_AUDIT.so] Error 1
make[6]: Leaving directory `/home/squalyl/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.18/extensions'
Making all in iptables
make[6]: Entering directory `/home/squalyl/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.18/iptables'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/home/squalyl/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.18/iptables'
make[6]: Entering directory `/home/squalyl/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.18'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/home/squalyl/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.18'
make[5]:
* [all-recursive] Error 1
make[5]: Leaving directory `/home/squalyl/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.18'
make[4]: * [all] Error 2
make[4]: Leaving directory `/home/squalyl/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.18'
make[3]:
* /home/squalyl/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.18/.built Error 2
make[3]: Leaving directory `/home/squalyl/openwrt/trunk/package/network/utils/iptables'
make[2]: * [package/network/utils/iptables/compile] Error 2
make[2]: Leaving directory `/home/squalyl/openwrt/trunk'
make[1]:
* /home/squalyl/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile Error 2
make[1]: Leaving directory `/home/squalyl/openwrt/trunk'
make: * [world] Erreur 2

comment:7 Changed 5 years ago by jow

squalyl: Thats neither the same bug nor even remotely related to this ticket.

comment:8 Changed 5 years ago by anonymous

yes, sorry, I reported the defect as #13296

the only relation is iptables ;)

comment:9 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:10 Changed 3 years ago by marcobuijs@…

I was having the same problem. It turned out to be a rights issue. My goal was to create an image that is slightly different from the original image for the TP-Link WDR-3600. So I followed the steps here: http://wiki.openwrt.org/doc/howto/obtain.firmware.generate and downloaded https://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64.tar.bz2

Then I tried to make an image, without changing anything. e.g.:
sudo make image PROFILE="TLWDR4300" PACKAGES="kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev"
and
sudo make image

But I did not seem to be able to make any image.... Always receiving the following output:

mpbuijs@ubuntu:~/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64$ sudo make image PROFILE="TLWDR4300" PACKAGES="kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev"
[sudo] password for mpbuijs: 
make[1]: Entering directory `/home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64'
echo 'Building images for ar71xx - TP-LINK TL-WDR3500/3600/4300/4310/MW4350R'
Building images for ar71xx - TP-LINK TL-WDR3500/3600/4300/4310/MW4350R
echo 'Packages: base-files busybox dnsmasq dropbear firewall fstools ip6tables iptables kernel kmod-ath9k kmod-gpio-button-hotplug kmod-ipt-nathelper kmod-ledtrig-usbdev kmod-usb-core kmod-usb2 libc libgcc mtd netifd odhcp6c odhcpd opkg ppp ppp-mod-pppoe swconfig uboot-envtools uci wpad-mini'
Packages: base-files busybox dnsmasq dropbear firewall fstools ip6tables iptables kernel kmod-ath9k kmod-gpio-button-hotplug kmod-ipt-nathelper kmod-ledtrig-usbdev kmod-usb-core kmod-usb2 libc libgcc mtd netifd odhcp6c odhcpd opkg ppp ppp-mod-pppoe swconfig uboot-envtools uci wpad-mini
echo

rm -rf /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx
mkdir -p /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/bin/ar71xx /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/tmp
if [ ! -f "/home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/packages/Packages" ] || [ ! -f "/home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/packages/Packages.gz" ] || [ "`find /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/packages -cnewer /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/packages/Packages.gz`" ]; then \
		echo "Package list missing or not up-to-date, generating it.";\
		make package_index; \
	else \
		mkdir -p /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/tmp; \
		IPKG_TMP="/home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/tmp/ipkgtmp" IPKG_INSTROOT="/home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx" IPKG_CONF_DIR="/home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/tmp" IPKG_OFFLINE_ROOT="/home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx" /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/staging_dir/host/bin/opkg -f /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/repositories.conf --force-depends --force-overwrite --force-postinstall --cache /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/dl --offline-root /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx --add-dest root:/ --add-arch all:100 --add-arch ar71xx:200 update; \
	fi
Package list missing or not up-to-date, generating it.
make[2]: Entering directory `/home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64'

Building package index...
(cd /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/packages; /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/scripts/ipkg-make-index.sh . > Packages && \
		gzip -9c Packages > Packages.gz \
	) >/dev/null 2>/dev/null
make[2]: *** [package_index] Error 126
make[2]: Leaving directory `/home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64'
make[1]: *** [_call_image] Error 2
make[1]: Leaving directory `/home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64'
make: *** [image] Error 2

Output of

(cd /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/packages; /home/mpbuijs/Desktop/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/scripts/ipkg-make-index.sh . > Packages)

is

Permission denied

To fix this, I made all files executable by all users in the OpenWrt-ImageBuilder folder:

sudo chmod -R a+x OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/

This solved the problem for me.

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.