make buildworld cd: can’t cd to /usr/src/tools/build/make_check Error and Solution

‘m trying buildworld under FreeBSD operating system. But I’m getting an error which read as follows:

ADVERTISEMENTS

————————————————————–
>>> Building an up-to-date make(1)
————————————————————–
cd: can’t cd to /usr/src/usr.bin/make
*** Error code 2

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

How do I fix this problem?

You need upto date FreeBSD source tree. Type the following command to fetch FreeBSD src tree:
# cp /usr/share/examples/cvsup/standard-supfile /root/standard-supfile
# vi /root/standard-supfile

Set default host as follows:
*default host=cvsup4.us.FreeBSD.org
Save and close the file. Now get source code, enter:
# cvsup /root/standard-supfile
To build system use regular commands:
# make clean && make buildworld
# make buildkernel KERNCONF=kernelname
# make installkernel KERNCONF=kernelname

See how-to: Update The FreeBSD From Previous Releases Using Source Code (CVSUP method) for details about building world and install a new kernel under FreeBSD operating system.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
1 comment… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.