gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fno-omit-frame-pointer -O2 -I../../../src/include -D_GNU_SOURCE -I/usr/local/include -DNDEBUG -DLLVM_BUILD_GLOBAL_ISEL -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -c -o llvmjit.o llvmjit.c llvmjit.c: In function ‘llvm_get_function’: llvmjit.c:239:45: warning: passing argument 2 of ‘LLVMOrcGetSymbolAddress’ from incompatible pointer type [-Wincompatible-pointer-types] if (LLVMOrcGetSymbolAddress(llvm_opt0_orc, &addr, mangled)) ^ In file included from llvmjit.c:45:0: /usr/local/include/llvm-c/OrcBindings.h:129:22: note: expected ‘const char *’ but argument is of type ‘LLVMOrcTargetAddress * {aka long unsigned int *}’ LLVMOrcTargetAddress LLVMOrcGetSymbolAddress(LLVMOrcJITStackRef JITStack, ^~~~~~~~~~~~~~~~~~~~~~~ llvmjit.c:239:6: error: too many arguments to function ‘LLVMOrcGetSymbolAddress’ if (LLVMOrcGetSymbolAddress(llvm_opt0_orc, &addr, mangled)) ^~~~~~~~~~~~~~~~~~~~~~~ In file included from llvmjit.c:45:0: /usr/local/include/llvm-c/OrcBindings.h:129:22: note: declared here LLVMOrcTargetAddress LLVMOrcGetSymbolAddress(LLVMOrcJITStackRef JITStack, ^~~~~~~~~~~~~~~~~~~~~~~ llvmjit.c:243:45: warning: passing argument 2 of ‘LLVMOrcGetSymbolAddress’ from incompatible pointer type [-Wincompatible-pointer-types] if (LLVMOrcGetSymbolAddress(llvm_opt3_orc, &addr, mangled)) ^ In file included from llvmjit.c:45:0: /usr/local/include/llvm-c/OrcBindings.h:129:22: note: expected ‘const char *’ but argument is of type ‘LLVMOrcTargetAddress * {aka long unsigned int *}’ LLVMOrcTargetAddress LLVMOrcGetSymbolAddress(LLVMOrcJITStackRef JITStack, ^~~~~~~~~~~~~~~~~~~~~~~ llvmjit.c:243:6: error: too many arguments to function ‘LLVMOrcGetSymbolAddress’ if (LLVMOrcGetSymbolAddress(llvm_opt3_orc, &addr, mangled)) ^~~~~~~~~~~~~~~~~~~~~~~ In file included from llvmjit.c:45:0: /usr/local/include/llvm-c/OrcBindings.h:129:22: note: declared here LLVMOrcTargetAddress LLVMOrcGetSymbolAddress(LLVMOrcJITStackRef JITStack, ^~~~~~~~~~~~~~~~~~~~~~~ llvmjit.c: In function ‘llvm_compile_module’: llvmjit.c:383:3: error: unknown type name ‘LLVMSharedModuleRef’ LLVMSharedModuleRef smod; ^~~~~~~~~~~~~~~~~~~ llvmjit.c:388:10: warning: implicit declaration of function ‘LLVMOrcMakeSharedModule’ [-Wimplicit-function-declaration] smod = LLVMOrcMakeSharedModule(context->module); ^~~~~~~~~~~~~~~~~~~~~~~ llvmjit.c:389:48: warning: passing argument 2 of ‘LLVMOrcAddEagerlyCompiledIR’ from incompatible pointer type [-Wincompatible-pointer-types] if (LLVMOrcAddEagerlyCompiledIR(compile_orc, &orc_handle, smod, ^ In file included from llvmjit.c:45:0: /usr/local/include/llvm-c/OrcBindings.h:98:1: note: expected ‘LLVMModuleRef {aka struct LLVMOpaqueModule *}’ but argument is of type ‘LLVMOrcModuleHandle * {aka unsigned int *}’ LLVMOrcAddEagerlyCompiledIR(LLVMOrcJITStackRef JITStack, LLVMModuleRef Mod, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ llvmjit.c:389:61: warning: passing argument 3 of ‘LLVMOrcAddEagerlyCompiledIR’ makes pointer from integer without a cast [-Wint-conversion] if (LLVMOrcAddEagerlyCompiledIR(compile_orc, &orc_handle, smod, ^~~~ In file included from llvmjit.c:45:0: /usr/local/include/llvm-c/OrcBindings.h:98:1: note: expected ‘LLVMOrcSymbolResolverFn {aka long unsigned int (*)(const char *, void *)}’ but argument is of type ‘int’ LLVMOrcAddEagerlyCompiledIR(LLVMOrcJITStackRef JITStack, LLVMModuleRef Mod, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ llvmjit.c:389:7: error: too many arguments to function ‘LLVMOrcAddEagerlyCompiledIR’ if (LLVMOrcAddEagerlyCompiledIR(compile_orc, &orc_handle, smod, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from llvmjit.c:45:0: /usr/local/include/llvm-c/OrcBindings.h:98:1: note: declared here LLVMOrcAddEagerlyCompiledIR(LLVMOrcJITStackRef JITStack, LLVMModuleRef Mod, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ llvmjit.c:394:3: warning: implicit declaration of function ‘LLVMOrcDisposeSharedModuleRef’ [-Wimplicit-function-declaration] LLVMOrcDisposeSharedModuleRef(smod); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [: llvmjit.o] Error 1