<div dir="ltr"><div><div><div><div>Hi!<br><br></div>I'm trying understand how to compile OpenWRT from git, but something didn't work.<br><br></div>I cloned chaos_calmer branch, "make defconfig" and "make -j1 V=s". And I got an error like this:<br><br>In file included from /home/zs14/spaces/cc/openwrt/build_dir/host/u-boot-2014.10/include/compiler.h:46:0,<br> from /home/zs14/spaces/cc/openwrt/build_dir/host/u-boot-2014.10/include/libfdt_env.h:12,<br> from <command-line>:0:<br>/home/zs14/spaces/cc/openwrt/staging_dir/host/include/byteswap.h:2:2: warning: #include_next is a GCC extension<br> #include_next <byteswap.h><br> ^~~~~~~~~~~~<br> WRAP tools/lib/fdtdec.c<br> HOSTCC tools/lib/fdtdec.o<br> WRAP tools/lib/fdtdec_common.c<br> HOSTCC tools/lib/fdtdec_common.o<br> WRAP tools/lib/libfdt/fdt.c<br> HOSTCC tools/lib/libfdt/fdt.o<br> WRAP tools/lib/libfdt/fdt_ro.c<br> HOSTCC tools/lib/libfdt/fdt_ro.o<br> WRAP tools/lib/libfdt/fdt_rw.c<br> HOSTCC tools/lib/libfdt/fdt_rw.o<br> WRAP tools/lib/libfdt/fdt_strerror.c<br> HOSTCC tools/lib/libfdt/fdt_strerror.o<br> WRAP tools/lib/libfdt/fdt_wip.c<br> HOSTCC tools/lib/libfdt/fdt_wip.o<br> WRAP tools/lib/md5.c<br> HOSTCC tools/lib/md5.o<br>In file included from /home/zs14/spaces/cc/openwrt/build_dir/host/u-boot-2014.10/include/compiler.h:46:0,<br> from /home/zs14/spaces/cc/openwrt/build_dir/host/u-boot-2014.10/include/libfdt_env.h:12,<br> from <command-line>:0:<br>/home/zs14/spaces/cc/openwrt/staging_dir/host/include/byteswap.h:2:2: warning: #include_next is a GCC extension<br> #include_next <byteswap.h><br> ^~~~~~~~~~~~<br> WRAP tools/lib/rsa/rsa-checksum.c<br> HOSTCC tools/lib/rsa/rsa-checksum.o<br> WRAP tools/lib/rsa/rsa-sign.c<br> HOSTCC tools/lib/rsa/rsa-sign.o<br>In file included from tools/lib/rsa/rsa-sign.c:1:0:<br>/home/zs14/spaces/cc/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_remove':<br>/home/zs14/spaces/cc/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:156:2: warning: 'ERR_remove_thread_state' is deprecated [-Wdeprecated-declarations]<br> ERR_remove_thread_state(NULL);<br> ^~~~~~~~~~~~~~~~~~~~~~~<br>In file included from /usr/include/openssl/x509_vfy.h:20:0,<br> from /usr/include/openssl/x509.h:309,<br> from /usr/include/openssl/pem.h:17,<br> from /home/zs14/spaces/cc/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:13,<br> from tools/lib/rsa/rsa-sign.c:1:<br>/usr/include/openssl/err.h:246:1: note: declared here<br> DEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *))<br> ^<br>In file included from tools/lib/rsa/rsa-sign.c:1:0:<br>/home/zs14/spaces/cc/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_sign_with_key':<br>/home/zs14/spaces/cc/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:213:2: warning: implicit declaration of function 'EVP_MD_CTX_cleanup' [-Wimplicit-function-declaration]<br> EVP_MD_CTX_cleanup(context);<br> ^~~~~~~~~~~~~~~~~~<br>/home/zs14/spaces/cc/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c: In function 'rsa_get_exponent':<br>/home/zs14/spaces/cc/openwrt/build_dir/host/u-boot-2014.10/lib/rsa/rsa-sign.c:279:21: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}'<br> if (BN_num_bits(key->e) > 64)<br> ^~<br>scripts/Makefile.host:134: recipe for target 'tools/lib/rsa/rsa-sign.o' failed<br>make[5]: *** [tools/lib/rsa/rsa-sign.o] Error 1<br>Makefile:1195: recipe for target 'tools-only' failed<br>make[4]: *** [tools-only] Error 2<br>make[4]: Leaving directory '/home/zs14/spaces/cc/openwrt/build_dir/host/u-boot-2014.10'<br>Makefile:46: recipe for target '/home/zs14/spaces/cc/openwrt/build_dir/host/u-boot-2014.10/.built' failed<br>make[3]: *** [/home/zs14/spaces/cc/openwrt/build_dir/host/u-boot-2014.10/.built] Error 2<br>make[3]: Leaving directory '/home/zs14/spaces/cc/openwrt/tools/mkimage'<br>tools/Makefile:122: recipe for target 'tools/mkimage/compile' failed<br>make[2]: *** [tools/mkimage/compile] Error 2<br>make[2]: Leaving directory '/home/zs14/spaces/cc/openwrt'<br>tools/Makefile:121: recipe for target '/home/zs14/spaces/cc/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyyyyyyyyyyynyyyyynnyyynyyynnnyy' failed<br>make[1]: *** [/home/zs14/spaces/cc/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyyyyyyyyyyynyyyyynnyyynyyynnnyy] Error 2<br>make[1]: Leaving directory '/home/zs14/spaces/cc/openwrt'<br>/home/zs14/spaces/cc/openwrt/include/<a href="http://toplevel.mk:181">toplevel.mk:181</a>: recipe for target 'world' failed<br>make: *** [world] Error 2<br><br></div><div>Full output in attached file (if it won't be deleted by lists rules. Output too big for <a href="http://gist.github.com">gist.github.com</a>)<br></div><br>What I'm doing wrong? Should I install some packages from feeds?<br><br></div><div>I'm doing this on Debian Sid, with make-4.1 and gcc-6.2.1. Is it appropriate making environment for OpenWRT?<br></div><div><div><div><div><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">brgds<br>Maxim Vorontsov<br></div></div></div></div></div></div>
</div></div></div></div></div></div></div></div>