Kode / Krom

Other
96 stars 23 forks source link

Could not build on linux #133

Closed ks-zealot closed 4 years ago

ks-zealot commented 5 years ago

Build failed for master branch.

log

node Kinc/make --compiler clang --compile
kincfile found.
Creating Linux project files.
Compiling shader 1 of 10 (g1.frag).
Compiling shader 2 of 10 (g1.vert).
Compiling shader 3 of 10 (painter-colored.frag).
Compiling shader 4 of 10 (painter-colored.vert).
Compiling shader 5 of 10 (painter-image.frag).
Compiling shader 6 of 10 (painter-image.vert).
Compiling shader 7 of 10 (painter-text.frag).
Compiling shader 8 of 10 (painter-text.vert).
Compiling shader 9 of 10 (painter-video.frag).
Compiling shader 10 of 10 (painter-video.vert).
Compiling...
clang++  -O2 -I./ -I../../Chakra/Build/prebuilt/Linux -I../../Chakra/lib/Common -I../../Chakra/lib/Common/PlaceHolder -I../../Chakra/lib/Runtime -I../../Chakra/lib/Runtime/ByteCode -I../../Chakra/lib/Runtime/Math -I../../Chakra/lib/Jsrt -I../../Chakra/lib/Parser -I../../Chakra/lib/Backend -I../../Chakra/lib/WasmReader -I../../Chakra/lib/wabt/chakra -I../../Chakra/lib/Backend/amd64 -I../../Chakra/lib -I../../Chakra/lib/Runtime/Debug -I../../Chakra/lib/Runtime/Base -I../../Chakra/bin/ChakraCore -I../../Chakra/bin/NativeTests -I../../Chakra/bin/External -I../../Chakra/lib/Runtime/PlatformAgnostic -I../../Chakra/lib/Common/Memory -I../../Chakra/lib/Runtime/Language -I../../Chakra/lib/wabt -I../../Chakra/lib/wabt/chakra/windows -I../../Chakra/pal -I../../Chakra/pal/inc -I../../Chakra/pal/inc/rt -I../../Chakra/pal/src/include -I../../Kinc/Sources -I../../Kinc/Backends/System/Linux/Sources -I../../Kinc/Backends/System/POSIX/Sources -I../../Kinc/Backends/Graphics4/OpenGL/Sources -I../../Kinc/Backends/Graphics5/G5onG4/Sources -I../../Kinc/Backends/Audio3/A3onA2/Sources  -DUNICODE -DNOMINMAX -DUSE_EDGEMODE_JSRT -DCOM_STDMETHOD_CAN_THROW -DUSE_STATIC_RUNTIMELIB -D_CHAKRACOREBUILD -DTARGET_64 -DPLATFORM_UNIX -DFEATURE_PAL -DPLATFORM_UNIX=1 -D_M_X64 -D_M_AMD64 -D_AMD64_ -D_SAFECRT_USE_CPP_OVERLOADS=1 -D__STDC_WANT_LIB_EXT1__=1 -DCLANG_HAS_DISABLE_TAIL_CALLS=1 -DBIT64=1 -DSTACK_ALIGN=16 -DLP64COMPATIBLE=1 -DFEATURE_PAL=1 -DPIC=1 -D_FILE_OFFSET_BITS=64 -D_WIN64=1 -DNO_PAL_MINMAX -D_ENABLE_DYNAMIC_THUNKS=1 -D__LINUX__=1 -DLINUX64 -DKORE_G1 -DKORE_G2 -DKORE_G3 -DKORE_A1 -DKORE_A2 -DKORE_LINUX -DKORE_OPENGL -DKORE_POSIX -DKORE_G4 -DKORE_G5 -DKORE_G5ONG4 -DKORE_A3  -fno-omit-frame-pointer -fdelayed-template-parsing -msse4.2 -fasm-blocks -fms-extensions -fwrapv -fPIC -std=gnu++11 -fdiagnostics-color=always -Wno-invalid-token-paste -Wno-return-type -Wno-address-of-temporary -fno-builtin -fstack-protector -Wno-unused-value -Wno-microsoft-template -Wno-invalid-offsetof -Wno-microsoft-sealed -Wno-inconsistent-missing-override  -c ../../Sources/main.cpp -o main.o -static-libgcc -static-libstdc++ -pthread -lasound -ldl -lGL -lX11 -lXinerama -lXi
clang  -O2 -I./ -I../../Chakra/Build/prebuilt/Linux -I../../Chakra/lib/Common -I../../Chakra/lib/Common/PlaceHolder -I../../Chakra/lib/Runtime -I../../Chakra/lib/Runtime/ByteCode -I../../Chakra/lib/Runtime/Math -I../../Chakra/lib/Jsrt -I../../Chakra/lib/Parser -I../../Chakra/lib/Backend -I../../Chakra/lib/WasmReader -I../../Chakra/lib/wabt/chakra -I../../Chakra/lib/Backend/amd64 -I../../Chakra/lib -I../../Chakra/lib/Runtime/Debug -I../../Chakra/lib/Runtime/Base -I../../Chakra/bin/ChakraCore -I../../Chakra/bin/NativeTests -I../../Chakra/bin/External -I../../Chakra/lib/Runtime/PlatformAgnostic -I../../Chakra/lib/Common/Memory -I../../Chakra/lib/Runtime/Language -I../../Chakra/lib/wabt -I../../Chakra/lib/wabt/chakra/windows -I../../Chakra/pal -I../../Chakra/pal/inc -I../../Chakra/pal/inc/rt -I../../Chakra/pal/src/include -I../../Kinc/Sources -I../../Kinc/Backends/System/Linux/Sources -I../../Kinc/Backends/System/POSIX/Sources -I../../Kinc/Backends/Graphics4/OpenGL/Sources -I../../Kinc/Backends/Graphics5/G5onG4/Sources -I../../Kinc/Backends/Audio3/A3onA2/Sources  -DUNICODE -DNOMINMAX -DUSE_EDGEMODE_JSRT -DCOM_STDMETHOD_CAN_THROW -DUSE_STATIC_RUNTIMELIB -D_CHAKRACOREBUILD -DTARGET_64 -DPLATFORM_UNIX -DFEATURE_PAL -DPLATFORM_UNIX=1 -D_M_X64 -D_M_AMD64 -D_AMD64_ -D_SAFECRT_USE_CPP_OVERLOADS=1 -D__STDC_WANT_LIB_EXT1__=1 -DCLANG_HAS_DISABLE_TAIL_CALLS=1 -DBIT64=1 -DSTACK_ALIGN=16 -DLP64COMPATIBLE=1 -DFEATURE_PAL=1 -DPIC=1 -D_FILE_OFFSET_BITS=64 -D_WIN64=1 -DNO_PAL_MINMAX -D_ENABLE_DYNAMIC_THUNKS=1 -D__LINUX__=1 -DLINUX64 -DKORE_G1 -DKORE_G2 -DKORE_G3 -DKORE_A1 -DKORE_A2 -DKORE_LINUX -DKORE_OPENGL -DKORE_POSIX -DKORE_G4 -DKORE_G5 -DKORE_G5ONG4 -DKORE_A3  -std=c99-msse4.2 -fasm-blocks -fwrapv -fms-extensions -fdiagnostics-color=always -fPIC -fno-builtin -fstack-protector  -c ../../Sources/watcher_mac.c -o watcher_mac.o -static-libgcc -static-libstdc++ -pthread -lasound -ldl -lGL -lX11 -lXinerama -lXi
clang  -O2 -I./ -I../../Chakra/Build/prebuilt/Linux -I../../Chakra/lib/Common -I../../Chakra/lib/Common/PlaceHolder -I../../Chakra/lib/Runtime -I../../Chakra/lib/Runtime/ByteCode -I../../Chakra/lib/Runtime/Math -I../../Chakra/lib/Jsrt -I../../Chakra/lib/Parser -I../../Chakra/lib/Backend -I../../Chakra/lib/WasmReader -I../../Chakra/lib/wabt/chakra -I../../Chakra/lib/Backend/amd64 -I../../Chakra/lib -I../../Chakra/lib/Runtime/Debug -I../../Chakra/lib/Runtime/Base -I../../Chakra/bin/ChakraCore -I../../Chakra/bin/NativeTests -I../../Chakra/bin/External -I../../Chakra/lib/Runtime/PlatformAgnostic -I../../Chakra/lib/Common/Memory -I../../Chakra/lib/Runtime/Language -I../../Chakra/lib/wabt -I../../Chakra/lib/wabt/chakra/windows -I../../Chakra/pal -I../../Chakra/pal/inc -I../../Chakra/pal/inc/rt -I../../Chakra/pal/src/include -I../../Kinc/Sources -I../../Kinc/Backends/System/Linux/Sources -I../../Kinc/Backends/System/POSIX/Sources -I../../Kinc/Backends/Graphics4/OpenGL/Sources -I../../Kinc/Backends/Graphics5/G5onG4/Sources -I../../Kinc/Backends/Audio3/A3onA2/Sources  -DUNICODE -DNOMINMAX -DUSE_EDGEMODE_JSRT -DCOM_STDMETHOD_CAN_THROW -DUSE_STATIC_RUNTIMELIB -D_CHAKRACOREBUILD -DTARGET_64 -DPLATFORM_UNIX -DFEATURE_PAL -DPLATFORM_UNIX=1 -D_M_X64 -D_M_AMD64 -D_AMD64_ -D_SAFECRT_USE_CPP_OVERLOADS=1 -D__STDC_WANT_LIB_EXT1__=1 -DCLANG_HAS_DISABLE_TAIL_CALLS=1 -DBIT64=1 -DSTACK_ALIGN=16 -DLP64COMPATIBLE=1 -DFEATURE_PAL=1 -DPIC=1 -D_FILE_OFFSET_BITS=64 -D_WIN64=1 -DNO_PAL_MINMAX -D_ENABLE_DYNAMIC_THUNKS=1 -D__LINUX__=1 -DLINUX64 -DKORE_G1 -DKORE_G2 -DKORE_G3 -DKORE_A1 -DKORE_A2 -DKORE_LINUX -DKORE_OPENGL -DKORE_POSIX -DKORE_G4 -DKORE_G5 -DKORE_G5ONG4 -DKORE_A3   -c ../../Chakra/pal/src/arch/i386/context2.S -o context2.o -static-libgcc -static-libstdc++ -pthread -lasound -ldl -lGL -lX11 -lXinerama -lXi
clang  -O2 -I./ -I../../Chakra/Build/prebuilt/Linux -I../../Chakra/lib/Common -I../../Chakra/lib/Common/PlaceHolder -I../../Chakra/lib/Runtime -I../../Chakra/lib/Runtime/ByteCode -I../../Chakra/lib/Runtime/Math -I../../Chakra/lib/Jsrt -I../../Chakra/lib/Parser -I../../Chakra/lib/Backend -I../../Chakra/lib/WasmReader -I../../Chakra/lib/wabt/chakra -I../../Chakra/lib/Backend/amd64 -I../../Chakra/lib -I../../Chakra/lib/Runtime/Debug -I../../Chakra/lib/Runtime/Base -I../../Chakra/bin/ChakraCore -I../../Chakra/bin/NativeTests -I../../Chakra/bin/External -I../../Chakra/lib/Runtime/PlatformAgnostic -I../../Chakra/lib/Common/Memory -I../../Chakra/lib/Runtime/Language -I../../Chakra/lib/wabt -I../../Chakra/lib/wabt/chakra/windows -I../../Chakra/pal -I../../Chakra/pal/inc -I../../Chakra/pal/inc/rt -I../../Chakra/pal/src/include -I../../Kinc/Sources -I../../Kinc/Backends/System/Linux/Sources -I../../Kinc/Backends/System/POSIX/Sources -I../../Kinc/Backends/Graphics4/OpenGL/Sources -I../../Kinc/Backends/Graphics5/G5onG4/Sources -I../../Kinc/Backends/Audio3/A3onA2/Sources  -DUNICODE -DNOMINMAX -DUSE_EDGEMODE_JSRT -DCOM_STDMETHOD_CAN_THROW -DUSE_STATIC_RUNTIMELIB -D_CHAKRACOREBUILD -DTARGET_64 -DPLATFORM_UNIX -DFEATURE_PAL -DPLATFORM_UNIX=1 -D_M_X64 -D_M_AMD64 -D_AMD64_ -D_SAFECRT_USE_CPP_OVERLOADS=1 -D__STDC_WANT_LIB_EXT1__=1 -DCLANG_HAS_DISABLE_TAIL_CALLS=1 -DBIT64=1 -DSTACK_ALIGN=16 -DLP64COMPATIBLE=1 -DFEATURE_PAL=1 -DPIC=1 -D_FILE_OFFSET_BITS=64 -D_WIN64=1 -DNO_PAL_MINMAX -D_ENABLE_DYNAMIC_THUNKS=1 -D__LINUX__=1 -DLINUX64 -DKORE_G1 -DKORE_G2 -DKORE_G3 -DKORE_A1 -DKORE_A2 -DKORE_LINUX -DKORE_OPENGL -DKORE_POSIX -DKORE_G4 -DKORE_G5 -DKORE_G5ONG4 -DKORE_A3   -c ../../Chakra/pal/src/arch/i386/debugbreak.S -o debugbreak.o -static-libgcc -static-libstdc++ -pthread -lasound -ldl -lGL -lX11 -lXinerama -lXi
clangclang: clang: : warningwarning: -lasound: 'linker' input unused [-Wunused-command-line-argument]
warning: -lasound: 'linker' input unused [-Wunused-command-line-argument]clang
: warning: -ldl: 'linker' input unused [-Wunused-command-line-argument]
clang: warningclang: : -lGL: 'linker' input unused [-Wunused-command-line-argument]
warning: clang: -ldl: 'linker' input unused [-Wunused-command-line-argument]warning: 
-lX11: 'linker' input unused [-Wunused-command-line-argument]
clangclang: : warningwarning: : -lXinerama: 'linker' input unused [-Wunused-command-line-argument]
clang: warning-lGL: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lX11: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lXinerama: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lXi: 'linker' input unused [-Wunused-command-line-argument]: 
-lXi: 'linker' input unused [-Wunused-command-line-argument]
: -lasound: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -ldl: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lGL: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lX11: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lXinerama: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lXi: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lasound: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -ldl: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lGL: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lX11: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lXinerama: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lXi: 'linker' input unused [-Wunused-command-line-argument]
clangclang: warning: argument unused during compilation: '-static-libgcc' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-static-libgcc' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-static-libgcc' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
: warning: argument unused during compilation: '-static-libgcc' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
error: invalid value 'c99-msse4.2' in '-std=c99-msse4.2'
note: use 'c89', 'c90', or 'iso9899:1990' for 'ISO C 1990' standard
note: use 'iso9899:199409' for 'ISO C 1990 with amendment 1' standard
note: use 'gnu89' or 'gnu90' for 'ISO C 1990 with GNU extensions' standard
note: use 'c99' or 'iso9899:1999' for 'ISO C 1999' standard
note: use 'gnu99' for 'ISO C 1999 with GNU extensions' standard
note: use 'c11' or 'iso9899:2011' for 'ISO C 2011' standard
note: use 'gnu11' for 'ISO C 2011 with GNU extensions' standard
note: use 'c17', 'iso9899:2017', 'c18', or 'iso9899:2018' for 'ISO C 2017' standard
note: use 'gnu17' or 'gnu18' for 'ISO C 2017 with GNU extensions' standard
note: use 'c2x' for 'Working Draft for ISO C2x' standard
note: use 'gnu2x' for 'Working Draft for ISO C2x with GNU extensions' standard
makefile:32: ошибка выполнения рецепта для цели «watcher_mac.o»
make: *** [watcher_mac.o] Ошибка 1
make: *** Ожидание завершения заданий…
../../Sources/main.cpp:3139:39: warning: multi-character character constant [-Wmultichar]
                                        size_t first = line.find_last_of(' = ');
                                                                         ^
