-
Notifications
You must be signed in to change notification settings - Fork 77
Haiku
Version | Compilers | Status | Tests |
---|---|---|---|
R1.hrev58344 (x64) | GCC 13.3.0 | Compiled | Passed |
R1.hrev58344 (x64) | Clang 19.1.3 | Compiled | Passed |
Haiku is an open source operating system inspired by discontinued BeOS which targets personal computing. It is being developed as a binary compatible replacement for BeOS.
Haiku is available for download in several variants. You should choose between stable version (R1.B5) and nightly builds (possibly unstable and broken). The latest version is highly recommended as it has significant improvements over the stable release.
As Haiku claims binary compatibility with BeOS it is shipped in hybrid variant with both old GCC 2.95.3 and a newer versions of GCC (4 and above). By default the hybrid version uses old GCC but you can switch to a new one with setgcc x86 gcc4
command on older stable builds and setarch x86
on a nightly build. There are also non-hybrid variants including some other architectures, but they are claimed to be officially unsupported.
Haiku has a package system for application management. Older stable versions have a limited package management support mostly using a script or zipped archives. Development version has a great package management support using HaikuDepot GUI application or pkgman
command line tool, repositories provide a vast number of software, including modern versions of GCC, Clang, CMake.
Haiku can be run in QEMU, see an example command below:
qemu-system-x86_64 -m 2048 -M pc \
-drive media=cdrom,if=none \
-drive file=haiku.qcow2 \
-nic user,model=rtl8139,hostfwd=tcp::10022-:22
You should not have any problems compiling with GCC.
You may need to pass Clang include directory explicitly, i.e. with -DCMAKE_C_FLAGS="-I/boot/system/lib/x86/clang/5.0.0/include"
. On newer versions of Haiku, -fPIC
option maybe needed for CMAKE_C_FLAGS
and CMAKE_CXX_FLAGS
.