Go Down

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


sonnyyu

Code: [Select]
grep "Error 2" nohup.out
make[5]: *** [CMakeFiles/netifd.dir/all] Error 2
make[4]: *** [all] Error 2
make[3]: *** [/home/mmkh/openwrt-yun/build_dir/target-mips_r2_uClibc-0.9.33.2/netifd-2013-07-16/.built] Error 2
make[2]: *** [package/netifd/compile] Error 2
make[1]: *** [/home/mmkh/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make: *** [world] Error 2


Code: [Select]
cd /home/mmkh/openwrt-yun

Code: [Select]
make  package/netifd/{clean,compile} V=s




This just compiles netifd for me !
I want to compile OpenWRT-yun bin file to get installed on my yun .

sonnyyu

Code: [Select]
make  package/netifd/{clean,compile} V=s

The output of it?





#19
Sep 09, 2015, 04:26 pm Last Edit: Sep 09, 2015, 04:32 pm by mmkhmmkh
Code: [Select]
make  package/netifd/{clean,compile} V=s

The output of it?





I attached whole of output to Output.txt .

sonnyyu

Code: [Select]
touch /home/mmkh/openwrt-yun/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.netifd_installed

means netifd is compiled OK.




Its Good ! But not enough !

I want to compile whole of OpenWRT-yun and then get a binary to install it on my yun.

What should i do ?

sonnyyu



sonnyyu

#24
Sep 10, 2015, 09:07 pm Last Edit: Sep 10, 2015, 09:07 pm by sonnyyu
The Output.txt  is not completed.

Use

Code: [Select]
grep "Error 2" nohup.out

find out what is wrong, then same way compile it individually.




#25
Sep 11, 2015, 12:17 pm Last Edit: Sep 11, 2015, 12:21 pm by mmkhmmkh
I do same way for all errors.
But on compile glib2 package , there are some errors that i cant understand ! (attached)

here there is some information about in : https://github.com/openwrt/packages/issues/72
and here :http://stackoverflow.com/questions/31652602/building-openwrt-on-centos7
but i cant understand what should i do .

sonnyyu

#26
Sep 11, 2015, 01:40 pm Last Edit: Sep 11, 2015, 01:40 pm by sonnyyu
Code: [Select]
/usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/libselinux.so: undefined reference to `lzma_stream_decoder@XZ_5.0'
/usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/libselinux.so: undefined reference to `lzma_end@XZ_5.0'
/usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/libselinux.so: undefined reference to `lzma_code@XZ_5.0'



Host is CentOS/Redhat 64 bits?

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!

Code: [Select]
/usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/libselinux.so: undefined reference to `lzma_stream_decoder@XZ_5.0'
/usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/libselinux.so: undefined reference to `lzma_end@XZ_5.0'
/usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/libselinux.so: undefined reference to `lzma_code@XZ_5.0'



Host is CentOS/Redhat 64 bits?











Yes.

You said : "but  you  might need  install additional 32 bit  class  and package"
What Pakcages Should i install on my CentOS x64 ?

sonnyyu

#28
Sep 11, 2015, 02:00 pm Last Edit: Sep 11, 2015, 02:37 pm by sonnyyu
...
I tasted it on : KaliLinux (VMWare) - CentOS (Both on VMWare and Server) - Debian 8 64bit (VMWare) - Debian Wheezy 32-bit (VMWare)
...
My standard compile box is Debian Wheezy 32-bit  (no desktop) install at bare metal (no virtual machine), multiple cores (minimum 4) and a lot of RAM (minimum 16GB)box.




Can i run debian-7.8.0-i386 on my VMWare ? ( with 2 * 4 core CPU and 16 GB Ram )

Go Up