Skip to content

Commit 09edfeb

Browse files
miojirutka
authored andcommitted
community/wasm-micro-runtime: build with non-default llvm
Building with llvm 21 results in the error below. Support for llvm 21 upstream is in progress but does not appear to be ready at this time. Rebuild with llvm 20 for now. ``` /home/buildozer/aports/community/wasm-micro-runtime/src/wasm-micro-runtime-WAMR-2.3.0/core/iwasm/compilation/aot_llvm.c: In function 'aot_create_comp_context': /home/buildozer/aports/community/wasm-micro-runtime/src/wasm-micro-runtime-WAMR-2.3.0/core/iwasm/compilation/aot_llvm.c:2580:31: error: implicit declaration of function 'LLVMOrcThreadSafeContextGetContext' [-Wimplicit-function-declaration] 2580 | if (!(comp_ctx->context = LLVMOrcThreadSafeContextGetContext( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildozer/aports/community/wasm-micro-runtime/src/wasm-micro-runtime-WAMR-2.3.0/core/iwasm/compilation/aot_llvm.c:2580:29: error: assignment to 'LLVMContextRef' {aka 'struct LLVMOpaqueContext *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 2580 | if (!(comp_ctx->context = LLVMOrcThreadSafeContextGetContext( | ^ ``` Ref: bytecodealliance/wasm-micro-runtime#4654
1 parent de33a7a commit 09edfeb

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

community/wasm-micro-runtime/APKBUILD

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22
# Maintainer: Jakub Jirutka <[email protected]>
33
pkgname=wasm-micro-runtime
44
pkgver=2.3.0
5-
pkgrel=0
5+
pkgrel=1
66
pkgdesc="WebAssembly Micro Runtime (WAMR)"
77
url="https://github.com/bytecodealliance/wasm-micro-runtime"
88
# loongarch64,ppc64le,s390x: not supported by upstream
99
arch="all !loongarch64 !ppc64le !s390x"
1010
license="Apache-2.0"
11+
# LLVM 21 support in progress
12+
# https://github.com/bytecodealliance/wasm-micro-runtime/pull/4654
13+
_llvmver=20
1114
makedepends="
1215
cmake
13-
llvm-dev
14-
llvm-static
15-
llvm-gtest
16+
llvm$_llvmver-dev
17+
llvm$_llvmver-static
18+
llvm$_llvmver-gtest
1619
samurai
1720
"
1821
checkdepends="bash"

0 commit comments

Comments
 (0)