So many options! No one has to start from scratch!
There is Glendix, which is the Plan 9 userland and Linux kernel.
Plan 9 itself.
Inferno that Bell Labs based on Plan 9 for set top boxes.
Clive by Francisco Ballesteros which is based on Plan 9.
Nix, also by Francisco Ballesteros.
Octopus, another OS also from Francisco Ballesteros.
Plan B, yet another OS from Franciso Ballesteros.
9atom by Erik Quanstrom, based on Plan 9.
XINU by Douglas Comer.
9front, forked from Plan 9.
Minix by Andrew Tanenbaum.
Oberon, the operating system.
AOS/Bluebottle/A2 based on Oberon.
Jehanne based on Plan 9.
Harvey based on Plan 9.
Akaros based on Plan 9.
And the BSDs.
Bitrig was based on OpenBSD, but it didn't last long before maintaining it was dropped.
OpenIndiana based on OpenSolaris.
illumos was forked from OpenSolaris.
SmartOS which uses illumos.
In addition to the operating systems mentioned written in Pascal, of course.
Of course, those above would all have to be rewritten in Pascal since they are mostly written in C. Actually, I think Oberon and the AOS/Bluebottle/A2 are the only ones not written in C.
But importantly, none of them are fully fledged operating systems that can run the peripheral devices today. Minix hasn't been updated in something like three years, I believe after Tanenbaum retired. Akaros is another university project that I believe has stalled or ended. It takes a lot of effort to maintain an operating system.
As for the demise of Linux? Not going to happen. Too much relies on Linux now. And to create a new operating system and then get applications written for it is a decades long endeavor. OS X is only about 5% market share.