Comments (11)
A little update. After I set some compiler options in cmake file it shows:
from wasm-micro-runtime.
Hi, thanks for reporting the issue, could you try the below patch:
diff --git a/core/shared/platform/esp-idf/espidf_memmap.c b/core/shared/platform/esp-idf/espidf_memmap.c
index 9f3ec47a..6b1b6f04 100644
--- a/core/shared/platform/esp-idf/espidf_memmap.c
+++ b/core/shared/platform/esp-idf/espidf_memmap.c
@@ -59,6 +59,12 @@ os_mmap(void *hint, size_t size, int prot, int flags, os_file_handle file)
}
}
+void *
+os_mremap(void *old_addr, size_t old_size, size_t new_size)
+{
+ return os_mremap_slow(old_addr, old_size, new_size);
+}
+
void
os_munmap(void *addr, size_t size)
{
diff --git a/core/shared/platform/esp-idf/platform_internal.h b/core/shared/platform/esp-idf/platform_internal.h
index 70c4fe7b..91a3f801 100644
--- a/core/shared/platform/esp-idf/platform_internal.h
+++ b/core/shared/platform/esp-idf/platform_internal.h
@@ -109,6 +109,8 @@ typedef unsigned int korp_sem;
#define DT_LNK DTYPE_LINK
#define DT_SOCK DTYPE_SOCK
+#define os_getpagesize getpagesize
+
typedef int os_file_handle;
typedef DIR *os_dir_stream;
typedef int os_raw_file_handle;
from wasm-micro-runtime.
Hi, thx for the quick reply! I tried your patch.
For the example from WAMR repo it still complains.
from wasm-micro-runtime.
Could you try:
diff --git a/core/shared/platform/esp-idf/espidf_platform.c b/core/shared/platform/esp-idf/espidf_platform.c
index 8d3a9b87..9c0d02e6 100644
--- a/core/shared/platform/esp-idf/espidf_platform.c
+++ b/core/shared/platform/esp-idf/espidf_platform.c
@@ -234,7 +234,7 @@ unlinkat(int fd, const char *path, int flag)
}
int
-utimensat(int fd, const char *path, const struct timespec *ts, int flag)
+utimensat(int fd, const char *path, const struct timespec ts[2], int flag)
{
errno = ENOSYS;
return -1;
@@ -257,7 +257,7 @@ ftruncate(int fd, off_t length)
#endif
int
-futimens(int fd, const struct timespec *times)
+futimens(int fd, const struct timespec times[2])
{
errno = ENOSYS;
return -1;
from wasm-micro-runtime.
Could you try:
diff --git a/core/shared/platform/esp-idf/espidf_platform.c b/core/shared/platform/esp-idf/espidf_platform.c index 8d3a9b87..9c0d02e6 100644 --- a/core/shared/platform/esp-idf/espidf_platform.c +++ b/core/shared/platform/esp-idf/espidf_platform.c @@ -234,7 +234,7 @@ unlinkat(int fd, const char *path, int flag) } int -utimensat(int fd, const char *path, const struct timespec *ts, int flag) +utimensat(int fd, const char *path, const struct timespec ts[2], int flag) { errno = ENOSYS; return -1; @@ -257,7 +257,7 @@ ftruncate(int fd, off_t length) #endif int -futimens(int fd, const struct timespec *times) +futimens(int fd, const struct timespec times[2]) { errno = ENOSYS; return -1;
Hi Thank you! It works but new issue occurs as below:
from wasm-micro-runtime.
Hi, depth
should have been set in L11433 read_leb_uint32(p, p_end, depth)
, not sure why the compiler reports the warning. Please initialize it with 0:
diff --git a/core/iwasm/interpreter/wasm_loader.c b/core/iwasm/interpreter/wasm_loader.c
index 8bf2ed92..d9ea015b 100644
--- a/core/iwasm/interpreter/wasm_loader.c
+++ b/core/iwasm/interpreter/wasm_loader.c
@@ -11412,7 +11412,7 @@ re_scan:
case WASM_OP_BR_TABLE:
{
- uint32 depth, default_arity, arity = 0;
+ uint32 depth = 0, default_arity, arity = 0;
BranchBlock *target_block;
BlockType *target_block_type;
#if WASM_ENABLE_FAST_INTERP == 0
from wasm-micro-runtime.
Hi, yeah its weird. And now it shows:
from wasm-micro-runtime.
@TAOFOR4 Could you please try #3224?
from wasm-micro-runtime.
Hi, it works well now :) Thx for help! Btw, will WAMR add support for ESP C6? I noticed that right now it only supports ESP32 and ESP32 C3. Thank you!
from wasm-micro-runtime.
Hi, it works well now :) Thx for help! Btw, will WAMR add support for ESP C6? I noticed that right now it only supports ESP32 and ESP32 C3. Thank you!
Welcome, currently no plan to support ESP C6 yet. Maybe you can have a try and help commit the code? It would be greatly appreciated.
from wasm-micro-runtime.
Hi, it works well now :) Thx for help! Btw, will WAMR add support for ESP C6? I noticed that right now it only supports ESP32 and ESP32 C3. Thank you!
Welcome, currently no plan to support ESP C6 yet. Maybe you can have a try and help commit the code? It would be greatly appreciated.
My pleasure. I will look into that part.
from wasm-micro-runtime.
Related Issues (20)
- An invalid section specifier `.aot_stack_sizes` HOT 1
- AOT module load failed: resolve symbol __atomic_compare_exchange_4 failed HOT 7
- The qWasmStackValue command is missing during runtime debugging
- AOT_SECTION_TYPE_SIGNATURE HOT 2
- WASI sockets: POSIX platform `os_socket_recvfrom` unintended behavior HOT 7
- sysbench mutex workload is taking more execution time with iwasm than native x86_64 execution HOT 2
- sysbench memory and threads workload is giving less benchmarking results with iwasm than native aarch64 gcc execution HOT 11
- Updating Exception Handling in WAMR HOT 20
- [RFC] Option to reduce code size of the generated AOT file when stack trace is enabled HOT 7
- sysbench wasm module of CPU workload is giving unexpected results than native gcc compiled sysbench cpu workload.
- MIPS32 support / alignment issues HOT 11
- [RFC] Table64 extension for Memory64 proposal
- CI: "spec test on nuttx" riscv job is failing frequently HOT 12
- Access to call stack when calling native functions HOT 5
- wamr windows build error with clang HOT 1
- [RFC] Add SIMD128 support in the interpreters HOT 3
- wamr windows build error with UVWASI HOT 6
- [RFC] Support instantiation linking
- clang asan Segmentation fault. HOT 2
- clang & windows build should use longjmp HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasm-micro-runtime.