I'm testing out the new Linux Subsystem beta on Windows 10 Build 14316 with installing the KnightOS SDK. I installed all the required packages and then when I try installing the KnightOS SDK, I get the following error:
Can someone please help me fix this error?
Code Select
root@localhost:~# curl -s http://www.knightos.org/install-sdk | bash
6.7.7
Downloading genkfs...
Compiling genkfs...
Installing genkfs...
[ 50%] Built target genkfs
[100%] Built target man
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/bin/genkfs
-- Installing: /usr/local/man/man1/genkfs.1
Downloading mktiupgrade...
Compiling mktiupgrade...
Installing mktiupgrade...
[ 0%] Built target man
[100%] Built target mktiupgrade
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/bin/mktiupgrade
-- Installing: /usr/local/man/man1/mktiupgrade.1
Downloading kpack...
Compiling kpack...
Installing kpack...
[ 66%] Built target kpack
[100%] Built target man
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/bin/kpack
-- Installing: /usr/local/man/man1/kpack.1
-- Installing: /usr/local/man/man5/kpack.5
Downloading kimg...
Compiling kimg...
Installing kimg...
[ 50%] Built target kimg
[100%] Built target man
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/bin/kimg
-- Installing: /usr/local/man/man1/kimg.1
Downloading sass...
Compiling sass...
Installing sass...
mkdir -p /usr/bin/
mkdir -p /usr/mono/
install -c -m 775 sass/bin/Debug/sass.exe /usr/mono/sass.exe
printf "#!/bin/sh\nmono /usr/mono/sass.exe \$*" > /usr/bin/sass
chmod +x /usr/bin/sass
Downloading scas...
Compiling scas...
[ 1%] Generating tables/z80.c /tmp/SDK.VEbSXw/scas/tables/z80.tab /tmp/SDK.VEbSXw/scas/tables/z80.c Scanning dependencies of target libscas [ 2%] Building C object CMakeFiles/libscas.dir/common/errors.c.o [ 3%] Building C object CMakeFiles/libscas.dir/common/expression.c.o [ 5%] Building C object CMakeFiles/libscas.dir/common/functions.c.o [ 6%] Building C object CMakeFiles/libscas.dir/common/hashtable.c.o [ 7%] Building C object CMakeFiles/libscas.dir/common/list.c.o /tmp/SDK.VEbSXw/scas/common/list.c: In function 'list_foreach': /tmp/SDK.VEbSXw/scas/common/list.c:33:2: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < list->length; i++) { ^ /tmp/SDK.VEbSXw/scas/common/list.c:33:2: note: use option -std=c99 or -std=gnu99 to compile your code /tmp/SDK.VEbSXw/scas/common/list.c: In function 'list_seq_find': /tmp/SDK.VEbSXw/scas/common/list.c:67:2: error: 'for' loop initial declarations are only allowed in C99 mode for (int i = 0; i < list->length; i++) { ^ make[2]: assembler bin CMakeCache.txt CMakeFiles cmake_install.cmake CMakeLists.txt common doc generate-tables.sh include LICENSE linker Makefile README.md runtime.c scas scas.1.txt scdump scdump.1.txt scwrap scwrap.1.txt tables [CMakeFiles/libscas.dir/common/list.c.o] Error 1 make[1]: assembler bin CMakeCache.txt CMakeFiles cmake_install.cmake CMakeLists.txt common doc generate-tables.sh include LICENSE linker Makefile README.md runtime.c scas scas.1.txt scdump scdump.1.txt scwrap scwrap.1.txt tables [CMakeFiles/libscas.dir/all] Error 2 make: assembler bin CMakeCache.txt CMakeFiles cmake_install.cmake CMakeLists.txt common doc generate-tables.sh include LICENSE linker Makefile README.md runtime.c scas scas.1.txt scdump scdump.1.txt scwrap scwrap.1.txt tables [all] Error 2
root@localhost:~#
Can someone please help me fix this error?