Intrinsic has incorrect argument type! %struct._ZN10__cxxabiv19ExceptionE* (%struct._ZN10__cxxabiv19ExceptionE*, i32)* @llvm.cheerp.reallocate.p0s_struct._ZN10__cxxabiv19ExceptionEs.p0s_struct._ZN10__cxxabiv19ExceptionEs Cheerp Intrinsic should specify element type %14 = tail call i8* @llvm.cheerp.allocate.p0i8(i8* elementtype(i8) null, i32 %11) Intrinsic called with incompatible signature %15 = tail call i8* bitcast (i8* (i8*, i8*, i32)* @llvm.cheerp.reallocate.p0i8.p0i8 to i8* (i8*, i32)*)(i8* nonnull elementtype(i8) %12, i32 %11) /Applications/cheerp/bin/llvm-link: error: linked module is broken! make: *** [genericjs/libstdlibs.full.bc] Error 1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Applications/cheerp/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - failed -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /Users/ds/Development/cheerp/cheerp-libs/system/build_genericjs [ 25%] Building CXX object CMakeFiles/system.dir/common.cpp.obj In file included from /Users/ds/Development/cheerp/cheerp-libs/system/common.cpp:19: /Users/ds/Development/cheerp/cheerp-libs/system/impl.h:96:27: error: no member named 'utility' in namespace 'cheerp' messageBuffer = cheerp::utility::move(message); ~~~~~~~~^ /Users/ds/Development/cheerp/cheerp-libs/system/impl.h:108:26: error: no member named 'utility' in namespace 'cheerp' copiedBuffer = cheerp::utility::move(messageBuffer); ~~~~~~~~^ /Users/ds/Development/cheerp/cheerp-libs/system/common.cpp:286:15: error: no matching function for call to 'client_to_utf8' size_t len = client_to_utf8(dest, n, (*arr)[idx]); ^~~~~~~~~~~~~~ /Users/ds/Development/cheerp/cheerp-libs/system/common.cpp:220:37: note: candidate function not viable: no known conversion from 'client::String **' to 'const client::String *' for 3rd argument; dereference the argument with * [[cheerp::genericjs]] static size_t client_to_utf8(char *dest, size_t dlen, const client::String *str) { ^ /Users/ds/Development/cheerp/cheerp-libs/system/common.cpp:299:25: error: cannot initialize a variable of type 'const client::String *' with an rvalue of type 'client::String **' const client::String *arg = (*argv)[i]; ^ ~~~~~~~~~~ In file included from /Users/ds/Development/cheerp/cheerp-libs/system/common.cpp:14: In file included from /Applications/cheerp/bin/../include/client/cheerp/clientlib.h:14: /Applications/cheerp/bin/../include/client/cheerp/types.h:232:18: error: static_cast from 'client::Object *' to 'client::String **' is not allowed T* typeCheck = static_cast((client::Object*)nullptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ds/Development/cheerp/cheerp-libs/system/common.cpp:286:45: note: in instantiation of member function 'client::TArray::operator[]' requested here size_t len = client_to_utf8(dest, n, (*arr)[idx]); ^ 5 errors generated. make[2]: *** [CMakeFiles/system.dir/common.cpp.obj] Error 1 make[1]: *** [CMakeFiles/system.dir/all] Error 2 make: *** [all] Error 2 -- Install configuration: "" CMake Error at build_genericjs/cmake_install.cmake:41 (file): file INSTALL cannot find "/Users/ds/Development/cheerp/cheerp-libs/system/build_genericjs/libsystem.bc": No such file or directory. -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Applications/cheerp/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - failed -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /Users/ds/Development/cheerp/cheerp-libs/system/build_asmjs [ 10%] Building CXX object CMakeFiles/wasi.dir/common.cpp.obj In file included from /Users/ds/Development/cheerp/cheerp-libs/system/common.cpp:19: /Users/ds/Development/cheerp/cheerp-libs/system/impl.h:96:27: error: no member named 'utility' in namespace 'cheerp' messageBuffer = cheerp::utility::move(message); ~~~~~~~~^ /Users/ds/Development/cheerp/cheerp-libs/system/impl.h:108:26: error: no member named 'utility' in namespace 'cheerp' copiedBuffer = cheerp::utility::move(messageBuffer); ~~~~~~~~^ /Users/ds/Development/cheerp/cheerp-libs/system/common.cpp:286:15: error: no matching function for call to 'client_to_utf8' size_t len = client_to_utf8(dest, n, (*arr)[idx]); ^~~~~~~~~~~~~~ /Users/ds/Development/cheerp/cheerp-libs/system/common.cpp:220:37: note: candidate function not viable: no known conversion from 'client::String **' to 'const client::String *' for 3rd argument; dereference the argument with * [[cheerp::genericjs]] static size_t client_to_utf8(char *dest, size_t dlen, const client::String *str) { ^ /Users/ds/Development/cheerp/cheerp-libs/system/common.cpp:299:25: error: cannot initialize a variable of type 'const client::String *' with an rvalue of type 'client::String **' const client::String *arg = (*argv)[i]; ^ ~~~~~~~~~~ In file included from /Users/ds/Development/cheerp/cheerp-libs/system/common.cpp:14: In file included from /Applications/cheerp/bin/../include/client/cheerp/clientlib.h:14: /Applications/cheerp/bin/../include/client/cheerp/types.h:232:18: error: static_cast from 'client::Object *' to 'client::String **' is not allowed T* typeCheck = static_cast((client::Object*)nullptr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ds/Development/cheerp/cheerp-libs/system/common.cpp:286:45: note: in instantiation of member function 'client::TArray::operator[]' requested here size_t len = client_to_utf8(dest, n, (*arr)[idx]); ^ 5 errors generated. make[2]: *** [CMakeFiles/wasi.dir/common.cpp.obj] Error 1 make[1]: *** [CMakeFiles/wasi.dir/all] Error 2 make: *** [all] Error 2 -- Install configuration: "" CMake Error at build_asmjs/cmake_install.cmake:41 (file): file INSTALL cannot find "/Users/ds/Development/cheerp/cheerp-libs/system/build_asmjs/libsystem.bc": No such file or directory.