A
A
Aleksey Pleshkov2015-09-03 11:24:38
C++ / C#
Aleksey Pleshkov, 2015-09-03 11:24:38

How to fix an error when building OpenWRT under MIPS?

Good day.
I'm trying to build OpenWRT under MIPS and I'm running into an error. I make a Black Swift microcomputer according to the instructions ( link ).
I enter make V=99 and after 20 minutes I get this error:

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

This is what toplevel.mk:171 contains
@+$(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 [email protected]

endif

I'm using Ubuntu 15.04 myself.
Unfortunately, I'm not selenium in like this, so I'm asking for help.
Thank you for attention.
Sincerely, Alex.
output of 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

The solution to the problem is very simple. If during assembly it tries to download any library and does not find it, you just need to find this particular version (I copied the name) and look for it yourself. Then just put it in /openwrt/dl/ and run make V=99 again.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Martyanov, 2015-09-03
@vilgeforce

Read what they themselves wrote: "Please run make menuconfig, oldconfig or defconfig!" - tried?

S
serg-mizun, 2016-07-31
@serg-mizun

so a 404 error does not bother? that he can not download the source? Either tell him where to get cyassl-3.2.0.zip or, when configuring, specify the assembly without this lib

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question