Page MenuHomeFreeBSD

Fix cross installworld with MK_LLVM_BINUTILS_BOOTSTRAP=no
Needs ReviewPublic

Authored by arichardson on May 7 2026, 5:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 4, 6:09 AM
Unknown Object (File)
Sun, May 31, 10:56 AM
Unknown Object (File)
Sat, May 30, 1:27 PM
Unknown Object (File)
Wed, May 27, 1:05 PM
Unknown Object (File)
Wed, May 27, 8:49 AM
Unknown Object (File)
Sun, May 24, 7:37 PM
Unknown Object (File)
Sat, May 23, 3:13 AM
Unknown Object (File)
Mon, May 18, 6:52 AM
Subscribers

Details

Reviewers
emaste
jrtc27
Summary

If we did not build a bootstrap strip binary installworld will fail to
link strip to the temporary directory since WORLDTMP does not contain it.
We could link all the XBINUTILS to WORLDTMP so that this works, but since
we only need strip during installworld this approach seemed simpler.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 73465
Build 70348: arc lint + arc unit

Event Timeline

But won’t we have built elftoolchain strip in that case?

But won’t we have built elftoolchain strip in that case?

Seems like we didn't in my case, let me check if that is an explicit disable or the default. Or maybe we don't add the links anymore?

But won’t we have built elftoolchain strip in that case?

Seems like we didn't in my case, let me check if that is an explicit disable or the default. Or maybe we don't add the links anymore?

I get this error even with an explicit WITH_ELFTOOLCHAIN_BOOTSTRAP. Because I am also building with MK_LLVM_BINUTILS=no. So it sounds like either usr.bin/elfcopy needs another check for BOOTSTRAPPING, or we use this change (or possibly both fixes)? @emaste what do you think?

Fix elfcopy install condition

But won’t we have built elftoolchain strip in that case?

Seems like we didn't in my case, let me check if that is an explicit disable or the default. Or maybe we don't add the links anymore?

I get this error even with an explicit WITH_ELFTOOLCHAIN_BOOTSTRAP. Because I am also building with MK_LLVM_BINUTILS=no. So it sounds like either usr.bin/elfcopy needs another check for BOOTSTRAPPING, or we use this change (or possibly both fixes)? @emaste what do you think?

I don't see how sentence two implies sentence one. What is your exact config, between command-line arguments, environment variables, and /etc/{src,src-env,make}.conf?

usr.bin/elfcopy/Makefile
16

This bit makes sense to me, I'll have to try and reproduce that, should be easy with BUILD_WITH_STRICT_TMPPATH