OpenWrt Forum Archive

Topic: Compile of trunk fails second time round due to missing luci-hhtp fi

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

The second and all subsequent compile attempts fail because the program tries to copy files from a directory ./libs/http/dist, which does not exist.

Interestingly OpenWRT compiled fine the first time round, but the LUCI gui did not work (otherwise it worked fine).
With my laymen view I would think there is an issue in the Makefile ?

Please advise on any solution available



Here the relevant compile log:

rm -rf /root/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/luci-0.9+svn5319/ipkg-brcm-2.4/luci-http
mkdir -p /root/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/luci-0.9+svn5319/ipkg-brcm-2.4/luci-http/CONTROL
echo "Package: luci-http" > /root/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/luci-0.9+svn5319/ipkg-brcm-2.4/luci-http/CONTROL/control
echo "Version: 0.9+svn5319-1" >> /root/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/luci-0.9+svn5319/ipkg-brcm-2.4/luci-http/CONTROL/control
( DEPENDS=''; for depend in luci-core; do DEPENDS=${DEPENDS:+$DEPENDS, }${depend##+}; done; echo "Depends: $DEPENDS"; echo "Provides: "; echo "Source: feeds/luci/luci"; echo "Section: luci"; echo "Priority: optional"; echo "Maintainer: Steven Barth <steven-at-midlink-dot-org>"; echo "Architecture: brcm-2.4"; echo "Installed-Size: 1"; echo -n "Description: "; getvar V_Package_luci_http_description | sed -e 's,^[[:space:]]*, ,g'; ) >> /root/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/luci-0.9+svn5319/ipkg-brcm-2.4/luci-http/CONTROL/control
chmod 644 /root/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/luci-0.9+svn5319/ipkg-brcm-2.4/luci-http/CONTROL/control
(cd /root/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/luci-0.9+svn5319/ipkg-brcm-2.4/luci-http/CONTROL; var2file "V_Package_luci_http_conffiles" conffiles; var2file "V_Package_luci_http_preinst" preinst; var2file "V_Package_luci_http_postinst" postinst; var2file "V_Package_luci_http_prerm" prerm; var2file "V_Package_luci_http_postrm" postrm; )
cp -fpR -a /root/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/luci-0.9+svn5319/libs/http/dist/* /root/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/luci-0.9+svn5319/ipkg-brcm-2.4/luci-http/ -R
cp: cannot stat `/root/trunk/build_dir/target-mipsel_uClibc-0.9.30.1/luci-0.9+svn5319/libs/http/dist/*': No such file or directory
make[3]: *** [/root/trunk/bin/packages/brcm-2.4_uClibc-0.9.30.1/luci-http_0.9+svn5319-1_brcm-2.4.ipk] Error 1
make[3]: Leaving directory `/root/trunk/feeds/luci/luci'
make[2]: *** [package/feeds/luci/luci/compile] Error 2
make[2]: Leaving directory `/root/trunk'
make[1]: *** [/root/trunk/staging_dir/target-mipsel_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[1]: Leaving directory `/root/trunk'
make: *** [world] Error 2

Did you build OpenWrt this way?

cd ~
svn checkout svn://svn.openwrt.org/openwrt/trunk ~/trunk
cd ~/trunk
./scripts/feeds update packages luci
./scripts/feeds install -a -p luci
make menuconfig
make

(Last edited by Dogge on 7 Sep 2009, 07:34)

Exactly like that, yes.

Works now after the 4th rebuild.
Go figure.

Was parallel build (-j) used? If yes then it's some internal dependency issue that happens if packages are compiled in the "wrong" order.

~ JoW

It still fails on me. Added Luci just like described above.
Also tried with -j 1

cp -fpR -a /home/janno/openwrt/svn/trunk/build_dir/target-i386_uClibc-0.9.30.1/luci-0.9+svn5335/libs/http/dist/* /home/janno/openwrt/svn/trunk/build_dir/target-i386_uClibc-0.9.30.1/luci-0.9+svn5335/ipkg-x86/luci-http/ -R
cp: cannot stat `/home/janno/openwrt/svn/trunk/build_dir/target-i386_uClibc-0.9.30.1/luci-0.9+svn5335/libs/http/dist/*': No such file or directory
make[3]: *** [/home/janno/openwrt/svn/trunk/bin/packages/x86_uClibc-0.9.30.1/luci-http_0.9+svn5335-1_x86.ipk] Error 1
make[3]: Leaving directory `/home/janno/openwrt/svn/trunk/feeds/luci/luci'
make[2]: *** [package/feeds/luci/luci/compile] Error 2
make[2]: Leaving directory `/home/janno/openwrt/svn/trunk'
make[1]: *** [/home/janno/openwrt/svn/trunk/staging_dir/target-i386_uClibc-0.9.30.1/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/janno/openwrt/svn/trunk'
make: *** [world] Error 2

But it worked on 6th time using -j 4  (dualcore cpu) smile

The discussion might have continued from here.