Re: What is the recommended setup for crossbuilding kernel+world?
Bakul Shah <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.hackers |
|---|---|
| Message-ID | <[email protected]> |
On Apr 8, 2026, at 4:08 PM, Warner Losh <[email protected]> wrote: > > > > 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. Thanks! I should've realized this! [Though this doesn't explain why files in /lib /usr/lib were overwritten.] I just did a chmod -R /usr/obj (& will probably create a separate user just for builds).