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
because it includes python2.7 which I guess is needed for LEDE (newer ones are ok with python3).
Soo can actually someone indeed build LEDE on Debian and how does he escapes this situation.
I'm also saving the .config without touching the defaults when make menuconfig.
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.
Please don't tell that I have to buy a new router / upgrade equipment. I have carefully calculated my needs and LEDE is what I have to deal with. I'm just asking if somebody can help in the situation.
You should try a linux distro from that time or maybe a little older.
You could try to see if image builder works. You can't compile anything new with it, but you can include any of the pre-built packages and kernel modules into your firmware image.
If you need something new, try to see if the toolchain works. Build static and include binaries into the firmware image with image builder.
Why so sure? Are you aware of some kind of limitation that you can share ?
I'm now trying with Debian 9..
I need to edit serveral packages and compile .ipk
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.