OpenWrt Forum Archive

Topic: Compiling OpenWRT with Lucy fails

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

Hello,

I was successfully compiling openwrt trunk on Ubuntu 16.04 for the WPJ342 router
from Compex.

Now I started to add lucy and lucy-ssl, and the compilation fails with the following
message:

make[4]: 'bin/LuaSrcDiet.lua' is up to date.
make[4]: Leaving directory '/home/ufechner/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/host/LuaSrcDiet-0.12.1'
touch /home/ufechner/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/host/LuaSrcDiet-0.12.1/.built
install -d -m0755 /bin
install -m0755 src/po2lmo /bin/po2lmo
install: cannot create regular file '/bin/po2lmo': Permission denied
Makefile:45: recipe for target '/home/ufechner/openwrt/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/host/stamp/.luci-base_installed' failed
make[3]: *** [/home/ufechner/openwrt/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/host/stamp/.luci-base_installed] Error 1
make[3]: Leaving directory '/home/ufechner/openwrt/openwrt/feeds/luci/modules/luci-base'
package/Makefile:196: recipe for target 'package/feeds/luci/luci-base/host/compile' failed
make[2]: *** [package/feeds/luci/luci-base/host/compile] Error 2
make[2]: Leaving directory '/home/ufechner/openwrt/openwrt'
package/Makefile:193: recipe for target '/home/ufechner/openwrt/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.package_compile' failed
make[1]: *** [/home/ufechner/openwrt/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/ufechner/openwrt/openwrt'
/home/ufechner/openwrt/openwrt/include/toplevel.mk:192: recipe for target 'world' failed
make: *** [world] Error 2

Do I have to cross-compile it as root? That sounds strange.

Uwe

You want to build _not_ with root to prevent bugs in the buid system messing up your host as would have happened here.

As for the failure, where did you clone openwrt from? Are the sources up to date? Same for the feeds?

The output of ./scripts/diffconfig.sh might also help to understand where things go wrong. Anyway looks like missing DESTDIR to make install.

Based on  "musl-1.1.14" and "install -m0755 src/po2lmo /bin/po2lmo" you are trying to compile outdated Openwrt trunk (not from Github) with new LuCI.

The build variables have been changed recently both in LEDE and in Openwrt, and then also in LuCI. If you try to use old Openwrt sources from the abandoned git.openwrt.org that has not been updated for the last 3 months, building LuCI will fail.

Use sources from https://github.com/openwrt/openwrt

(Last edited by hnyman on 16 Oct 2016, 13:35)

The discussion might have continued from here.