Just for fun, I am trying to build LEDE using the Bash shell using the "built-in" windows services for Linux (WSL) in the latest Windows 10. For those who don't know what that is: Microsoft managed to run linux binaries directly on Windows, using an Ubuntu subsystem. See this page on how to install it: http://winaero.com/blog/how-to-enable-ubuntu-bash-in-windows-10/
In order to save me from creating a linux VM, I thought it was fun to try and build LEDE directly using this shell/subsystem. It looks remarkably like Ubuntu, and most things actually work, like apt-get to install all prerequisits for a LEDE build environment.
anton@windows10:/mnt/d/lede/source$ uname -a
Linux windows10 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux
anton@windows10:/mnt/d/lede/source$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
Make menuconfig is a bit garbled, but it also works ok. Things start not to work when I actually want to "make"...
anton@windows10:/mnt/d/lede/source$ make -j1 V=s 2>&1 | tee build.log | grep -i error
anton@windows10:/mnt/d/lede/source$ cat build.log
make[1]: Entering directory '/mnt/d/lede/source'
make[2]: Entering directory '/mnt/d/lede/source'
+ mkdir -p /mnt/d/lede/source/staging_dir/target-mips_24kc_musl
+ cd /mnt/d/lede/source/staging_dir/target-mips_24kc_musl
+ mkdir -p bin lib include stamp
mkdir -p /mnt/d/lede/source/build_dir/target-mips_24kc_musl/stamp
touch /mnt/d/lede/source/staging_dir/target-mips_24kc_musl/.prepared
+ mkdir -p /mnt/d/lede/source/staging_dir/host
+ cd /mnt/d/lede/source/staging_dir/host
+ mkdir -p bin lib include stamp
mkdir -p /mnt/d/lede/source/build_dir/host/stamp /mnt/d/lede/source/staging_dir/host/include/sys
install -m0644 /mnt/d/lede/source/tools/include/*.h /mnt/d/lede/source/staging_dir/host/include/
install -m0644 /mnt/d/lede/source/tools/include/sys/*.h /mnt/d/lede/source/staging_dir/host/include/sys/
ln -sf lib /mnt/d/lede/source/staging_dir/host/lib64
touch /mnt/d/lede/source/staging_dir/host/.prepared
make[3]: Entering directory '/mnt/d/lede/source/tools/flock'
make[3]: Leaving directory '/mnt/d/lede/source/tools/flock'
make[3]: Entering directory '/mnt/d/lede/source/tools/sed'
make -C /mnt/d/lede/source/build_dir/host/sed-4.4 SHELL="bash"
make[4]: Entering directory '/mnt/d/lede/source/build_dir/host/sed-4.4'
cd . && bash /mnt/d/lede/source/build_dir/host/sed-4.4/build-aux/missing automake-1.99a --gnu Makefile
/mnt/d/lede/source/build_dir/host/sed-4.4/build-aux/missing: line 81: automake-1.99a: command not found
WARNING: 'automake-1.99a' is missing on your system.
You should only need it if you modified 'Makefile.am' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'automake' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
Makefile:2167: recipe for target 'Makefile.in' failed
make[4]: *** [Makefile.in] Error 127
make[4]: Leaving directory '/mnt/d/lede/source/build_dir/host/sed-4.4'
Makefile:45: recipe for target '/mnt/d/lede/source/build_dir/host/sed-4.4/.built' failed
make[3]: *** [/mnt/d/lede/source/build_dir/host/sed-4.4/.built] Error 2
make[3]: Leaving directory '/mnt/d/lede/source/tools/sed'
tools/Makefile:148: recipe for target 'tools/sed/compile' failed
make[2]: *** [tools/sed/compile] Error 2
make[2]: Leaving directory '/mnt/d/lede/source'
tools/Makefile:146: recipe for target '/mnt/d/lede/source/staging_dir/target-mips_24kc_musl/stamp/.tools_compile_yynyyyyynyyyyynyynnyyyyyyyyyyyyyyyyyyyynyynynyyyynny' failed
make[1]: *** [/mnt/d/lede/source/staging_dir/target-mips_24kc_musl/stamp/.tools_compile_yynyyyyynyyyyynyynnyyyyyyyyyyyyyyyyyyyynyynynyyyynny] Error 2
make[1]: Leaving directory '/mnt/d/lede/source'
/mnt/d/lede/source/include/toplevel.mk:206: recipe for target 'world' failed
make: *** [world] Error 2
Automake is installed fine (same as on my actual Ubuntu VM). I tried to add "PKG_FIXUP:=autoreconf" to sed's Makefile, but no success either. Any other ideas how to get past this?