../../Sources/main.cpp:3144:39: warning: multi-character character constant [-Wmultichar]
                                        size_t first = line.find_last_of(' = ');
                                                                         ^
../../Sources/main.cpp:3155:24: warning: multi-character character constant [-Wmultichar]
                                        first = line.find('var') + 1;
                                                          ^
../../Sources/main.cpp:3287:22: error: no member named 'count' in namespace 'std'
                                brackets += std::count(line.begin(), line.end(), '{');
                                            ~~~~~^
../../Sources/main.cpp:3288:22: error: no member named 'count' in namespace 'std'
                                brackets -= std::count(line.begin(), line.end(), '}');
                                            ~~~~~^
../../Sources/main.cpp:3322:22: error: no member named 'count' in namespace 'std'
                                brackets += std::count(line.begin(), line.end(), '{');
                                            ~~~~~^
../../Sources/main.cpp:3323:22: error: no member named 'count' in namespace 'std'
                                brackets -= std::count(line.begin(), line.end(), '}');
                                            ~~~~~^
../../Sources/main.cpp:3356:22: error: no member named 'count' in namespace 'std'
                                brackets += std::count(line.begin(), line.end(), '{');
                                            ~~~~~^
../../Sources/main.cpp:3357:22: error: no member named 'count' in namespace 'std'
                                brackets -= std::count(line.begin(), line.end(), '}');
                                            ~~~~~^
