-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run nostdlib wasm app fail #2440
Comments
@yangyalei Please notice that your |
Is the --heap-size param must be add when run wasm? I have enabled libc-wasi and libc-builtin. By the way, if build wasm app with -nostdlib param, Is it just relay on libc-builtin in |
Only needed if libc-wasi enabled and you want to run application with libc-builitn, please see: #2346
REG_NATIVE_FUNC(args_get, "(**)i"),
REG_NATIVE_FUNC(args_sizes_get, "(**)i"),
REG_NATIVE_FUNC(clock_res_get, "(i*)i"),
REG_NATIVE_FUNC(clock_time_get, "(iI*)i"),
REG_NATIVE_FUNC(environ_get, "(**)i"),
REG_NATIVE_FUNC(environ_sizes_get, "(**)i"),
REG_NATIVE_FUNC(fd_prestat_get, "(i*)i"),
REG_NATIVE_FUNC(fd_prestat_dir_name, "(i*~)i"),
REG_NATIVE_FUNC(fd_close, "(i)i"),
REG_NATIVE_FUNC(fd_datasync, "(i)i"),
REG_NATIVE_FUNC(fd_pread, "(i*iI*)i"),
REG_NATIVE_FUNC(fd_pwrite, "(i*iI*)i"),
REG_NATIVE_FUNC(fd_read, "(i*i*)i"),
REG_NATIVE_FUNC(fd_renumber, "(ii)i"),
REG_NATIVE_FUNC(fd_seek, "(iIi*)i"),
REG_NATIVE_FUNC(fd_tell, "(i*)i"),
REG_NATIVE_FUNC(fd_fdstat_get, "(i*)i"),
REG_NATIVE_FUNC(fd_fdstat_set_flags, "(ii)i"),
REG_NATIVE_FUNC(fd_fdstat_set_rights, "(iII)i"),
REG_NATIVE_FUNC(fd_sync, "(i)i"),
REG_NATIVE_FUNC(fd_write, "(i*i*)i"),
REG_NATIVE_FUNC(fd_advise, "(iIIi)i"),
REG_NATIVE_FUNC(fd_allocate, "(iII)i"),
REG_NATIVE_FUNC(path_create_directory, "(i*~)i"),
REG_NATIVE_FUNC(path_link, "(ii*~i*~)i"),
REG_NATIVE_FUNC(path_open, "(ii*~iIIi*)i"),
REG_NATIVE_FUNC(fd_readdir, "(i*~I*)i"),
REG_NATIVE_FUNC(path_readlink, "(i*~*~*)i"),
REG_NATIVE_FUNC(path_rename, "(i*~i*~)i"),
REG_NATIVE_FUNC(fd_filestat_get, "(i*)i"),
REG_NATIVE_FUNC(fd_filestat_set_times, "(iIIi)i"),
REG_NATIVE_FUNC(fd_filestat_set_size, "(iI)i"),
REG_NATIVE_FUNC(path_filestat_get, "(ii*~*)i"),
REG_NATIVE_FUNC(path_filestat_set_times, "(ii*~IIi)i"),
REG_NATIVE_FUNC(path_symlink, "(*~i*~)i"),
REG_NATIVE_FUNC(path_unlink_file, "(i*~)i"),
REG_NATIVE_FUNC(path_remove_directory, "(i*~)i"),
REG_NATIVE_FUNC(poll_oneoff, "(**i*)i"),
REG_NATIVE_FUNC(proc_exit, "(i)"),
REG_NATIVE_FUNC(proc_raise, "(i)i"),
REG_NATIVE_FUNC(random_get, "(*~)i"),
REG_NATIVE_FUNC(sock_accept, "(ii*)i"),
REG_NATIVE_FUNC(sock_addr_local, "(i*)i"),
REG_NATIVE_FUNC(sock_addr_remote, "(i*)i"),
REG_NATIVE_FUNC(sock_addr_resolve, "($$**i*)i"),
REG_NATIVE_FUNC(sock_bind, "(i*)i"),
REG_NATIVE_FUNC(sock_close, "(i)i"),
REG_NATIVE_FUNC(sock_connect, "(i*)i"),
REG_NATIVE_FUNC(sock_get_broadcast, "(i*)i"),
REG_NATIVE_FUNC(sock_get_keep_alive, "(i*)i"),
REG_NATIVE_FUNC(sock_get_linger, "(i**)i"),
REG_NATIVE_FUNC(sock_get_recv_buf_size, "(i*)i"),
REG_NATIVE_FUNC(sock_get_recv_timeout, "(i*)i"),
REG_NATIVE_FUNC(sock_get_reuse_addr, "(i*)i"),
REG_NATIVE_FUNC(sock_get_reuse_port, "(i*)i"),
REG_NATIVE_FUNC(sock_get_send_buf_size, "(i*)i"),
REG_NATIVE_FUNC(sock_get_send_timeout, "(i*)i"),
REG_NATIVE_FUNC(sock_get_tcp_fastopen_connect, "(i*)i"),
REG_NATIVE_FUNC(sock_get_tcp_keep_idle, "(i*)i"),
REG_NATIVE_FUNC(sock_get_tcp_keep_intvl, "(i*)i"),
REG_NATIVE_FUNC(sock_get_tcp_no_delay, "(i*)i"),
REG_NATIVE_FUNC(sock_get_tcp_quick_ack, "(i*)i"),
REG_NATIVE_FUNC(sock_get_ip_multicast_loop, "(ii*)i"),
REG_NATIVE_FUNC(sock_get_ip_multicast_ttl, "(i*)i"),
REG_NATIVE_FUNC(sock_get_ip_ttl, "(i*)i"),
REG_NATIVE_FUNC(sock_get_ipv6_only, "(i*)i"),
REG_NATIVE_FUNC(sock_listen, "(ii)i"),
REG_NATIVE_FUNC(sock_open, "(iii*)i"),
REG_NATIVE_FUNC(sock_recv, "(i*ii**)i"),
REG_NATIVE_FUNC(sock_recv_from, "(i*ii**)i"),
REG_NATIVE_FUNC(sock_send, "(i*ii*)i"),
REG_NATIVE_FUNC(sock_send_to, "(i*ii**)i"),
REG_NATIVE_FUNC(sock_set_broadcast, "(ii)i"),
REG_NATIVE_FUNC(sock_set_keep_alive, "(ii)i"),
REG_NATIVE_FUNC(sock_set_linger, "(iii)i"),
REG_NATIVE_FUNC(sock_set_recv_buf_size, "(ii)i"),
REG_NATIVE_FUNC(sock_set_recv_timeout, "(iI)i"),
REG_NATIVE_FUNC(sock_set_reuse_addr, "(ii)i"),
REG_NATIVE_FUNC(sock_set_reuse_port, "(ii)i"),
REG_NATIVE_FUNC(sock_set_send_buf_size, "(ii)i"),
REG_NATIVE_FUNC(sock_set_send_timeout, "(iI)i"),
REG_NATIVE_FUNC(sock_set_tcp_fastopen_connect, "(ii)i"),
REG_NATIVE_FUNC(sock_set_tcp_keep_idle, "(ii)i"),
REG_NATIVE_FUNC(sock_set_tcp_keep_intvl, "(ii)i"),
REG_NATIVE_FUNC(sock_set_tcp_no_delay, "(ii)i"),
REG_NATIVE_FUNC(sock_set_tcp_quick_ack, "(ii)i"),
REG_NATIVE_FUNC(sock_set_ip_multicast_loop, "(iii)i"),
REG_NATIVE_FUNC(sock_set_ip_multicast_ttl, "(ii)i"),
REG_NATIVE_FUNC(sock_set_ip_add_membership, "(i*i)i"),
REG_NATIVE_FUNC(sock_set_ip_drop_membership, "(i*i)i"),
REG_NATIVE_FUNC(sock_set_ip_ttl, "(ii)i"),
REG_NATIVE_FUNC(sock_set_ipv6_only, "(ii)i"),
REG_NATIVE_FUNC(sock_shutdown, "(ii)i"),
REG_NATIVE_FUNC(sched_yield, "()i"), |
Thanks,I got it. |
Why is it different from the link description of https://wamr.gitbook.io/document/basics/getting-started/on_host? |
Env: Ubuntu 20.04 X86_64
Build:
Run:
The text was updated successfully, but these errors were encountered: