Re: What is the recommended setup for crossbuilding kernel+world?

Warner Losh <[email protected]>
Newsgroups gmane.os.freebsd.devel.hackers
Message-ID <CANCZdfquSh6c+kEC-=qnceydgG5Jy0eLzFyFVi4kSY0f5KpVgw@mail.gmail.com>
On Wed, Apr 8, 2026, 5:00 PM Bakul Shah <[email protected]> wrote:

> Recently crossbuilding -current arm64 world on an 15-stable
> amd64 machine took out host's /lib/libsys.so.7 which broke
> most everything! I tried rebuilding after removing its
> /usr/obj/.../current/arm64.aarch64/ tree and that replaced
> many .o files in /usr/lib! Rather than fixup my old setup,
> I'd like to know what is recommended.
>
> Is it possible to build as a normal user (so that build can't
> mistakenly blow away host's system files)?
>

I do this all the time. I set MAKEOBJDIRPREFIX to ~/obj.

Warner

Thanks!
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.