Go Down

Topic: Openwrt-yun build failure [Solved] (Read 9735 times) previous topic - next topic

tslater

Jun 27, 2014, 06:19 pm Last Edit: Jun 30, 2014, 06:51 pm by tslater Reason: 1
I've been trying to build and am chewing up errors. I finally am stuck on one. I am posting here per the instructions of the gihub repo.  I have attached the output of nohup.out with the j flag set to one. help!! thanks!!

I'm on 64-bit Wheexy:
3.2.0-4-amd64 GNU/Linux
Distributor ID:   Debian
Release:   7.5
Codename:   wheezy

Here is a preview of the error:
Code: [Select]


mkdir -p /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/stamp /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-xmlwriter
install -d -m0755 /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-xmlwriter/usr/lib/php
install -m0755 /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/modules/xmlwriter.so /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-xmlwriter/usr/lib/php/
install -d -m0755 /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-xmlwriter/etc/php5
echo "extension=xmlwriter.so" > /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-xmlwriter/etc/php5/xmlwriter.ini
SHELL= /home/tyler/yun/openwrt-yun/staging_dir/host/bin/flock /home/tyler/yun/openwrt-yun/tmp/.root-copy.flock -c 'cp -fpR /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-xmlwriter/. /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/'
rm -rf /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-xmlwriter
touch /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/stamp/.php5-mod-xmlwriter_installed
mkdir -p /home/tyler/yun/openwrt-yun/bin/ar71xx/packages /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/ipkg-ar71xx/php5-mod-zip/CONTROL /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo
install -d -m0755 /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/ipkg-ar71xx/php5-mod-zip/usr/lib/php
install -m0755 /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/modules/zip.so /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/ipkg-ar71xx/php5-mod-zip/usr/lib/php/
install -d -m0755 /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/ipkg-ar71xx/php5-mod-zip/etc/php5
echo "extension=zip.so" > /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/ipkg-ar71xx/php5-mod-zip/etc/php5/zip.ini
find /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/ipkg-ar71xx/php5-mod-zip -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="mips-openwrt-linux-uclibc-" NO_RENAME=1 ; NM="mips-openwrt-linux-uclibc-nm" STRIP="/home/tyler/yun/openwrt-yun/staging_dir/host/bin/sstrip" STRIP_KMOD="/home/tyler/yun/openwrt-yun/scripts/strip-kmod.sh" /home/tyler/yun/openwrt-yun/scripts/rstrip.sh /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/ipkg-ar71xx/php5-mod-zip
rstrip.sh: /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/ipkg-ar71xx/php5-mod-zip/usr/lib/php/zip.so:shared object
( echo "Package: php5-mod-zip"; echo "Version: 5.4.5-3"; DEPENDS=''; for depend in libc php5 zlib; do DEPENDS=${DEPENDS:+$DEPENDS, }${depend##+}; done; echo "Depends: $DEPENDS"; echo "Provides: "; echo "Source: feeds/packages/lang/php5"; echo "Section: lang"; echo "Status: unknown ok not-installed"; echo "Essential: no"; echo "Priority: optional"; echo "Maintainer: Michael Heimpold <mhei@heimpold.de>"; echo "Architecture: ar71xx"; echo "Installed-Size: 0"; echo -n "Description: "; . /home/tyler/yun/openwrt-yun/include/shell.sh; getvar V_Package_php5_mod_zip_description | sed -e 's,^[[:space:]]*, ,g'; ) > /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/ipkg-ar71xx/php5-mod-zip/CONTROL/control
chmod 644 /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/ipkg-ar71xx/php5-mod-zip/CONTROL/control
. /home/tyler/yun/openwrt-yun/include/shell.sh; (cd /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/ipkg-ar71xx/php5-mod-zip/CONTROL;  )
ipkg-build -c -o 0 -g 0 /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/ipkg-ar71xx/php5-mod-zip /home/tyler/yun/openwrt-yun/bin/ar71xx/packages
Packaged contents of /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/ipkg-ar71xx/php5-mod-zip into /home/tyler/yun/openwrt-yun/bin/ar71xx/packages/php5-mod-zip_5.4.5-3_ar71xx.ipk
rm -rf /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-zip
mkdir -p /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/stamp /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-zip
install -d -m0755 /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-zip/usr/lib/php
install -m0755 /home/tyler/yun/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/php-5.4.5/modules/zip.so /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-zip/usr/lib/php/
install -d -m0755 /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-zip/etc/php5
echo "extension=zip.so" > /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-zip/etc/php5/zip.ini
SHELL= /home/tyler/yun/openwrt-yun/staging_dir/host/bin/flock /home/tyler/yun/openwrt-yun/tmp/.root-copy.flock -c 'cp -fpR /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-zip/. /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/'
rm -rf /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/tmp-php5-mod-zip
touch /home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/root-ar71xx/stamp/.php5-mod-zip_installed
make[3]: Leaving directory `/home/tyler/yun/openwrt-yun/feeds/packages/lang/php5'
make[2]: Leaving directory `/home/tyler/yun/openwrt-yun'
make[1]: *** [/home/tyler/yun/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/tyler/yun/openwrt-yun'
make: *** [world] Error 2


federicofissore

It looks like some packages failed to be downloaded

Code: [Select]

make[3]: *** [/home/tyler/yun/openwrt-yun/dl/snort-2.9.2.2.tar.gz] Error 2
make[3]: Leaving directory `/home/tyler/yun/openwrt-yun/feeds/packages/net/snort'
make[2]: *** [package/feeds/packages/snort/compile] Error 2
make[2]: *** Waiting for unfinished jobs....

make[3]: *** [/home/tyler/yun/openwrt-yun/dl/strongswan-5.1.3.tar.bz2] Error 2
make[3]: Leaving directory `/home/tyler/yun/openwrt-yun/feeds/packages/net/strongswan'
make[2]: *** [package/feeds/packages/strongswan/compile] Error 2


The standard suggestion is to retry. Keep your DOWNLOAD folder safe, it's quite common to have some download errors the first times

tslater

I've had other download error that I've managed to fix but I've gotten this one about 7-8 times now. Should I keep retrying?

tslater

Ok so I didn't see this before. I'm thinking (hoping) it's the same issue?

http://forum.arduino.cc/index.php?topic=236093.0

Should I change

Code: [Select]

src-git routing git://github.com/openwrt-routing/packages.git;for-12.09.x


to

Code: [Select]

src-git routing https://github.com/openwrt-routing/packages.git;for-12.09.x


in feeds.conf.default?

tslater

I changed it, ran it again, and got the same error. Out of luck... ;-(

sonnyyu


...
I'm on 64-bit Wheexy:
3.2.0-4-amd64 GNU/Linux
Distributor ID:   Debian
Release:   7.5
Codename:   wheezy
...


64-bit Wheexy, use 64 bits host OS cross compile 32  bits mips  OS ( Yun OS) is doable. but  you  might need  install additional 32 bit  class  and package. It is challenge!

sonnyyu

#6
Jun 27, 2014, 08:18 pm Last Edit: Jun 27, 2014, 08:30 pm by sonnyyu Reason: 1

Ok so I didn't see this before. I'm thinking (hoping) it's the same issue?

http://forum.arduino.cc/index.php?topic=236093.0

Should I change

Code: [Select]

src-git routing git://github.com/openwrt-routing/packages.git;for-12.09.x


to

Code: [Select]

src-git routing https://github.com/openwrt-routing/packages.git;for-12.09.x


in feeds.conf.default?


Wrong package feeds, start over please.

http://forum.arduino.cc/index.php?topic=235489.msg1699935#msg1699935

Code: [Select]
nano ~/OpenWrt-yun/feeds.conf.default
#src-git packages git@github.com:arduino/openwrt-packages-yun.git
src-git packages https://github.com/arduino/openwrt-packages-yun.git

federicofissore

Latest image uses svn to download from github, so that particular issue has already been solved. Your issue is with this https://github.com/arduino/openwrt-yun/blob/master/feeds.conf.default#L4 it has always worked AFAIK
If you dont' have errors while updating the feeds than that is NOT the issue
Try manually download the missing package (tar.gz, zip, whatever it is) and manually put it into DOWNLOAD folder and re-run

tslater

Ok...! I Started over with 32-bit Wheezy and added an ssh key to git on the vbox before getting started...I think/hope I'm done?

This is what I saw at the end....

Code: [Select]

...
Generating index for package ./znc-mod-perform_0.206-2_ar71xx.ipk
Generating index for package ./znc-mod-q_0.206-2_ar71xx.ipk
Generating index for package ./znc-mod-raw_0.206-2_ar71xx.ipk
Generating index for package ./znc-mod-route-replies_0.206-2_ar71xx.ipk
Generating index for package ./znc-mod-savebuff_0.206-2_ar71xx.ipk
Generating index for package ./znc-mod-schat_0.206-2_ar71xx.ipk
Generating index for package ./znc-mod-send-raw_0.206-2_ar71xx.ipk
Generating index for package ./znc-mod-shell_0.206-2_ar71xx.ipk
Generating index for package ./znc-mod-simple-away_0.206-2_ar71xx.ipk
Generating index for package ./znc-mod-stickychan_0.206-2_ar71xx.ipk
Generating index for package ./znc-mod-watch_0.206-2_ar71xx.ipk
Generating index for package ./znc-mod-webadmin_0.206-2_ar71xx.ipk
Generating index for package ./znc-webskin-dark-clouds_0.206-2_ar71xx.ipk
Generating index for package ./znc-webskin-forest_0.206-2_ar71xx.ipk
Generating index for package ./znc-webskin-ice_0.206-2_ar71xx.ipk
Generating index for package ./znc_0.206-2_ar71xx.ipk
Generating index for package ./zoneinfo-africa_2011n-1_ar71xx.ipk
Generating index for package ./zoneinfo-asia_2011n-1_ar71xx.ipk
Generating index for package ./zoneinfo-atlantic_2011n-1_ar71xx.ipk
Generating index for package ./zoneinfo-australia-nz_2011n-1_ar71xx.ipk
Generating index for package ./zoneinfo-core_2011n-1_ar71xx.ipk
Generating index for package ./zoneinfo-europe_2011n-1_ar71xx.ipk
Generating index for package ./zoneinfo-india_2011n-1_ar71xx.ipk
Generating index for package ./zoneinfo-middleeast_2011n-1_ar71xx.ipk
Generating index for package ./zoneinfo-northamerica_2011n-1_ar71xx.ipk
Generating index for package ./zoneinfo-pacific_2011n-1_ar71xx.ipk
Generating index for package ./zoneinfo-poles_2011n-1_ar71xx.ipk
Generating index for package ./zoneinfo-simple_2011n-1_ar71xx.ipk
Generating index for package ./zoneinfo-southamerica_2011n-1_ar71xx.ipk
Generating index for package ./zope-interface_2.5.0-1_ar71xx.ipk
make[2]: Leaving directory `/home/tyler/yun/openwrt-yun'
make[1]: Leaving directory `/home/tyler/yun/openwrt-yun'


There is no success message...am i done?

sonnyyu

#9
Jun 28, 2014, 04:07 pm Last Edit: Jun 28, 2014, 04:11 pm by sonnyyu Reason: 1
The Buildroot is done, check "bin/ar71xx/" and "bin/ar71xx/packages/"  you should have what you need.

federicofissore

Yes tslater, that's the end of the build! Congrats!

tslater

Thanks you guys! You're the best! I really appreciate it!

federicofissore

Can you edit the topic title to [solved] or something? It's pretty scary atm :)

#13
Sep 07, 2015, 08:09 pm Last Edit: Sep 08, 2015, 09:49 pm by mmkhmmkh
Hi everyone .

I still get this error :

Code: [Select]
make[1]: *** [/home/mmkh/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2

I tasted it on : KaliLinux (VMWare) - CentOS (Both on VMWare and Server) - Debian 8 64bit (VMWare) - Debian Wheezy 32-bit (VMWare)

I also added git ssh key .

But it doesnt work.

What can i do now ?!

i am just wanted to have yum-gcc on my linux . (it is reason for why i am trying to build the source)

Sorry for my bad English.

See next page for complete errorlog .

sonnyyu

Your error log is incomplete. attached nohup.out.zip file please.





Go Up