Error in compiling openwrt

When I compile source code, I face this problem.
How can I solve this problem ?

time: target/linux/prereq#0.42#0.06#0.48

 make[1] world

 make[2] target/compile

 make[3] -C target/linux compile

 make[2] buildinfo

 make[3] diffconfig buildversion feedsversion

 make[2] package/cleanup

 make[2] package/compile

 make[3] -C package/libs/libjson-c host-compile

 make[3] -C package/libs/libubox host-compile

 make[3] -C package/system/opkg host-compile

 make[3] -C package/libs/toolchain compile

 make[3] -C package/libs/libnl-tiny compile

 make[3] -C package/libs/libjson-c compile

 make[3] -C package/utils/lua compile

 make[3] -C package/libs/libubox compile

 make[3] -C package/system/ubus compile

 make[3] -C package/system/uci compile

 make[3] -C package/network/config/netifd compile

 make[3] -C package/firmware/linux-firmware compile

 make[3] -C package/firmware/prism54-firmware compile

 make[3] -C package/kernel/linux compile

 make[3] -C package/system/ubox compile

 make[3] -C package/libs/ncurses host-compile

 make[3] -C package/libs/zlib compile

 make[3] -C package/libs/ncurses compile

 make[3] -C package/utils/util-linux compile

 make[3] -C package/utils/mtd-utils compile

 make[3] -C package/system/fstools compile

 make[3] -C package/system/fwtool host-compile

 make[3] -C package/system/fwtool compile

 make[3] -C package/system/usign host-compile

 make[3] -C package/system/ucert host-compile

 make[3] -C package/utils/jsonfilter compile

 make[3] -C package/system/openwrt-keyring compile

 make[3] -C package/system/usign compile

 make[3] -C package/base-files compile

 make[3] -C feeds/luci/modules/luci-base host-compile

 make[3] -C package/network/utils/iptables compile

 make[3] -C package/network/config/firewall compile

 make[3] -C package/utils/lua host-compile

 make[3] -C feeds/luci/contrib/package/csstidy host-compile

 make[3] -C feeds/luci/applications/luci-app-firewall compile

 make[3] -C package/libs/mbedtls compile

 make[3] -C package/libs/openssl compile

 make[3] -C package/libs/gettext compile

 make[3] -C package/libs/libiconv compile

 make[3] -C package/libs/libtool compile

 make[3] -C package/libs/wolfssl compile

 make[3] -C package/libs/ustream-ssl compile

 make[3] -C package/libs/ustream-ssl compile

 make[3] -C package/libs/uclient compile

 make[3] -C package/system/opkg compile

 make[3] -C feeds/luci/applications/luci-app-opkg compile

 make[3] -C feeds/luci/libs/luci-lib-ip compile

 make[3] -C feeds/luci/libs/luci-lib-jsonc compile

 make[3] -C feeds/luci/libs/luci-lib-nixio compile

 make[3] -C feeds/luci/contrib/package/lucihttp compile

 make[3] -C feeds/luci/libs/luci-lib-base compile

 make[3] -C package/network/utils/iwinfo compile

 make[3] -C package/system/rpcd compile

 make[3] -C feeds/luci/libs/rpcd-mod-luci compile

 make[3] -C feeds/packages/net/cgi-io compile

 make[3] -C feeds/luci/modules/luci-base compile

 make[3] -C feeds/luci/modules/luci-mod-network compile

 make[3] -C feeds/luci/modules/luci-mod-status compile

 make[3] -C feeds/luci/modules/luci-mod-system compile

 make[3] -C feeds/luci/modules/luci-mod-admin-full compile

 make[3] -C feeds/luci/protocols/luci-proto-ipv6 compile

 make[3] -C feeds/luci/protocols/luci-proto-ppp compile

 make[3] -C feeds/luci/themes/luci-theme-bootstrap compile

 make[3] -C feeds/luci/libs/rpcd-mod-rrdns compile

 make[3] -C feeds/packages/libs/libxml2 compile

 make[3] -C package/libs/pcre compile

 make[3] -C feeds/packages/net/nginx-util compile

 make[3] -C feeds/packages/libs/expat compile

 make[3] -C feeds/packages/utils/dbus compile

 make[3] -C feeds/packages/utils/attr compile

 make[3] -C feeds/packages/libs/libffi compile

 make[3] -C package/libs/gettext-full host-compile

 make[3] -C package/libs/gettext-full compile

 make[3] -C package/libs/libiconv host-compile

 make[3] -C feeds/packages/libs/glib2 compile

 make[3] -C feeds/packages/libs/libical compile

 make[3] -C package/libs/readline compile

 make[3] -C feeds/packages/utils/bluez compile

 make[3] -C feeds/packages/libs/gdbm compile

 make[3] -C feeds/packages/lang/python/python-pip-conf compile

 make[3] -C feeds/packages/libs/expat host-compile

 make[3] -C feeds/packages/libs/libffi host-compile

 make[3] -C package/utils/bzip2 host-compile

 make[3] -C feeds/packages/lang/python/python3 host-compile

 make[3] -C feeds/packages/libs/sqlite3 compile

 make[3] -C feeds/packages/utils/xz compile

 make[3] -C package/utils/bzip2 compile

 make[3] -C package/system/ca-certificates compile

 make[3] -C feeds/packages/lang/python/python3 compile

 make[3] -C package/libs/libcap compile

 make[3] -C feeds/packages/net/uwsgi compile

 make[3] -C feeds/packages/net/nginx compile

 make[3] -C package/utils/bsdiff compile

 make[3] -C package/utils/bsdiff host-compile

 make[3] -C package/firmware/lantiq/dsl-vrx200-firmware-xdsl compile

 make[3] -C package/firmware/wireless-regdb compile

 make[3] -C package/kernel/gpio-button-hotplug compile

 make[3] -C package/kernel/lantiq/ltq-adsl-mei compile

 make[3] -C package/kernel/lantiq/ltq-ifxos compile

 make[3] -C package/kernel/lantiq/ltq-vdsl-mei compile

 make[3] -C package/network/utils/linux-atm compile

 make[3] -C package/kernel/lantiq/ltq-atm compile

 make[3] -C package/kernel/lantiq/ltq-ptm compile

 make[3] -C package/kernel/lantiq/ltq-vdsl compile

 make[3] -C package/kernel/lantiq/ltq-vdsl-fw compile

 make[3] -C package/firmware/b43legacy-firmware compile

 make[3] -C package/network/services/hostapd compile

 make[3] -C package/network/utils/iw compile

 make[3] -C package/kernel/mac80211 compile

 make[3] -C package/network/utils/ltq-dsl-base compile

 make[3] -C package/network/config/ltq-vdsl-app compile

 make[3] -C package/network/ipv6/odhcp6c compile

 make[3] -C package/network/services/dnsmasq compile

 make[3] -C package/network/services/dropbear compile

 make[3] -C package/network/services/odhcpd compile

 make[3] -C package/libs/libpcap compile

 make[3] -C package/network/utils/resolveip compile

 make[3] -C package/network/services/ppp compile

 make[3] -C package/network/services/uhttpd compile

 make[3] -C package/system/mtd compile

 make[3] -C package/libs/libsepol compile

 make[3] -C package/libs/musl-fts compile

 make[3] -C package/libs/libselinux compile

 make[3] -C package/system/procd compile

 make[3] -C package/system/urandom-seed compile

 make[3] -C package/system/urngd compile

 make[3] -C package/utils/busybox compile

 make[3] -C package/utils/px5g-wolfssl compile

 make[2] package/install

 make[2] target/install

 make[3] -C target/linux install

    ERROR: target/linux failed to build.

make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on

make: *** [/home/........./openwrt/include/toplevel.mk:230: world] Error 1


Do what the error message suggests?

The line right before the last one explicitely gives you the command to run to find out what the error is.

I am run make -j1 V=s, and I get this message.

[mktplinkfw2] *** error: kernel image is too big

Knowing that I have 60GB space

Have you set the size of the fw to allow 60gb?
Or at least larger than the default value.

Are perhaps those 60gb on the machine compiling the image? If that's the case, it's not what the error refers to.

In the router???? 60 GB of flash?

Based on mktplinkfw2 I think that you have a tp-link router, which apparently has smaller flash area reserved for kernel that you are now building.

1 Like

When I run ./scripts/feeds install -a this warnings appeared.
May be this is the problem, how can I solve this ?
Knowing that I download these packages using sudo apt install libpam-dev liblzma-dev libsnmp-dev

WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a build dependency on 'libpam', which does not exist

Those are warnings, hnyman is most probably spot on about the kernel size issue.

1 Like