Skip to content
Alexander Saprykin edited this page Nov 21, 2024 · 16 revisions

Configurations

Version Compilers Status Tests
7.6 (x64) GCC 11.2.0 (x64) Compiled Passed
7.6 (x64) Clang 17.0.6 (x64) Compiled Passed

Installation

OpenBSD can be downloaded from the official page. After installation you should manually configure package repository. Read more about package management on OpenBSD. GCC and Clang are both distributed through the packages.

OpenBSD does not support multilib configuration so you cannot build and run x86 binaries on x64 machine.

QEMU

OpenBSD can be run in QEMU, see an example command below:

qemu-system-x86_64 -m 2048 -M pc -smp cpus=2,sockets=1,cores=2,threads=1 \
  -drive media=cdrom,if=none \
  -drive file=openbsd.qcow2 \
  -nic user,model=rtl8139,hostfwd=tcp::10022-:22

GCC

You should not have any problems compiling with GCC.

Clang

You should not have any problems compiling with Clang.

Clone this wiki locally