Openwrt build error 2

Ответили на вопрос 2 человека. Оцените лучшие ответы! И подпишитесь на вопрос, чтобы узнавать о появлении новых ответов.

Доброго времени суток.

Пытаюсь собрать OpenWRT под MIPS и сталкиваюсь с ошибкой. Делаю под микрокомпьютер Black Swift по инструкции (ссылка).

Ввожу make V=99 и через минут 20 вылезает вот такая ошибка:

make[3] -C package/system/fstools compile
 make[3] -C package/boot/uboot-envtools compile
 make[3] -C package/libs/libreadline compile
 make[3] -C package/devel/gdb 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/cyassl compile
make -r world: build failed. Please re-run make with V=s to see what's going on
/home/aleksey/openwrt/include/toplevel.mk:171: ошибка выполнения рецепта для цели «world»
make: *** [world] Ошибка 1

Вот что содержит toplevel.mk:171

@+$(PREP_MK) $(NO_TRACE_MAKE) -r -s prereq
	@( 
		cp .config tmp/.config; 
		./scripts/config/conf --defconfig=tmp/.config -w tmp/.config Config.in > /dev/null 2>&1; 
		if ./scripts/kconfig.pl '>' .config tmp/.config | grep -q CONFIG; then 
			printf "$(_R)WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!$(_N)n" >&2; 
		fi 
	)
	@+$(ULIMIT_FIX) $(SUBMAKE) -r $@

endif

Сам сижу из под Ubuntu 15.04.
К сожалению, я не селен в подобном, поэтому обращаюсь за помощью.
Благодарю за внимание.
С уважением, Алексей.

Вывод make V=s

Download failed.
--2015-09-03 12:35:04--  http://mirror2.openwrt.org/sources/cyassl-3.2.0.zip
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11
Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-09-03 12:35:05 ERROR 404: Not Found.

