OpenWrt Forum Archive

Topic: OpenWRT: Build Failed!

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

Hi to all!
I'am trying build openwrt prj but when i start MAKE command sometimes i got some errors(can't download some packages) then i download it by browser and place it to [buildroot]/dl then start MAKE again. Today i download rtklib-2.4.2_p9-5592bb575ceb27f2ce0f0f5a84eda38497006c15.tar.gz then start MAKE again and receive next errors:

make[4]: Entering directory `/home/bubleek/openwrt/build_dir/target-mipsel_mips32r2_musl-1.1.10/rtklib-2.4.2_p9/app/rtkrcv/gcc'
mipsel-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -g3 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -c -Wall -O3 -ansi -pedantic -Wno-unused-but-set-variable -I../../../src -DTRACE -DENAGLO -DENAGAL -DENAQZS -DNFREQ=3 -g ../../../src/stream.c
../../../src/stream.c: In function 'openserial':
../../../src/stream.c:378:38: error: 'CRTSCTS' undeclared (first use in this function)
     ios.c_cflag|=!strcmp(fctr,"rts")?CRTSCTS:0;
                                      ^
../../../src/stream.c:378:38: note: each undeclared identifier is reported only once for each function it appears in
../../../src/stream.c: In function 'gentcp':
../../../src/stream.c:912:9: warning: implicit declaration of function 'gethostbyname' [-Wimplicit-function-declaration]
         if (!(hp=gethostbyname(tcp->saddr))) {
         ^
../../../src/stream.c:912:17: warning: assignment makes pointer from integer without a cast [enabled by default]
         if (!(hp=gethostbyname(tcp->saddr))) {
                 ^
make[4]: *** [stream.o] Error 1
make[4]: Leaving directory `/home/bubleek/openwrt/build_dir/target-mipsel_mips32r2_musl-1.1.10/rtklib-2.4.2_p9/app/rtkrcv/gcc'
make[3]: *** [/home/bubleek/openwrt/build_dir/target-mipsel_mips32r2_musl-1.1.10/rtklib-2.4.2_p9/.built] Error 2
make[3]: Leaving directory `/home/bubleek/openwrt/feeds/packages/utils/rtklib'
make[2]: *** [package/feeds/packages/rtklib/compile] Error 2
make[2]: Leaving directory `/home/bubleek/openwrt'
make[1]: *** [/home/bubleek/openwrt/staging_dir/target-mipsel_mips32r2_musl-1.1.10/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/bubleek/openwrt'
make: *** [world] Ошибка 2

I don't understand what happen? Somebody tell me what i should doing now?

Well, the download errors could have multiple reasons:
1) site is temporarily down
2) MD5 checksum in makefile does not match
3) other

I am guessing your case it's maybe 1).

Are you compiling on OpenWRT trunk ?
You should notice that OpenWRT switched from uClibc to musl as default libc .
So, some things that compiled on uClibc may no longer compile with musl.

Looking at RTKLIB, it seems to date back to 2014 september.
I think some update to musl would be in order.
Feel free to open ticket on https://github.com/openwrt/packages/issues

I just do following instruction: http://wiki.openwrt.org/doc/howto/buildroot.exigence
Now i do MAKE CLEAN then MAKE again.
Sites not temporarily down because i can download packages by browser.
I think when MD5 sum is not math i got that error(about MD5 sum).
Maybe i need update musl compiler?

Now i understand what happen.
After i do MAKE CLEAN then do MAKE again i got same situation as in fitst post. But now i know that packege rtklib-2.4.2_p9-5592bb575ceb27f2ce0f0f5a84eda38497006c15.tar.gz is a broken packege! I found this infotmation on openwrt.org site, they have list with broken packeges.
But i have dependence of this packege. What i should doing now?

Nobudy don't know about this problem? But after MAKE CLEAN and MAKE DIRCLEAN then start ./skripts ... update and ./skripts ... install -a then make menuconfig and choose what you want, save config, start new build. Perfect! I don't have that dependece and build finaly over good.
Problem not solved! Because bad dependece still have in buildroot prj.

The discussion might have continued from here.