OpenWrt Forum Archive

Topic: openwrt : Build failed

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

Hello,

We are working on AR71xx board and downloaded openwrt for git and changed the folder owner to other user other than root. But we are getting error as follws :

make -r build: build failed. Please re-run make with -j1 V=s to see what's going on
make: *** [build] Error 1

Then we rebuid with

 make -j1 V=s 

and noticed that it is trying to download :
http://downloads.openwrt.org/sources/mt … 360.tar.gz
But this file is not exists in the repository. So we are stuck here.

Kindly please tell us how to resolve this problem?

We are using Bleeding edge openwrt and followed this link : http://wiki.openwrt.org/doc/howto/buildroot.exigence to download and build.

Regards,
Sowmya

Well, that downloads.openwrt.org is the last fallback option for download locations. Generally the packages are not downloaded from there, but directly from the upstream source sites. So, your quoted error message is only the last error, not the error regarding the actual primary source site...

If you check the mtd-utils makefile, you will notice that the primary download location for mtd-utils is git.infradead.org
https://dev.openwrt.org/browser/trunk/t … s/Makefile
   PKG_SOURCE_URL:=git://git.infradead.org/mtd-utils.git

You might go directly to http://git.infradead.org/mtd-utils.git and download the correct source snapshot manually, and place it to your Openwrt download location, named correctly.
Based on the Makefile, the correct file is probably this:
http://git.infradead.org/mtd-utils.git/ … 360.tar.gz
It should probably be named as mtd-utils-1.5.1-92686f212c9a4e16891c6a3c57629cbf4f0f8360.tar.gz

(Last edited by hnyman on 11 Jun 2015, 06:39)

Thanks for the reply Hnyman.

I downloaded mtd-utils.gir from http://git.infradead.org/mtd-utils.git and I am not getting in which folder I have to extract it.
Do I have to change the /mtd-utils/Makefile contents?

Regards,
Sowmya

you don't have to extract it.

You have to place the .tzr.gz file to the download directory, like I said. Most likely <buildroot>/dl , unless you have changed the settings. The make process will then extract the sources during the make.

You may test that with "make package/mtd-utils/prepare".
If you have places the correctly names .tzr.gz file in the dl directory, it should accept that, verify checksum and expand it.

I placed the downloaded .tzr.gz file in /dl folder. We are having disk space of 17 GB and it is consuming complete disk space for

make 

command sad
How much space it require for the complete make and build?

And also can I download the openwrt in mounted points of external partitions?

BR,
Sowmya

Hi to all!
I have same situation: first i receive same err like in 1 post, then i download mtd-utils-1.5.1-92686f212c9a4e16891c6a3c57629cbf4f0f8360.tar.gz and place it to <buildroot>/dl, then start MAKE again and receive next errors:

. /home/bubleek/openwrt/include/shell.sh; gzip -dc /home/bubleek/openwrt/dl/mtd-utils-1.5.1-92686f212c9a4e16891c6a3c57629cbf4f0f8360.tar.gz | tar -C /home/bubleek/openwrt/build_dir/host/mtd-utils-1.5.1/.. -xf - 

Applying ./patches/100-sscanf_fix.patch using plaintext: 
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/mkfs.jffs2.c
|+++ b/mkfs.jffs2.c
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Patch failed!  Please fix ./patches/100-sscanf_fix.patch!
make[3]: *** [/home/bubleek/openwrt/build_dir/host/mtd-utils-1.5.1/.preparedf33793832bf8f0e8740efad1c35d4b16] Error 1

I'am a new user in OpenWRT prj, please help me...

Hi!
Problem solved! I just forgot rename files inside downloaded .tar.gz archive.

Daniel.Hsu, et al:

cd dl
tar -xzf mtd-utils-1.5.1-92686f212c9a4e16891c6a3c57629cbf4f0f8360.tar.gz
mv mtd-utils-92686f2 mtd-utils-1.5.1
tar -czf mtd-utils-1.5.1-92686f212c9a4e16891c6a3c57629cbf4f0f8360.tar.gz mtd-utils-1.5.1
rm -rf mtd-utils-1.5.1
cd ..

Dear sopwith,

Thanks a lot!

cd dl
tar -xzf mtd-utils-1.5.1-92686f212c9a4e16891c6a3c57629cbf4f0f8360.tar.gz
mv mtd-utils-92686f2 mtd-utils-1.5.1-92686f212c9a4e16891c6a3c57629cbf4f0f8360
tar -czf mtd-utils-1.5.1-92686f212c9a4e16891c6a3c57629cbf4f0f8360.tar.gz mtd-utils-1.5.1-92686f212c9a4e16891c6a3c57629cbf4f0f8360
rm -rf mtd-utils-1.5.1-92686f212c9a4e16891c6a3c57629cbf4f0f8360
cd ..

The discussion might have continued from here.