Building OpenWrt 12.09

Sorry, it seems to look like an offtop, but it fails building even toolchain. Host OS: ubuntu 16.04, gcc 4.7-5.4
With 15.05.1 it's ok.

do someone have ideas? thanks in advance

LOG
/home/user/attitude_adjustment/openwrt/build_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.02/gcc/cp/except.c:341:7: note: in expansion of macro 'gcc_unreachable'
gcc_unreachable ();
^~~~~~~~~~~~~~~
In file included from /home/user/attitude_adjustment/openwrt/build_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.02/gcc/cp/except.c:912:0:
cfns.gperf: At top level:
cfns.gperf:101:1: error: 'gnu_inline' attribute present on 'libc_name_p'
cfns.gperf:26:14: error: but not here
In file included from /home/user/attitude_adjustment/openwrt/build_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.02/gcc/cp/except.c:27:0:
/home/user/attitude_adjustment/openwrt/build_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.02/gcc/cp/except.c: In function 'nothrow_spec_p':
/home/user/attitude_adjustment/openwrt/build_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.02/gcc/system.h:636:55: warning: ISO C does not support 'FUNCTION' predefined identifier [-Wpedantic]
((void)(!(EXPR) ? fancy_abort (FILE, LINE, FUNCTION), 0 : 0))
^
/home/user/attitude_adjustment/openwrt/build_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.02/gcc/cp/except.c:1170:3: note: in expansion of macro 'gcc_assert'
gcc_assert (processing_template_decl
^~~~~~~~~~
/home/user/attitude_adjustment/openwrt/build_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.02/gcc/cp/except.c: In function 'build_noexcept_spec':
/home/user/attitude_adjustment/openwrt/build_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.02/gcc/system.h:636:55: warning: ISO C does not support 'FUNCTION' predefined identifier [-Wpedantic]
((void)(!(EXPR) ? fancy_abort (FILE, LINE, FUNCTION), 0 : 0))
^
/home/user/attitude_adjustment/openwrt/build_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.02/gcc/cp/except.c:1222:7: note: in expansion of macro 'gcc_assert'
gcc_assert (processing_template_decl || expr == error_mark_node);

This is the lede forum and not the OpenWrt forum.

How about you ask your question here:
https://forum.openwrt.org

Better yet: upgrade to Lede and move your device(s) into 2017 !!

My router 4/32 is not enough good for lede :slight_smile:

Unfortunately I can't sign up for the OpenWrt's forum

https://forum.openwrt.org/register.php

I'm not going to say 4/32 is great or even good enought. But, depending on the device, people have managed to get 4/32 routers working. Look e.g. at the TP-Link WR841/741 series custom build on this forum.

My D-Link DIR-320 A1 is restricted with 3.7 Mb flash, and usb 3g/4g modem support and usb tethering are required. I tried it with OpenWRT 15.05.1 and removed everything I could: opkg luci ipv6 etc.and no success.

USB hub an option?? See this: http://webapp.org.ua/dev/openwrt-chaos-calmer-15-05-on-dlink-dir-320-with-cdma-modem/

If you can do this, Lede would be a very good option.