What is your buildhost? Like in your first example, also in this second one the build breaks building host parts. Either tools or some package's host part.
Something neutral like Ubuntu 16.10 x64. (I have seen problems trying to build with 32-bit Ubuntu.)
Make sure you build with non-root account
Make sure that you have installed the prerequisites as they vary a bit by the nature of the buildhost.
However looking through the log file carefully I noticed another error which might be significant.
make[3]: Entering directory '/home/user/devel/git/lede/v17.01.0/tools/mklibs'
mkdir -p /home/user/devel/git/lede/v17.01.0/dl
SHELL= flock /home/user/devel/git/lede/v17.01.0/tmp/.mklibs_0.1.35.tar.gz.flock -c ' /home/user/devel/git/lede/v17.01.0/scripts/download.pl "/home/user/devel/git/lede/
v17.01.0/dl" "mklibs_0.1.35.tar.gz" "ccb1023dc1729c5a37ca6c3eca8e4bac3491116763c8820dfce8eea4845c8567" "" "http://ftp.de.debian.org/debian/pool/main/m/mklibs/" '
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 Not Found Download failed.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M100 24121 100 24121 0 0 40588 0 --:--:-- --:--:-- --:--:-- 40539
. /home/user/devel/git/lede/v17.01.0/include/shell.sh; gzip -dc /home/user/devel/git/lede/v17.01.0/dl/mklibs_0.1.35.tar.gz | tar -C /home/user/devel/git/lede/v17.01.0/build_dir/host/mklibs-0.1.35/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/* /home/user/devel/git/lede/v17.01.0/build_dir/host/mklibs-0.1.35
I assume that something was not downloaded in and around the mklibs section and rather than bailing and stopping it marches right along. That cannot be good.
For the record I am running Debian 8 on a AMD FX(tm)-8120 Eight-Core Processor with kernel 4.9.0-1-amd64 and gcc version 4.8.4 and 16Gb Memory.
Help is of course appreciated. But if it is a problem of sources not being downloaded then there is probably not a lot you can do about it. But the error messages could be a little more forthcoming.
You are reading it wrong. Download from the main site ftp.de.debian.org failed, so it tried one of the predefined LEDE mirrors and downloaded quite correctly the 24121 byte sized tar.gz file. Just check.you dl directory.
But that looks like a argument quoting error. It has failed to interpret "libressl 2.5.1" as one item and tries 2.5.1"
It is quite similar as you had in the other thread about 17.01.0-rc2 (as there you had 2.5.0" )
Pure guess, but somehow the shell passes argument brokenly or libtool understands them brokenly. Your locale? Something strange in any case. Solving that may be difficult.
Easiest might be to try something else than debian 8.
EDIT:
and when your are debugging, you need to avoid parallel compiling like pasman1 said, as the module failing may not be shown last. Like your first log example that shows nothing relevant. Always use -j 1 to see the failing error easily and properly as the end.
Ahh ok.. well just jumped out at me and make me wonder.
Pure guess, but somehow the shell passes argument brokenly or libtool understands them brokenly. Your locale? Something strange in any case. Solving that may be difficult.
Hmmm there is nothing unusual in the shell. Just a plain bash shell as a normal user.
Easiest might be to try something else than debian 8.
Ok I'll bite, what is the recommended build platform then? Though if you tied to only one platform to build against one has to wonder about the portability of the build system.
Edit: Debian 8 should work fine as well, BTW. Like @hnyman suggests you might have some weird environment variables messing things up...
I think you might be right. I built it on another Debian 9 machine and it seems to work. But something else confuses me the resultant image is named lede-ramips-mt7688-LinkIt7688-squashfs-sysupgrade.bin
Why is it named sysupgrade? And is the default image config the same as the one I have already tried from this official download page.
I basically want to be able to compile the same image so I can work on enabling some device drivers and making everything work. Thus far everything seems to work save the sound chip which apparently has been listed as broken in OpenWRT and LEDE. I want to see if I can fix that.
Thanks for your help at least I have a build environment that works now.