Wanting to build 16-CURRENT

I've cloned my original Virtual-machine onto which I'd like to install FreeBSD 16-CURRENT on however, I can't seem to get a how-to that explains to me how to do-so.

Could one of the more experienced users explain the steps that one needs to take? At this point I'm willing to try anything.
 
You should probably try to build a -STABLE version first. Get some experience.

 
Oh, with regards to building from source (which is what you're going to need to do);

And also build(7), src.conf(5) and make.conf(5).

Yes, yes, I know, pkgbase exist. But I believe it's good practice learning to actually build FreeBSD from source.
 
i you are interested this is my compile script,
Code:
cd /usr/src
git branch
git pull
make clean
make cleankernel
make cleanworld
make buildkernel  KERNCONF=MYKERNCONF -j 9
echo "DONE-KERNEL--------------------"
make buildworld  KERNCONF=MYKERNCONF -j 9
echo "DONE-WORLD---------------------"
make installkernel  KERNCONF=MYKERNCONF
etcupdate -p
make installworld  KERNCONF=MYKERNCONF
etcupdate -B
make -DBATCH_DELETE_OLD_FILES delete-old
make -DBATCH_DELETE_OLD_FILES delete-old-libs
 
Yes, yes, I know, pkgbase exist. But I believe it's good practice learning to actually build FreeBSD from source.
you can build from source and still use pkgbase, you just build your own package repository instead of using make installworld.
i you are interested this is my compile script,
you should reboot after running installkernel and before running installworld. this is particularly important when running main since ABI changes can break the system if you try to run the new world on an older kernel.

also, you should rebuild ports before running delete-old-libs, otherwise it might delete libraries that are still in use.
 
i you are interested this is my compile script,
...
make buildkernel KERNCONF=MYKERNCONF -j 9 echo "DONE-KERNEL--------------------"
make buildworld KERNCONF=MYKERNCONF -j 9 echo "DONE-WORLD---------------------"
...
"buildword" must be build first, then "buildkernel", to assure the toolchain to build the kernel matches the updated source tree. Otherwise it ends up using the running system toolchain.

See https://forums.freebsd.org/threads/...e-clang-version-13-0-0-for-13-1-upgrade.85393

Although I looked in the handbook, I didn't notice kernel is build after world.
The reason for that is: the toolchain (including the compiler) is part of the userland, therefore "world". It's also needed to build the kernel.

Alternatively, to build a kernel alone without "buildworld", use the kernel-toolchain target ( build(7) ).
 
Back
Top