“mkdir: /usr/obj/usr/src/sbin/ipf/ipf: File exists”

While trying to make buildworld in a FreeBSD upgrade, I came across the following error:

mkdir: /usr/obj/usr/src/sbin/ipf/ipf: File exists

To rectify this, simply:

  1. cd /usr/src/
  2. make cleanworld

Then issue a make buildworld and all should run smoothly.