Upon make -j $(nproc) kernel_menuconfig
or even other make commands I get this error (happening at m4 package compile or just next after it)
freadahead.c: In function 'freadahead':
freadahead.c:91:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
I tried with Debian 11 now with Debian 10 is the same. I guess LEDE can't be compiled with newer libc versions ? I should try to compile way back to Debian 9 or there's something that I'm missing.
I'm also using the older advice for openwrt prerequisites as
Thanks but Docker isn't an option at the moment.
There must be some kind of explanation of the libc error and how to avoid it. I don't know how to downgrade libc to suitable version and don't know actually which version works.
Long story short - Lede is the "golden" middle version.
Like by building my own ipks they will work for both routers supported until LEDE as well as the newest routers supported from LEDE until now.
So whatever I do must be installable on most routers (new & old) and all of them will be on LEDE.
The drawbacks aren't an issue.