BSD Ports

devel/wasi-libc 34 FreeBSD

C standard library for WebAssembly System Interface

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
f1b14f0a2e
License
APACHE20, MIT, LLVM2
Categories
devel
Package size
451.1 KiB, 1493.9 KiB installed

Description

libc/sysroot for WASI (WebAssembly System Interface)

WASI Libc is a libc for WebAssembly programs built on top of WASI system calls. It provides a wide array of POSIX-compatible C APIs, including support for standard I/O, file I/O, filesystem manipulation, memory management, time, string, environment variables, program startup, and many other APIs.

In the other systems

SystemPortVersion
FreeBSDdevel/wasi-libc34
DragonFlydevel/wasi-libc25.14
MidnightBSDdevel/wasi-libc32

Install

Binary package:

pkg install wasi-libc17

From the ports tree:

cd /usr/ports/devel/wasi-libc/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	wasi-libc17>0:devel/wasi-libc

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest3434-25.1434
FreeBSD:14:quarterly3434n/a25.1434
FreeBSD:15:latest3434n/a25.1427
FreeBSD:15:quarterly3434n/an/an/a
FreeBSD:16:latest3434n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

Build dependencies 20

Configuration

No options to configure.

USES
cmake llvm:${FLAVORS:[1]}
Service scripts
none
Conflicts with
wasi-libc[0-9]*
Flavors
wasi-libc18-34, wasi-libc19-34, wasi-libc20-34, wasi-libc21-34, wasi-libc22-34, wasi-libc23-34

Files

pkg-plist 224
  • share/wasi-sysroot/include/%%TRIPLE%%/__errno_values.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__fd_set.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__function___isatty.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__functions_malloc.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__functions_memcpy.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__header_dirent.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__header_fcntl.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__header_inttypes.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__header_netinet_in.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__header_poll.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__header_stdlib.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__header_string.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__header_sys_ioctl.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__header_sys_resource.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__header_sys_socket.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__header_sys_stat.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__header_time.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__header_unistd.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__macro_FD_SETSIZE.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__macro_PAGESIZE.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__mode_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__seek.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_dirent.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_in6_addr.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_in_addr.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_iovec.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_msghdr.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_pollfd.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_rusage.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_sockaddr.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_sockaddr_in.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_sockaddr_in6.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_sockaddr_storage.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_sockaddr_un.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_stat.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_timespec.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_timeval.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_tm.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__struct_tms.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_DIR.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_blkcnt_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_blksize_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_clock_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_clockid_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_dev_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_fd_set.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_gid_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_in_addr_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_in_port_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_ino_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_mode_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_nfds_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_nlink_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_off_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_sa_family_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_sigset_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_socklen_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_ssize_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_suseconds_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_time_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/__typedef_uid_t.h
  • share/wasi-sysroot/include/%%TRIPLE%%/alloca.h
  • share/wasi-sysroot/include/%%TRIPLE%%/ar.h
  • share/wasi-sysroot/include/%%TRIPLE%%/arpa/ftp.h
  • share/wasi-sysroot/include/%%TRIPLE%%/arpa/inet.h
  • share/wasi-sysroot/include/%%TRIPLE%%/arpa/nameser.h
  • share/wasi-sysroot/include/%%TRIPLE%%/arpa/nameser_compat.h
  • share/wasi-sysroot/include/%%TRIPLE%%/arpa/telnet.h
  • share/wasi-sysroot/include/%%TRIPLE%%/arpa/tftp.h
  • share/wasi-sysroot/include/%%TRIPLE%%/assert.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/alltypes.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/dirent.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/fcntl.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/fenv.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/float.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/hwcap.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/io.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/ioctl.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/ioctl_fix.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/ipcstat.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/limits.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/mman.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/poll.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/posix.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/reg.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/resource.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/setjmp.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/signal.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/socket.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/stat.h
  • share/wasi-sysroot/include/%%TRIPLE%%/bits/stdint.h
  • share/wasi-sysroot/include/%%TRIPLE%%/byteswap.h
  • share/wasi-sysroot/include/%%TRIPLE%%/complex.h
  • share/wasi-sysroot/include/%%TRIPLE%%/cpio.h
  • share/wasi-sysroot/include/%%TRIPLE%%/crypt.h
  • share/wasi-sysroot/include/%%TRIPLE%%/ctype.h
  • share/wasi-sysroot/include/%%TRIPLE%%/dirent.h
  • share/wasi-sysroot/include/%%TRIPLE%%/dlfcn.h
  • share/wasi-sysroot/include/%%TRIPLE%%/endian.h
  • share/wasi-sysroot/include/%%TRIPLE%%/err.h

The first 100 are listed.

distinfo 2
FileSizeSHA256
WebAssembly-wasi-libc-wasi-sdk-34_GH0.tar.gz2.675372e+0621bc47f96cf0eb535e532697dce4cdfdbc91f59223bdc00d8495d191888c5fe8
WebAssembly-WASI-59cbe14_GH0.tar.gz1620594e36c4add2421b44ccdded83d442d9aadf02ffa8b534d94016fad2bb7b781cc6

Commit history 2

DateCommitCreditsLog message
f1b14f0a2e Charlie Li devel/wasi-libc: add LLVM 23 flavour
126e6a3e5b Charlie Li devel/wasi-libc: update to sdk-34
Changes: https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-34 https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-33 - sync CMAKE_ARGS from wasi-sdk - consolidate wasi-libc's plists, they have been identical after cmake transition - bump all existing WASI toolchain ports Consumer PORTREVISIONs to be bumped