Download failed.
--2015-09-03 12:35:05--  http://downloads.openwrt.org/sources/cyassl-3.2.0.zip
Resolving downloads.openwrt.org (downloads.openwrt.org)... 78.24.191.177
Connecting to downloads.openwrt.org (downloads.openwrt.org)|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-09-03 12:35:05 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
Makefile:57: recipe for target '/home/aleksey/openwrt/dl/cyassl-3.2.0.zip' failed
make[3]: *** [/home/aleksey/openwrt/dl/cyassl-3.2.0.zip] Error 2
make[3]: Leaving directory '/home/aleksey/openwrt/package/libs/cyassl'
package/Makefile:173: recipe for target 'package/libs/cyassl/compile' failed
make[2]: *** [package/libs/cyassl/compile] Error 2
make[2]: Leaving directory '/home/aleksey/openwrt'
package/Makefile:170: recipe for target '/home/aleksey/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile' failed
make[1]: *** [/home/aleksey/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/aleksey/openwrt'
/home/aleksey/openwrt/include/toplevel.mk:171: ошибка выполнения рецепта для цели «world»
make: *** [world] Ошибка 2

Решение проблемы очень просто. Если при сборки он пытается скачать какую-либо библиотеку и не находит ее, просто нужно найти именно эту версию (я копировал название) и искать ее самому. Потом просто положить в /openwrt/dl/ и снова запустить make V=99.


0

1

Всем добрый вечер. Прежде чем убить свой роутер и винить себя за то, что не попробовал на виртуалке, решил не допускать таких ошибок и попробовать собрать свою прошивку OpenWrt для x86. Выбрал нужные пакеты, лишнее убрал, сохранил. Запускаю процесс компиляции и вижу такую картину

make[1] world
 make[2] tools/install
 make[2] package/cleanup
 make[3] -C tools/patch compile
 make[3] -C tools/make-ext4fs compile
 make[3] -C tools/sstrip compile
 make[3] -C tools/firmware-utils compile
 make[3] -C tools/patch-image compile
 make[3] -C tools/flock compile
 make[3] -C tools/sstrip install
 make[3] -C tools/make-ext4fs install
 make[3] -C tools/patch-image install
 make[3] -C tools/flock install
 make[3] -C tools/firmware-utils install
 make[3] -C tools/patch install
 make[3] -C tools/xz compile
 make[3] -C tools/m4 compile
 make[3] -C tools/sed compile
 make[3] -C tools/yaffs2 compile
 make[3] -C tools/cmake compile
 make[3] -C tools/scons compile
 make[3] -C tools/lzma compile
 make[3] -C tools/sed install
 make[3] -C tools/m4 install
 make[3] -C tools/pkg-config compile
 make[3] -C tools/mkimage compile
 make[3] -C tools/yaffs2 install
 make[3] -C tools/scons install
 make[3] -C tools/lzma install
 make[3] -C tools/autoconf compile
 make[3] -C tools/pkg-config install
 make[3] -C tools/xz install
 make[3] -C tools/mkimage install
 make[3] -C tools/squashfs4 compile
 make[3] -C tools/autoconf install
 make[3] -C tools/automake compile
 make[3] -C tools/missing-macros compile
 make[3] -C tools/automake install
 make[3] -C tools/missing-macros install
 make[3] -C tools/libtool compile
 make[3] -C tools/squashfs4 install
 make[3] -C tools/libtool install
 make[3] -C tools/gmp compile
 make[3] -C tools/libelf compile
 make[3] -C tools/flex compile
 make[3] -C tools/mklibs compile
 make[3] -C tools/e2fsprogs compile
 make[3] -C tools/mm-macros compile
 make[3] -C tools/gengetopt compile
 make[3] -C tools/patchelf compile
 make[3] -C tools/gmp install
 make[3] -C tools/libelf install
 make[3] -C tools/flex install
 make[3] -C tools/mklibs install
 make[3] -C tools/e2fsprogs install
 make[3] -C tools/mm-macros install
 make[3] -C tools/cmake install
 make[3] -C tools/qemu compile
 make[3] -C tools/mpfr compile
 make[3] -C tools/bison compile
 make[3] -C tools/mtd-utils compile
 make[3] -C tools/patchelf install
 make[3] -C tools/qemu install
 make[3] -C tools/mpfr install
 make[3] -C tools/mtd-utils install
 make[3] -C tools/mpc compile
 make[3] -C tools/gengetopt install
 make[3] -C tools/mpc install
 make[3] -C tools/bison install
 make[3] -C tools/findutils compile
 make[3] -C tools/bc compile
 make[3] -C tools/bc install
 make[3] -C tools/findutils install
 make[3] -C tools/padjffs2 compile
 make[3] -C tools/quilt compile
 make[3] -C tools/padjffs2 install
 make[3] -C tools/quilt install
 make[2] toolchain/install
 make[3] -C toolchain/gdb prepare
 make[3] -C toolchain/binutils prepare
 make[3] -C toolchain/gcc/minimal prepare
 make[3] -C toolchain/kernel-headers prepare
 make[3] -C toolchain/uClibc/headers prepare
 make[3] -C toolchain/gdb compile
 make[3] -C toolchain/binutils compile
 make[3] -C toolchain/uClibc prepare
 make[3] -C toolchain/uClibc/utils prepare
 make[3] -C toolchain/gdb install
 make[3] -C toolchain/gcc/initial prepare
 make[3] -C toolchain/gcc/final prepare
 make[3] -C toolchain/binutils install
 make[3] -C toolchain/gcc/minimal compile
 make[3] -C toolchain/kernel-headers compile
 make[3] -C toolchain/gcc/minimal install
 make[3] -C toolchain/kernel-headers install
 make[3] -C toolchain/uClibc/headers compile
 make[3] -C toolchain/uClibc/headers install
 make[3] -C toolchain/gcc/initial compile
 make[3] -C toolchain/gcc/initial install
 make[3] -C toolchain/uClibc compile
 make[3] -C toolchain/uClibc install
 make[3] -C toolchain/gcc/final compile
 make[3] -C toolchain/gcc/final install
 make[3] -C toolchain/uClibc/utils compile
 make[3] -C toolchain/uClibc/utils install
 make[2] target/compile
 make[3] -C target/linux compile
 make[2] package/compile
 make[3] -C package/libs/toolchain compile
 make[3] -C package/libs/ncurses host-compile
 make[3] -C package/system/opkg host-compile
 make[3] -C package/system/usign host-compile
 make[3] -C feeds/luci/modules/luci-base host-compile
 make[3] -C package/firmware/linux-firmware compile
 make[3] -C package/utils/lua host-compile
 make[3] -C package/libs/polarssl compile
 make[3] -C feeds/luci/protocols/luci-proto-ipv6 compile
 make[3] -C package/libs/ocf-crypto-headers compile
 make[3] -C package/network/services/dropbear compile
 make[3] -C package/libs/libpcap compile
 make[3] -C package/network/utils/linux-atm compile
 make[3] -C package/network/utils/resolveip compile
 make[3] -C package/utils/busybox compile
 make[3] -C package/utils/mkelfimage 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/lzo compile
 make[3] -C package/libs/zlib compile
 make[3] -C package/libs/ncurses compile
 make[3] -C package/kernel/linux compile
 make[3] -C feeds/luci/libs/luci-lib-ip compile
 make[3] -C feeds/luci/libs/luci-lib-nixio compile
 make[3] -C feeds/luci/protocols/luci-proto-ppp compile
 make[3] -C feeds/luci/themes/luci-theme-bootstrap compile
 make[3] -C package/libs/openssl compile
 make[3] -C package/network/ipv6/odhcp6c compile
 make[3] -C package/network/services/dnsmasq compile
 make[3] -C package/network/services/ppp compile
 make[3] -C package/network/utils/iproute2 compile
 make[3] -C package/libs/libubox compile
 make[3] -C package/utils/util-linux compile
 make[3] -C package/utils/jsonfilter compile
 make[3] -C package/system/usign compile
 make[3] -C package/network/utils/iptables compile
 make[3] -C package/libs/ustream-ssl compile
 make[3] -C package/system/mtd compile
 make[3] -C package/system/ubus compile
 make[3] -C package/system/uci compile
 make[3] -C package/network/services/uhttpd compile
 make[3] -C package/libs/libevent2 compile
 make[3] -C package/network/services/odhcpd compile
 make[3] -C package/system/opkg compile
 make[3] -C package/network/config/netifd compile
 make[3] -C package/system/ubox compile
 make[3] -C package/utils/ubi-utils compile
 make[3] -C package/network/config/firewall compile
 make[3] -C package/network/utils/iwinfo compile
 make[3] -C feeds/packages/net/redsocks compile
 make[3] -C package/system/fstools compile
 make[3] -C package/system/procd compile
 make[3] -C feeds/luci/applications/luci-app-firewall compile
 make[3] -C package/system/rpcd compile
 make[3] -C package/base-files compile
 make[3] -C feeds/luci/modules/luci-base compile
 make[3] -C feeds/luci/modules/luci-mod-admin-full compile
 make[3] -C feeds/luci/collections/luci compile
 make[2] package/install
 make[3] package/preconfig
 make[2] target/install
 make[3] -C target/linux install
make -r world: build failed. Please re-run make with -j1 V=s to see what's going on
/home/user/OpenWRT/openwrt/include/toplevel.mk:181: ошибка выполнения рецепта для цели «world»
make: *** [world] Ошибка 1

Ага, ошибка, ладно наверно не хватает пакетов, запускаю make -j1 V=s, сначала все нормально, затем вижу следующее

grub-mkimage: error: cannot open `/home/user/OpenWRT/openwrt/staging_dir/host/lib/grub/i386-pc/moddep.lst': No such file or directory.
Makefile:234: recipe for target 'install' failed
make[5]: *** [install] Error 1
make[5]: Leaving directory '/home/user/OpenWRT/openwrt/target/linux/x86/image'
Makefile:22: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory '/home/user/OpenWRT/openwrt/target/linux/x86'
Makefile:13: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory '/home/user/OpenWRT/openwrt/target/linux'
target/Makefile:21: recipe for target 'target/linux/install' failed
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory '/home/user/OpenWRT/openwrt'
target/Makefile:17: recipe for target '/home/user/OpenWRT/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/stamp/.target_install' failed
make[1]: *** [/home/user/OpenWRT/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/user/OpenWRT/openwrt'
/home/user/OpenWRT/openwrt/include/toplevel.mk:181: ошибка выполнения рецепта для цели «world»
make: *** [world] Ошибка 2

Ему не хватает файла moddep.lst. Проверяю, всей директории grub/i386-pc/moddep.lst нету по указанному адресу. Делал по такой инструкции

mkdir ~/openwrt
cd ~/openwrt 
git clone git://git.openwrt.org/openwrt.git
make clean
make defconfig
make prereq
make menuconfig
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make -j $(nproc)

В каталоге Build_dir/host/ отсутствует каталог lib/grub/i386-pc/moddep.lst если это важно. Что посоветуйте, в чем может быть причина? На двух форумах писал, ни на одном не помогли. Надежда на вас

  • Index
  • » AUR Issues, Discussion & PKGBUILD Requests
  • » [SOLVED] openwrt compiling issue

Pages: 1

#1 2017-08-21 12:17:01

kfl62
Member
From: Luna de Sus, Cluj, Romania
Registered: 2011-10-03
Posts: 11

[SOLVED] openwrt compiling issue

Can’t compile openwrt …

make[3]: Entering directory '/home/kfl62/work/openwrt/tools/automake'
(cd /home/kfl62/work/openwrt/build_dir/host/automake-1.15; AUTOM4TE=/home/kfl62/work/openwrt/staging_dir/host/bin/autom4te AUTOCONF=/home/kfl62/work/openwrt/staging_dir/host/bin/autoconf AUTOMAKE=/home/kfl62/work/openwrt/staging_dir/host/bin/automake ACLOCAL=/home/kfl62/work/openwrt/staging_dir/host/bin/aclocal AUTOHEADER=/home/kfl62/work/openwrt/staging_dir/host/bin/autoheader LIBTOOLIZE=/home/kfl62/work/openwrt/staging_dir/host/bin/libtoolize LIBTOOL=/home/kfl62/work/openwrt/staging_dir/host/bin/libtool M4=/home/kfl62/work/openwrt/staging_dir/host/bin/m4 AUTOPOINT=true STAGING_DIR="" ./bootstrap.sh)
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/${ <-- HERE ([^ t=:+{}]+)}/ at ./bin/automake.tmp line 3938.
make[3]: *** [Makefile:51: /home/kfl62/work/openwrt/build_dir/host/automake-1.15/.configured] Error 255
make[3]: Leaving directory '/home/kfl62/work/openwrt/tools/automake'
make[2]: *** [tools/Makefile:135: tools/automake/compile] Error 2
make[2]: Leaving directory '/home/kfl62/work/openwrt'
make[1]: *** [tools/Makefile:133: /home/kfl62/work/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/stamp/.tools_install_yynyynynynyyyyyyynyyyyyyyyyyyyynyyyyynnyynynyyyynnnyy] Error 2
make[1]: Leaving directory '/home/kfl62/work/openwrt'
make: *** [/home/kfl62/work/openwrt/include/toplevel.mk:194: world] Error 2

I used openwrt some time ago and it worked fine.
I done a clean install

git clone https://github.com/openwrt/openwrt.git
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make -j1 V=s

I don’t know what I’m doing wrong?
I installed In a virtulbox openSuSE Tumbleweed, just for try, and compiling openwrt works fine.

PS.
I installed as you see above, required packages also, as I was saying I also installed on a virtualbox running on my machine  openSuSE Tumbleweed and I got a working openwrt.
I presume it’s a (gcc) compiler problem. Last year before I unfortunately deleted the openwrt build system it was working.

Last edited by kfl62 (2017-08-30 11:51:23)

#2 2017-08-21 13:05:19

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,023
Website

Re: [SOLVED] openwrt compiling issue

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

#3 2017-08-21 13:45:06

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,292

Re: [SOLVED] openwrt compiling issue

WorMzy: He does not use a PKGBUILD from the AUR. He does not use a PKGBUILD at all.

#4 2017-08-21 14:20:14

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] openwrt compiling issue

It’s not in the official repos, therefore it belongs in AUR wink


No, it didn’t «fix» anything. It just shifted the brokeness one space to the right. — jasonwryan
Closing — for deletion; Banning — for muppetry. — jasonwryan

aur — dotfiles

#5 2017-08-21 15:11:44

kfl62
Member
From: Luna de Sus, Cluj, Romania
Registered: 2011-10-03
Posts: 11

Re: [SOLVED] openwrt compiling issue

I am glad, my question generated such interest, but I really don’t care where its placed, I just want an answer, if you know any!

#6 2017-08-21 15:27:31

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,292

Re: [SOLVED] openwrt compiling issue

Well, you did not write what you actually did, so we can only guess. I guess there are missing dependencies.

#7 2017-08-22 14:20:40

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,660

Re: [SOLVED] openwrt compiling issue

Looks like he did edit some things in.

Did you configure a target before running make devconfig ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

#8 2017-08-23 07:38:39

kfl62
Member
From: Luna de Sus, Cluj, Romania
Registered: 2011-10-03
Posts: 11

Re: [SOLVED] openwrt compiling issue

I wrote already, I make a clean «default» install…

git clone https://github.com/openwrt/openwrt.git
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make -j1 V=s

Something wrong with gcc

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.1.1 20170630 (GCC) 

if I install in a virtualbox Archlinux and downgrade to date 2017.03.01 works fine

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 6.3.1 20170109 (GCC) 

It’s annoying to be forced, to start a virtualbox when I want to compile a software for my router.
How I told already it also works on openSuSE Tumbleweed, which is also a «rolling release»

Last edited by kfl62 (2017-08-23 07:56:55)

#9 2017-08-23 09:11:26

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,660

Re: [SOLVED] openwrt compiling issue

Nothing wrong with gcc, but there were changes in arch linux gcc defaults .

Compare the 2 «configured with» lines and you’ll see what i mean.
Verify what differences there are with suse tumbleweed gcc  configuration.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

#10 2017-08-23 13:45:21

kfl62
Member
From: Luna de Sus, Cluj, Romania
Registered: 2011-10-03
Posts: 11

Re: [SOLVED] openwrt compiling issue

openSuSE Tumbleweed gcc

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=hsa:nvptx-none
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go --enable-offload-targets=hsa,nvptx-none=/usr/nvptx-none, --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/7 --enable-ssp --disable-libssp --disable-libvtv --disable-libcc1 --enable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-7 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 7.1.1 20170629 [gcc-7-branch revision 249772] (SUSE Linux) 

#11 2017-08-25 12:54:29

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,660

Re: [SOLVED] openwrt compiling issue

Convert the settings on the «configured with» lines into a 3 column table (gcc 6.3.1-arch, gcc 7.1.1 arch & gcc 7.1.1 suse ) and arrange the rows so shared settings are listed first.
Post the resulting table.

Last edited by Lone_Wolf (2017-08-25 12:54:51)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

#12 2017-08-26 04:39:41

doublej472
Member
Registered: 2017-08-26
Posts: 1

Re: [SOLVED] openwrt compiling issue

Someone posted a patch here that fixed this particular issue for me, it might help you out as well. It looks like it ended up being a problem with perl.

#13 2017-08-26 16:53:53

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 10,660

Re: [SOLVED] openwrt compiling issue

Than you for steering this thread back in the right direction, doublej472 .

Kfl62, I was wrong assuming the error was caused by gcc .
There’s a known problem between automake 1.15 and earlier versus perl 5.22+ , see [1] , [2] .
It was fixed in automake 1.15.1 .

(cd /home/kfl62/work/openwrt/build_dir/host/automake-1.15;
AUTOM4TE=/home/kfl62/work/openwrt/staging_dir/host/bin/autom4te
AUTOCONF=/home/kfl62/work/openwrt/staging_dir/host/bin/autoconf
AUTOMAKE=/home/kfl62/work/openwrt/staging_dir/host/bin/automake
ACLOCAL=/home/kfl62/work/openwrt/staging_dir/host/bin/aclocal AUTOHEADER=/home/kfl62/work/openwrt/staging_dir/host/bin/autoheader
LIBTOOLIZE=/home/kfl62/work/openwrt/staging_dir/host/bin/libtoolize
LIBTOOL=/home/kfl62/work/openwrt/staging_dir/host/bin/libtool M4=/home/kfl62/work/openwrt/staging_dir/host/bin/m4
AUTOPOINT=true STAGING_DIR=»» ./bootstrap.sh)

openwrt doesn’t use the system installed autotools, but a special one they provide.
I suggest you apply the patch on the openwrt-provided autotools version.

[1] http://git.savannah.gnu.org/cgit/automa … 2d8302955e
[2] https://bugs.archlinux.org/task/50710


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

#14 2017-08-27 04:31:09

kfl62
Member
From: Luna de Sus, Cluj, Romania
Registered: 2011-10-03
Posts: 11

Re: [SOLVED] openwrt compiling issue

Thanks for patches, after I applied the patch, I have an other error …

In file included from tools/lib/rsa/rsa-sign.c:1:0:
/home/kfl62/work/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_remove':
/home/kfl62/work/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:156:2: warning: 'ERR_remove_thread_state' is deprecated [-Wdeprecated-declarations]
  ERR_remove_thread_state(NULL);
  ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/x509_vfy.h:20:0,
                 from /usr/include/openssl/x509.h:309,
                 from /usr/include/openssl/pem.h:17,
                 from /home/kfl62/work/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:13,
                 from tools/lib/rsa/rsa-sign.c:1:
/usr/include/openssl/err.h:247:1: note: declared here
 DEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *))
 ^
In file included from tools/lib/rsa/rsa-sign.c:1:0:
/home/kfl62/work/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_sign_with_key':
/home/kfl62/work/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:213:2: warning: implicit declaration of function 'EVP_MD_CTX_cleanup'; did you mean 'EVP_MD_CTX_create'? [-Wimplicit-function-declaration]
  EVP_MD_CTX_cleanup(context);
  ^~~~~~~~~~~~~~~~~~
  EVP_MD_CTX_create
/home/kfl62/work/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_get_exponent':
/home/kfl62/work/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:279:21: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}'
  if (BN_num_bits(key->e) > 64)
                     ^~
make[5]: *** [scripts/Makefile.host:134: tools/lib/rsa/rsa-sign.o] Error 1
make[4]: *** [Makefile:1195: tools-only] Error 2
make[4]: Leaving directory '/home/kfl62/work/openwrt/build_dir/host/u-boot-2014.10'
make[3]: *** [Makefile:48: /home/kfl62/work/openwrt/build_dir/host/u-boot-2014.10/.built] Error 2
make[3]: Leaving directory '/home/kfl62/work/openwrt/tools/mkimage'
make[2]: *** [tools/Makefile:135: tools/mkimage/compile] Error 2
make[2]: Leaving directory '/home/kfl62/work/openwrt'
make[1]: *** [tools/Makefile:133: /home/kfl62/work/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/stamp/.tools_install_yynyynynynyyyyyyynyyyyyyyyyyyyynyyyyynnyynynyyyynnnyy] Error 2
make[1]: Leaving directory '/home/kfl62/work/openwrt'
make: *** [/home/kfl62/work/openwrt/include/toplevel.mk:194: world] Error 2

No luck…

note:
After some digging I found an other path for this problem  http://git.lede-project.org/70b104f , after I apply this patch too, compiling goes further but now stops at /tools/cmake with …

[ 10%] Building C object Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/vtls/openssl.c.o
/home/kfl62/work/openwrt/build_dir/host/cmake-3.6.1/Utilities/cmcurl/lib/vtls/openssl.c: In function 'get_cert_chain':
/home/kfl62/work/openwrt/build_dir/host/cmake-3.6.1/Utilities/cmcurl/lib/vtls/openssl.c:2482:13: error: dereferencing pointer to incomplete type 'X509 {aka struct x509_st}'
     cinf = x->cert_info;
             ^~
/home/kfl62/work/openwrt/build_dir/host/cmake-3.6.1/Utilities/cmcurl/lib/vtls/openssl.c:2484:30: error: dereferencing pointer to incomplete type 'X509_CINF {aka struct x509_cinf_st}'
     j = asn1_object_dump(cinf->signature->algorithm, bufp, CERTBUFFERSIZE);
                              ^~
/home/kfl62/work/openwrt/build_dir/host/cmake-3.6.1/Utilities/cmcurl/lib/vtls/openssl.c:2510:20: error: dereferencing pointer to incomplete type 'EVP_PKEY {aka struct evp_pkey_st}'
       switch(pubkey->type) {
                    ^~
make[6]: *** [Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/build.make:2559: Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/vtls/openssl.c.o] Error 1
make[6]: Leaving directory '/home/kfl62/work/openwrt/build_dir/host/cmake-3.6.1'
make[5]: *** [CMakeFiles/Makefile2:1489: Utilities/cmcurl/lib/CMakeFiles/cmcurl.dir/all] Error 2
make[5]: Leaving directory '/home/kfl62/work/openwrt/build_dir/host/cmake-3.6.1'
make[4]: *** [Makefile:161: all] Error 2
make[4]: Leaving directory '/home/kfl62/work/openwrt/build_dir/host/cmake-3.6.1'
make[3]: *** [Makefile:30: /home/kfl62/work/openwrt/build_dir/host/cmake-3.6.1/.built] Error 2
make[3]: Leaving directory '/home/kfl62/work/openwrt/tools/cmake'
make[2]: *** [tools/Makefile:135: tools/cmake/compile] Error 2
make[2]: Leaving directory '/home/kfl62/work/openwrt'
make[1]: *** [tools/Makefile:133: /home/kfl62/work/openwrt/staging_dir/target-mips_34kc_musl-1.1.16/stamp/.tools_install_yynyynynynyyyyyyynyyyyyyyyyyyyynyyyyynnyynynyyyynnnyy] Error 2
make[1]: Leaving directory '/home/kfl62/work/openwrt'
make: *** [/home/kfl62/work/openwrt/include/toplevel.mk:194: world] Error 2

No luck again …

Last edited by kfl62 (2017-08-28 07:44:24)

#16 2017-11-13 09:01:49

vostok4
Member
Registered: 2010-12-16
Posts: 70

Re: [SOLVED] openwrt compiling issue

Hi, I’m struggling with the same problem: compiling OpenWRT on modern Arch! Thank you for the patch for OpenSSL-1.0 support, that got me a long way forward. Now I’m having an issue where linking tools/mkimage is failing:

  HOSTLD  tools/dumpimage
tools/lib/rsa/rsa-sign.o: In function `rsa_get_params':
rsa-sign.c:(.text+0x6c1): undefined reference to `RSA_get0_key'
rsa-sign.c:(.text+0x76b): undefined reference to `RSA_get0_key'
collect2: error: ld returned 1 exit status
make[5]: *** [scripts/Makefile.host:127: tools/dumpimage] Error 1
make[4]: *** [Makefile:1195: tools-only] Error 2
make[4]: Leaving directory '/opt/openwrt/openwrt-dd/build_dir/host/u-boot-2014.10'
make[3]: *** [Makefile:48: /opt/openwrt/openwrt-dd/build_dir/host/u-boot-2014.10/.built] Error 2
make[3]: Leaving directory '/opt/openwrt/openwrt-dd/tools/mkimage'
make[2]: *** [tools/Makefile:136: tools/mkimage/compile] Error 2
make[2]: Leaving directory '/opt/openwrt/openwrt-dd'
make[1]: *** [tools/Makefile:134: /opt/openwrt/openwrt-dd/staging_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/stamp/.tools_install_yynyynynynyyyyyyynyyyynyyyyyyyyynyyyyynnyynynnyyynnnyy] Error 2
make[1]: Leaving directory '/opt/openwrt/openwrt-dd'
make: *** [/opt/openwrt/openwrt-dd/include/toplevel.mk:194: world] Error 2

Did you run into this? I’ve used all your steps so far.

Старый
20.07.2018, 21:39

 
#1

Junior Member

 

Регистрация: 12.06.2017

Адрес: В деревне

Сообщений: 20

Вес репутации: 0

vroot is an unknown quantity at this point

По умолчанию
Сборка Прошивки


Народ, как победить эту ошибку, уже двое суток не могу решить

Система — Ubuntu 18,04 х64

Собираю прошивку ramips-mt7620

Выбрал в (Target System (MediaTek Ralink MIPS) —> )

Выполнил команду

Дальше топчусь на месте, перепробовал многие варианты и бестолку .

Ошибка повторяется и повторяется эта

Код:

[ 99%] Built target pseudo_valgrind
make[6]: Leaving directory '/home/viroot/openwrt/build_dir/host/cmake-3.7.1'
make[6]: Entering directory '/home/viroot/openwrt/build_dir/host/cmake-3.7.1'
[ 99%] Building CXX object Source/CMakeFiles/ctest.dir/ctest.cxx.o
[100%] Linking CXX executable ../bin/ctest
[100%] Linking CXX executable ../bin/cpack
make[6]: Leaving directory '/home/viroot/openwrt/build_dir/host/cmake-3.7.1'
[100%] Built target ctest
make[6]: Leaving directory '/home/viroot/openwrt/build_dir/host/cmake-3.7.1'
[100%] Built target cpack
make[5]: Leaving directory '/home/viroot/openwrt/build_dir/host/cmake-3.7.1'
make[4]: Leaving directory '/home/viroot/openwrt/build_dir/host/cmake-3.7.1'
touch /home/viroot/openwrt/build_dir/host/cmake-3.7.1/.built
make[3]: Leaving directory '/home/viroot/openwrt/tools/cmake'
make[2]: Leaving directory '/home/viroot/openwrt'
tools/Makefile:145: recipe for target '/home/viroot/openwrt/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.tools_install_yynyyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynnyyynnny' failed
make[1]: *** [/home/viroot/openwrt/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.tools_install_yynyyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynnyyynnny] Error 2
make[1]: Leaving directory '/home/viroot/openwrt'
Build failed - please re-run with -j1 to see the real error message
/home/viroot/openwrt/include/toplevel.mk:198: recipe for target 'world' failed
make: *** [world] Error 1
vroot вне форума

 

Ответить с цитированием

Старый
20.07.2018, 22:00

 
#2

Senior Member

 

Аватар для sunny

 

Регистрация: 22.10.2015

Адрес: Там где сосны и песок

Сообщений: 1,534

Вес репутации: 1599

sunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to all

По умолчанию


Читайте что пишет

Цитата:

Build failed — please re-run with -j1 to see the real error message

Соберите так:

__________________
Читаю ваши мысли по аватару …

sunny вне форума

 

Ответить с цитированием

Старый
21.07.2018, 08:58

 
#3

Junior Member

 

Регистрация: 12.06.2017

Адрес: В деревне

Сообщений: 20

Вес репутации: 0

vroot is an unknown quantity at this point

По умолчанию


Цитата:

Сообщение от sunny
Посмотреть сообщение

Читайте что пишет

Соберите так:

Я читал что пишет

Код:

viroot@viroot:~$ cd ~/openwrt
viroot@viroot:~/openwrt$ make with -j1
 make[1] with
make -r with: build failed. Please re-run make with -j1 V=s to see what's going on
/home/viroot/openwrt/include/toplevel.mk:198: recipe for target 'with' failed
make: *** [with] Error 1
viroot@viroot:~/openwrt$ make with -j1 V=s
make[1]: Entering directory '/home/viroot/openwrt'
make[1]: *** No rule to make target 'with'.  Stop.
make[1]: Leaving directory '/home/viroot/openwrt'
/home/viroot/openwrt/include/toplevel.mk:198: recipe for target 'with' failed
make: *** [with] Error 2
viroot@viroot:~/openwrt$

И также пробывал, я же писал ошибка повторяется

Вот пожалуйста, как вы хотели собрана с make V=s

Код:

getdate_r
./../misc/create_inode.c: At top level:
./../misc/create_inode.c:395:18: error: conflicting types for 'copy_file_range'
 static errcode_t copy_file_range(ext2_filsys fs, int fd, ext2_file_t e2_file,
                  ^~~~~~~~~~~~~~~
In file included from ./../misc/create_inode.c:19:0:
/usr/include/unistd.h:1110:9: note: previous declaration of 'copy_file_range' was here
 ssize_t copy_file_range (int __infd, __off64_t *__pinoff,
         ^~~~~~~~~~~~~~~
Makefile:417: recipe for target 'create_inode.o' failed
make[6]: *** [create_inode.o] Error 1
make[6]: Leaving directory '/home/viroot/.local/share/Trash/files/openwrt.7/build_dir/host/e2fsprogs-1.43.3/debugfs'
Makefile:404: recipe for target 'all-progs-recursive' failed
make[5]: *** [all-progs-recursive] Error 1
make[5]: Leaving directory '/home/viroot/.local/share/Trash/files/openwrt.7/build_dir/host/e2fsprogs-1.43.3'
Makefile:339: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/viroot/.local/share/Trash/files/openwrt.7/build_dir/host/e2fsprogs-1.43.3'
Makefile:49: recipe for target '/home/viroot/.local/share/Trash/files/openwrt.7/build_dir/host/e2fsprogs-1.43.3/.built' failed
make[3]: *** [/home/viroot/.local/share/Trash/files/openwrt.7/build_dir/host/e2fsprogs-1.43.3/.built] Error 2
make[3]: Leaving directory '/home/viroot/.local/share/Trash/files/openwrt.7/tools/e2fsprogs'
tools/Makefile:147: recipe for target 'tools/e2fsprogs/compile' failed
make[2]: *** [tools/e2fsprogs/compile] Error 2
make[2]: Leaving directory '/home/viroot/.local/share/Trash/files/openwrt.7'
tools/Makefile:145: recipe for target '/home/viroot/.local/share/Trash/files/openwrt.7/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.tools_install_yynyyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynnyyynnny' failed
make[1]: *** [/home/viroot/.local/share/Trash/files/openwrt.7/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.tools_install_yynyyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynnyyynnny] Error 2
make[1]: Leaving directory '/home/viroot/.local/share/Trash/files/openwrt.7'
/home/viroot/.local/share/Trash/files/openwrt.7/include/toplevel.mk:198: recipe for target 'world' failed
make: *** [world] Error 2

Последний раз редактировалось vroot; 21.07.2018 в 09:24.

vroot вне форума

 

Ответить с цитированием

Старый
21.07.2018, 09:24

 
#4

Senior Member

По умолчанию


vroot

Здравствуйте.
Нужно использовать команду:

(без слова with)

Предположу, что пользователю viroot, даны права root?
Если это так, то Openwrt нельзя компилировать с root правами, нужно создавать отдельного пользователя и только так заново клонировать, а потом компилировать.

Dioptimizer вне форума

 

Ответить с цитированием

Старый
21.07.2018, 10:30

 
#5

Junior Member

 

Регистрация: 12.06.2017

Адрес: В деревне

Сообщений: 20

Вес репутации: 0

vroot is an unknown quantity at this point

По умолчанию


Цитата:

Сообщение от Dioptimizer
Посмотреть сообщение

vroot

Здравствуйте.
Нужно использовать команду:

(без слова with)

Предположу, что пользователю viroot, даны права root?
Если это так, то Openwrt нельзя компилировать с root правами, нужно создавать отдельного пользователя и только так заново клонировать, а потом компилировать.

нет vroot прав рута — это название компа

пользователь

Использовал также

Код:

   ^~~~~~~~~
                getdate_r
./../misc/create_inode.c: At top level:
./../misc/create_inode.c:395:18: error: conflicting types for 'copy_file_range'
 static errcode_t copy_file_range(ext2_filsys fs, int fd, ext2_file_t e2_file,
                  ^~~~~~~~~~~~~~~
In file included from ./../misc/create_inode.c:19:0:
/usr/include/unistd.h:1110:9: note: previous declaration of 'copy_file_range' was here
 ssize_t copy_file_range (int __infd, __off64_t *__pinoff,
         ^~~~~~~~~~~~~~~
Makefile:417: recipe for target 'create_inode.o' failed
make[6]: *** [create_inode.o] Error 1
make[6]: Leaving directory '/home/viroot/openwrt/build_dir/host/e2fsprogs-1.43.3/debugfs'
Makefile:404: recipe for target 'all-progs-recursive' failed
make[5]: *** [all-progs-recursive] Error 1
make[5]: Leaving directory '/home/viroot/openwrt/build_dir/host/e2fsprogs-1.43.3'
Makefile:339: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/viroot/openwrt/build_dir/host/e2fsprogs-1.43.3'
Makefile:49: recipe for target '/home/viroot/openwrt/build_dir/host/e2fsprogs-1.43.3/.built' failed
make[3]: *** [/home/viroot/openwrt/build_dir/host/e2fsprogs-1.43.3/.built] Error 2
make[3]: Leaving directory '/home/viroot/openwrt/tools/e2fsprogs'
tools/Makefile:147: recipe for target 'tools/e2fsprogs/compile' failed
make[2]: *** [tools/e2fsprogs/compile] Error 2
make[2]: Leaving directory '/home/viroot/openwrt'
tools/Makefile:145: recipe for target '/home/viroot/openwrt/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.tools_install_yynyyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynnyyynnny' failed
make[1]: *** [/home/viroot/openwrt/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.tools_install_yynyyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynnyyynnny] Error 2
make[1]: Leaving directory '/home/viroot/openwrt'
/home/viroot/openwrt/include/toplevel.mk:198: recipe for target 'world' failed
make: *** [world] Error 2

файл скачет e2fsprogs_1.43.3.tar.gz, поместил папку dl


Последний раз редактировалось vroot; 21.07.2018 в 10:40.

vroot вне форума

 

Ответить с цитированием

Старый
21.07.2018, 11:24

 
#6

Senior Member

 

Аватар для sunny

 

Регистрация: 22.10.2015

Адрес: Там где сосны и песок

Сообщений: 1,534

Вес репутации: 1599

sunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to all

По умолчанию


Выходит что не читали , сообщения то отличаются, здесь:
Build failed — please re-run with -j1 to see the real error message
Написано:
Сборка не удалась — пожалуйста перезапустите сборку используя одно ядро процессора, чтобы увидеть реальное сообщение об ошибке.
===
Чуть пораньше — сообщение, еще раз покажите….
===
Здесь по моему ваша ошибка:
https://github.com/cirosantilli/linu…heat/issues/28
===
Мое имхо, хотите стабильности — не спешите собирать «новье».
Я являюсь пользователем ubuntu с 2008 года, использую только LTS(стабильные сборки) и только по прошествии года после выхода.
Жду пока допилят — чтобы героически не бороться с ошибками — каждый раз

__________________
Читаю ваши мысли по аватару …


Последний раз редактировалось sunny; 21.07.2018 в 11:31.

sunny вне форума

 

Ответить с цитированием

Старый
21.07.2018, 18:32

 
#7

Junior Member

 

Регистрация: 12.06.2017

Адрес: В деревне

Сообщений: 20

Вес репутации: 0

vroot is an unknown quantity at this point

По умолчанию


Сделал во так

в самой папке openwrt, добавил следующие строки

Код:

git cherry-pick c4d2c9cafb19312f6d2f2a9bc0740f45b65559c7
git cherry-pick 436291d3f03c5e30610b9f9ac5b797be3348aa45
git cherry-pick a46390537d1b2369c366df4255b81618f016f19e
git cherry-pick 28dd2f2896bff7b861a4272fa343e3f7fa80725c

потом скачал последнюю версию e2fsprogs-1.43.9.tar.gz и поместил в паку dl

затем файл сам подправил tools/e2fsprogs/Makefile

на эту версию

завилась шарманка

4 часа компилировал, компилировал, до компилировался
И сдох

Код:

amips" } }' | fwtool -I - /home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-sysupgrade.bin
WARNING: Image file /home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-sysupgrade.bin is too big
cp /home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-sysupgrade.bin /home/viroot/openwrt/bin/targets/ramips/rt305x/lede-ramips-rt305x-a5-v11-squashfs-sysupgrade.bin
cp: cannot stat '/home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-sysupgrade.bin': No such file or directory
Makefile:254: recipe for target '/home/viroot/openwrt/bin/targets/ramips/rt305x/lede-ramips-rt305x-a5-v11-squashfs-sysupgrade.bin' failed
make[5]: [/home/viroot/openwrt/bin/targets/ramips/rt305x/lede-ramips-rt305x-a5-v11-squashfs-sysupgrade.bin] Error 1 (ignored)
[ -f /home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/a5-v11-kernel.bin -a -f /home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/root.squashfs ]
dd if=/home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/a5-v11-kernel.bin >> /home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-factory.bin
2356+1 records in
2356+1 records out
1206444 bytes (1.2 MB, 1.2 MiB) copied, 0.011895 s, 101 MB/s
dd if=/home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/root.squashfs >> /home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-factory.bin
8512+1 records in
8512+1 records out
4358392 bytes (4.4 MB, 4.2 MiB) copied, 0.0545068 s, 80.0 MB/s
/home/viroot/openwrt/staging_dir/host/bin/padjffs2 /home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-factory.bin  4 8 16 64 128 256
padding image to 0054f000
padding image to 00550000
padding image to 00560000
padding image to 00580000
WARNING: Image file /home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-factory.bin is too big
/home/viroot/openwrt/staging_dir/host/bin/mkporayfw -B A5-V11 -F 4M -f /home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-factory.bin -o /home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-factory.bin.new
[mkporayfw] *** error: stat failed on /home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-factory.bin:No such file or directory
Makefile:254: recipe for target '/home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-factory.bin' failed
make[5]: *** [/home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-factory.bin] Error 255
make[5]: Leaving directory '/home/viroot/openwrt/target/linux/ramips/image'
Makefile:26: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory '/home/viroot/openwrt/target/linux/ramips'
Makefile:13: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory '/home/viroot/openwrt/target/linux'
target/Makefile:22: recipe for target 'target/linux/install' failed
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory '/home/viroot/openwrt'
target/Makefile:18: recipe for target '/home/viroot/openwrt/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.target_install' failed
make[1]: *** [/home/viroot/openwrt/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/viroot/openwrt'
/home/viroot/openwrt/include/toplevel.mk:198: recipe for target 'world' failed

Что опять нужно старцу

vroot вне форума

 

Ответить с цитированием

Старый
21.07.2018, 18:43

 
#8

Senior Member

 

Аватар для sunny

 

Регистрация: 22.10.2015

Адрес: Там где сосны и песок

Сообщений: 1,534

Вес репутации: 1599

sunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to all

По умолчанию


Ну это просто:
WARNING: Image file /home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-sysupgrade.bin is too big
Размер получается слишком большой, нужно увеличить для своего роутера.
Где-то здесь давно писал, как…

__________________
Читаю ваши мысли по аватару …

sunny вне форума

 

Ответить с цитированием

Старый
21.07.2018, 19:20

 
#9

Junior Member

 

Регистрация: 12.06.2017

Адрес: В деревне

Сообщений: 20

Вес репутации: 0

vroot is an unknown quantity at this point

По умолчанию


Цитата:

Сообщение от sunny
Посмотреть сообщение

Ну это просто:
WARNING: Image file /home/viroot/openwrt/build_dir/target-mipsel_24kc_musl-1.1.16/linux-ramips_rt305x/tmp/lede-ramips-rt305x-a5-v11-squashfs-sysupgrade.bin is too big
Размер получается слишком большой, нужно увеличить для своего роутера.
Где-то здесь давно писал, как…

Это не моя прошивка

Я вообще умора
4 часа компилировал нету прошивку

Должна быть так linux-ramips_mt7620

У моего роутера 64 мб

vroot вне форума

 

Ответить с цитированием

Старый
21.07.2018, 20:01

 
#10

Senior Member

 

Аватар для sunny

 

Регистрация: 22.10.2015

Адрес: Там где сосны и песок

Сообщений: 1,534

Вес репутации: 1599

sunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to all

По умолчанию


Бывает)
64 мб — это почти наверняка оперативка.
А вот объем флешки может быть 16Mb — место под прошивку.
4 часа — что у вас там за «калькулятор» )
i3 на 1150 — на четырех потоках — 30 минут.

__________________
Читаю ваши мысли по аватару …


Последний раз редактировалось sunny; 21.07.2018 в 20:04.

sunny вне форума

 

Ответить с цитированием

Всем добрый день. Прежде чем убить свой роутер и винить себя за то, что не попробовал на виртуалке, решил не допускать таких ошибок и попробовать собрать свою прошивку OpenWrt для x86. Выбрал нужные пакеты, лишнее убрал, сохранил. Запускаю процесс компиляции и вижу такую картину

Код

make[1] world
 make[2] tools/install
 make[2] package/cleanup
 make[3] -C tools/patch compile
 make[3] -C tools/make-ext4fs compile
 make[3] -C tools/sstrip compile
 make[3] -C tools/firmware-utils compile
 make[3] -C tools/patch-image compile
 make[3] -C tools/flock compile
 make[3] -C tools/sstrip install
 make[3] -C tools/make-ext4fs install
 make[3] -C tools/patch-image install
 make[3] -C tools/flock install
 make[3] -C tools/firmware-utils install
 make[3] -C tools/patch install
 make[3] -C tools/xz compile
 make[3] -C tools/m4 compile
 make[3] -C tools/sed compile
 make[3] -C tools/yaffs2 compile
 make[3] -C tools/cmake compile
 make[3] -C tools/scons compile
 make[3] -C tools/lzma compile
 make[3] -C tools/sed install
 make[3] -C tools/m4 install
 make[3] -C tools/pkg-config compile
 make[3] -C tools/mkimage compile
 make[3] -C tools/yaffs2 install
 make[3] -C tools/scons install
 make[3] -C tools/lzma install
 make[3] -C tools/autoconf compile
 make[3] -C tools/pkg-config install
 make[3] -C tools/xz install
 make[3] -C tools/mkimage install
 make[3] -C tools/squashfs4 compile
 make[3] -C tools/autoconf install
 make[3] -C tools/automake compile
 make[3] -C tools/missing-macros compile
 make[3] -C tools/automake install
 make[3] -C tools/missing-macros install
 make[3] -C tools/libtool compile
 make[3] -C tools/squashfs4 install
 make[3] -C tools/libtool install
 make[3] -C tools/gmp compile
 make[3] -C tools/libelf compile
 make[3] -C tools/flex compile
 make[3] -C tools/mklibs compile
 make[3] -C tools/e2fsprogs compile
 make[3] -C tools/mm-macros compile
 make[3] -C tools/gengetopt compile
 make[3] -C tools/patchelf compile
 make[3] -C tools/gmp install
 make[3] -C tools/libelf install
 make[3] -C tools/flex install
 make[3] -C tools/mklibs install
 make[3] -C tools/e2fsprogs install
 make[3] -C tools/mm-macros install
 make[3] -C tools/cmake install
 make[3] -C tools/qemu compile
 make[3] -C tools/mpfr compile
 make[3] -C tools/bison compile
 make[3] -C tools/mtd-utils compile
 make[3] -C tools/patchelf install
 make[3] -C tools/qemu install
 make[3] -C tools/mpfr install
 make[3] -C tools/mtd-utils install
 make[3] -C tools/mpc compile
 make[3] -C tools/gengetopt install
 make[3] -C tools/mpc install
 make[3] -C tools/bison install
 make[3] -C tools/findutils compile
 make[3] -C tools/bc compile
 make[3] -C tools/bc install
 make[3] -C tools/findutils install
 make[3] -C tools/padjffs2 compile
 make[3] -C tools/quilt compile
 make[3] -C tools/padjffs2 install
 make[3] -C tools/quilt install
 make[2] toolchain/install
 make[3] -C toolchain/gdb prepare
 make[3] -C toolchain/binutils prepare
 make[3] -C toolchain/gcc/minimal prepare
 make[3] -C toolchain/kernel-headers prepare
 make[3] -C toolchain/uClibc/headers prepare
 make[3] -C toolchain/gdb compile
 make[3] -C toolchain/binutils compile
 make[3] -C toolchain/uClibc prepare
 make[3] -C toolchain/uClibc/utils prepare
 make[3] -C toolchain/gdb install
 make[3] -C toolchain/gcc/initial prepare
 make[3] -C toolchain/gcc/final prepare
 make[3] -C toolchain/binutils install
 make[3] -C toolchain/gcc/minimal compile
 make[3] -C toolchain/kernel-headers compile
 make[3] -C toolchain/gcc/minimal install
 make[3] -C toolchain/kernel-headers install
 make[3] -C toolchain/uClibc/headers compile
 make[3] -C toolchain/uClibc/headers install
 make[3] -C toolchain/gcc/initial compile
 make[3] -C toolchain/gcc/initial install
 make[3] -C toolchain/uClibc compile
 make[3] -C toolchain/uClibc install
 make[3] -C toolchain/gcc/final compile
 make[3] -C toolchain/gcc/final install
 make[3] -C toolchain/uClibc/utils compile
 make[3] -C toolchain/uClibc/utils install
 make[2] target/compile
 make[3] -C target/linux compile
 make[2] package/compile
 make[3] -C package/libs/toolchain compile
 make[3] -C package/libs/ncurses host-compile
 make[3] -C package/system/opkg host-compile
 make[3] -C package/system/usign host-compile
 make[3] -C feeds/luci/modules/luci-base host-compile
 make[3] -C package/firmware/linux-firmware compile
 make[3] -C package/utils/lua host-compile
 make[3] -C package/libs/polarssl compile
 make[3] -C feeds/luci/protocols/luci-proto-ipv6 compile
 make[3] -C package/libs/ocf-crypto-headers compile
 make[3] -C package/network/services/dropbear compile
 make[3] -C package/libs/libpcap compile
 make[3] -C package/network/utils/linux-atm compile
 make[3] -C package/network/utils/resolveip compile
 make[3] -C package/utils/busybox compile
 make[3] -C package/utils/mkelfimage 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/lzo compile
 make[3] -C package/libs/zlib compile
 make[3] -C package/libs/ncurses compile
 make[3] -C package/kernel/linux compile
 make[3] -C feeds/luci/libs/luci-lib-ip compile
 make[3] -C feeds/luci/libs/luci-lib-nixio compile
 make[3] -C feeds/luci/protocols/luci-proto-ppp compile
 make[3] -C feeds/luci/themes/luci-theme-bootstrap compile
 make[3] -C package/libs/openssl compile
 make[3] -C package/network/ipv6/odhcp6c compile
 make[3] -C package/network/services/dnsmasq compile
 make[3] -C package/network/services/ppp compile
 make[3] -C package/network/utils/iproute2 compile
 make[3] -C package/libs/libubox compile
 make[3] -C package/utils/util-linux compile
 make[3] -C package/utils/jsonfilter compile
 make[3] -C package/system/usign compile
 make[3] -C package/network/utils/iptables compile
 make[3] -C package/libs/ustream-ssl compile
 make[3] -C package/system/mtd compile
 make[3] -C package/system/ubus compile
 make[3] -C package/system/uci compile
 make[3] -C package/network/services/uhttpd compile
 make[3] -C package/libs/libevent2 compile
 make[3] -C package/network/services/odhcpd compile
 make[3] -C package/system/opkg compile
 make[3] -C package/network/config/netifd compile
 make[3] -C package/system/ubox compile
 make[3] -C package/utils/ubi-utils compile
 make[3] -C package/network/config/firewall compile
 make[3] -C package/network/utils/iwinfo compile
 make[3] -C feeds/packages/net/redsocks compile
 make[3] -C package/system/fstools compile
 make[3] -C package/system/procd compile
 make[3] -C feeds/luci/applications/luci-app-firewall compile
 make[3] -C package/system/rpcd compile
 make[3] -C package/base-files compile
 make[3] -C feeds/luci/modules/luci-base compile
 make[3] -C feeds/luci/modules/luci-mod-admin-full compile
 make[3] -C feeds/luci/collections/luci compile
 make[2] package/install
 make[3] package/preconfig
 make[2] target/install
 make[3] -C target/linux install
make -r world: build failed. Please re-run make with -j1 V=s to see what's going on
/home/user/OpenWRT/openwrt/include/toplevel.mk:181: ошибка выполнения рецепта для цели «world»
make: *** [world] Ошибка 1

Ага, ошибка, ладно наверно не хватает пакетов, запускаю make -j1 V=s, сначала все нормально, затем вижу следующее

Код

grub-mkimage: error: cannot open `/home/user/OpenWRT/openwrt/staging_dir/host/lib/grub/i386-pc/moddep.lst': No such file or directory.
Makefile:234: recipe for target 'install' failed
make[5]: *** [install] Error 1
make[5]: Leaving directory '/home/user/OpenWRT/openwrt/target/linux/x86/image'
Makefile:22: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory '/home/user/OpenWRT/openwrt/target/linux/x86'
Makefile:13: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory '/home/user/OpenWRT/openwrt/target/linux'
target/Makefile:21: recipe for target 'target/linux/install' failed
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory '/home/user/OpenWRT/openwrt'
target/Makefile:17: recipe for target '/home/user/OpenWRT/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/stamp/.target_install' failed
make[1]: *** [/home/user/OpenWRT/openwrt/staging_dir/target-i386_i486_uClibc-0.9.33.2/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/user/OpenWRT/openwrt'
/home/user/OpenWRT/openwrt/include/toplevel.mk:181: ошибка выполнения рецепта для цели «world»
make: *** [world] Ошибка 2

Ему не хватает файла moddep.lst. Проверяю, всей директории grub/i386-pc/moddep.lst нету по указанному адресу. Делал по такой инструкции

Код

mkdir ~/openwrt
cd ~/openwrt 
git clone git://git.openwrt.org/openwrt.git
make clean
make defconfig
make prereq
make menuconfig
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make -j $(nproc)

В каталоге Build_dir/host/ отсутствует каталог lib/grub/i386-pc/moddep.lst если это важно. Что посоветуйте, в чем может быть причина?

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

Like this post? Please share to your friends:
  • Openvpn tls error reading acknowledgement record from packet
  • Opengl runtime error
  • Onedrive код ошибки 0x8004def7 как исправить
  • Opengl error windows 10
  • Onedrive sorry an error has occurred перевод