-
Notifications
You must be signed in to change notification settings - Fork 85
NetBSD
Alexander Saprykin edited this page Nov 21, 2024
·
13 revisions
Version | Compilers | Status | Tests |
---|---|---|---|
10.0 (x64) | GCC 6.5.0 (x64) | Compiled | Passed |
10.0 (x64) | GCC 7.5.0 (x64) | Compiled | Passed |
10.0 (x64) | GCC 13.3.0 (x64) | Compiled | Passed |
10.0 (x64) | Clang 18.1.8 (x86, x64) | Compiled | Passed |
NetBSD can be downloaded from the official page. After installation you can configure repository for pkksrc with binary and source based packages to get required software. Read more about package management on NetBSD. GCC and Clang are both distributed through the packages.
In some cases, it may take very long time to download binary packages due to IPv6. To fix it, add the following into /etc/rc.conf
:
ip6addrctl=YES
ip6addrctl_policy=ipv4_prefer
and restart the service with service ip6addrctl restart
.
NetBSD can be run in QEMU, see an example command below:
qemu-system-x86_64 -m 1024 -M q35 -smp cpus=1,sockets=1,cores=1,threads=1 \
-drive if=none,media=disk,id=hdd_main,file=netbsd.qcow2 \
-device ide-hd,bus=ide.1,drive=hdd_main,bootindex=1 \
-drive if=none,media=cdrom,id=cd_main,readonly=on \
-device ide-cd,bus=ide.0,drive=cd_main,bootindex=0 \
-nic user,model=e1000,hostfwd=tcp::10022-:22
You should not have any problems compiling with GCC.
You should not have any problems compiling with Clang.