You are not logged in.

#1 2020-11-07 04:56:01

Toad39
Member
Registered: 2020-07-06
Posts: 60

Compiling BSD on ArchLinux

Hello,

I am trying to compile BSD on ArchLinux for  learning. I chose [original] BSD because it's more simpler and therefore easier to learn about than modern operating systems, such as FreeBSD. I have tried using GNU make, but that returns a missing separator error. When trying to use bmake, I get a lot of "missing bsd.*.mk" errors. Therefore, I installed the ones in share/mk. Now, trying to compile, I get a spew of errors that keeps going to the next one. Knowing that won't work, I tried to step through the Makefile manually:

#	@(#)Makefile	8.1 (Berkeley) 06/19/93

SUBDIR=	bin contrib games include kerberosIV lib libexec old sbin \
	share usr.bin usr.sbin

afterinstall:
	(cd share/man && make makedb)

build:
	(cd include && make install)
	make cleandir
	(cd lib && make depend && make && make install)
	(cd kerberosIV && make depend  && make && make install)
	make depend && make && make install
	
.include <bsd.subdir.mk>

Going into "include" and running doesn't do anything helpful either:

% bmake install PREFIX=~/fb/usr DESTDIR=~/fb
symlinks: net netccitt netinet netiso netns nfs sys ufs vm
chown: cannot dereference '/home/user/fb/usr/include/net': No such file or directory
chown: cannot dereference '/home/user/fb/usr/include/netccitt': No such file or directory
chown: cannot dereference '/home/user/fb/usr/include/netinet': No such file or directory
chown: cannot dereference '/home/user/fb/usr/include/netiso': No such file or directory
chown: cannot dereference '/home/user/fb/usr/include/netns': No such file or directory
chown: cannot dereference '/home/user/fb/usr/include/nfs': No such file or directory
chown: cannot dereference '/home/user/fb/usr/include/sys': No such file or directory
chown: cannot dereference '/home/user/fb/usr/include/ufs': No such file or directory
chown: cannot dereference '/home/user/fb/usr/include/vm': No such file or directory
*** Error code 1

Stop.
bmake: stopped in /home/user/Build/original-bsd/include

Does anyone know if this is possible, and if so, what's going wrong?

Thank you for your time.

Offline

#2 2020-11-08 04:01:11

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Compiling BSD on ArchLinux

https://wiki.freebsd.org/BuildingOnNonFreeBSD

bmake is definitely the right path, but did you use their bootstrap script to ensure needed variables were set?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2020-11-08 04:39:19

Toad39
Member
Registered: 2020-07-06
Posts: 60

Re: Compiling BSD on ArchLinux

@eschwartz, Sorry, I don't think you understand me correctly. I am trying to compile the original BSD (https://github.com/weiss/original-bsd).

Offline

#4 2020-11-08 16:37:55

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Compiling BSD on ArchLinux

Oh hmm... does it even contain docs on how to build it? How do you know this is possible?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2020-11-08 16:52:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,516
Website

Re: Compiling BSD on ArchLinux

It's 25+ year old code.  I highly doubt you'll have much luck building that on a modern system.  If you just want to tinker with a simpler unix-like OS, you should check out Minix which is still (relatively) actively developed.

"relatively" in that it *is* actively developed and kept current, but I think the development team is extremely small compared to linux or most of the bsds.

Last edited by Trilby (2020-11-08 16:53:49)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2020-11-08 22:58:26

Toad39
Member
Registered: 2020-07-06
Posts: 60

Re: Compiling BSD on ArchLinux

Okay, thanks. I'll try compiling someting else. I have an issue with that, so I'll open a new thread.

Offline

Board footer

Powered by FluxBB