../../Sources/main.cpp:3139:39: warning: implicit conversion from 'int' to 'char' changes value from 2112800 to 32 [-Wconstant-conversion]
                                        size_t first = line.find_last_of(' = ');
                                                            ~~~~~~~~~~~~ ^~~~~
../../Sources/main.cpp:3144:39: warning: implicit conversion from 'int' to 'char' changes value from 2112800 to 32 [-Wconstant-conversion]
                                        size_t first = line.find_last_of(' = ');
                                                            ~~~~~~~~~~~~ ^~~~~
../../Sources/main.cpp:3155:24: warning: implicit conversion from 'int' to 'char' changes value from 7758194 to 114 [-Wconstant-conversion]
                                        first = line.find('var') + 1;
                                                     ~~~~ ^~~~~
6 warnings and 6 errors generated.
makefile:17: error goal «main.o»
make: *** [main.o] Error 1
Compilation failed.

uname -a Linux zealot 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux

clang --version clang version 9.0.0-svn364966-1~exp1+0~20190702204433.1332~1.gbpb44072 (trunk) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin

RobDangerous commented 4 years ago

Guess that's fixed.

md-fahad-ali commented 6 months ago

hey can anyone help me to build on fedora 38 linux I got this issue node Kinc/make -g opengl --compiler clang --compile

/home/fahad/armortools/armorcore/Kinc/make:3 . dirname "$0"/Tools/platform.sh ^

SyntaxError: Unexpected token '.' at internalCompileFunction (node:internal/vm:73:18) at wrapSafe (node:internal/modules/cjs/loader:1178:20) at Module._compile (node:internal/modules/cjs/loader:1220:27) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47

Node.js v18.17.1

sh-dave commented 6 months ago

You don't need an installed version of nodejs any longer and can call Kinc/make directly, i.e. Kinc/make -g opengl --compiler clang --compile

md-fahad-ali commented 6 months ago

I done this in other way but cant set strip ArmorPaint