Re: Odd stoppage in buildworld

bob prohaska <[email protected]> Mon, 6 Jul 2026 10:08:13 -0700
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
On Sun, Jul 05, 2026 at 07:03:03PM -0700, Mark Millard wrote:
> On 7/5/26 17:32, bob prohaska wrote:
> > A Pi2 (armv7) is stopping meta-mode buildworld in -current, reporting
> > 
> > ...
> > Building /usr/obj/usr/src/arm.armv7/tmp/obj-tools/lib/clang/libllvm/libllvm.a
> 
> arm.armv7/tmp/obj-tools/lib/clang/libllvm/ indicates that it was
> building the bootstrap toolchain.
> 
> arm.armv7/lib/clang/libllvm/ is where it would be for the normal
> toolchain build building.
> 
> Is this build the one that switches from llvm19 to llvm21 based?
> 
> > Building static llvm library
> 
> As I understand, the defaults are now:
> 
> ) the bootstrap toolchain is built statically linked
> 
> ) the normal toolchain is built dynamically linked.
> 
> (I override that last for my contexts.)
> 
> > ar: error: libllvm.a: 'InstrProfWriter.o': section header table goes past the end of the file: e_shoff = 0xc6c24
> > *** [libllvm.a] Error code 1
> 
> It would be good to see the ar command that produced that message. At
> this point there is some guess work in expecting that it was generating
> libllvm.a instead of using it.
> 
> The related paths may not be obvious :
> 
> tmp/obj-tools/lib/clang/libllvm/ProfileData_InstrProfWriter.o.meta
> tmp/obj-tools/lib/clang/libllvm/ProfileData/InstrProfWriter.o
> 
> Note the _ vs. / before InstrProfWriter.o* .
> 

I didn't catch that. Find / locates only a single file: 

-rw-r--r--  1 root wheel 393216 Jul  4 10:27 /usr/obj/usr/src/arm.armv7/tmp/obj-tools/lib/clang/libllvm/ProfileData/InstrProfWriter.o


> Have the two *InstrProfWriter.o* been regenerated (new modification
> date)? What about the pair of files (no ProfileData directory involved):
> 
> tmp/obj-tools/lib/clang/libllvm/libllvm.a
> tmp/obj-tools/lib/clang/libllvm/libllvm.a.meta

After the latest buildworld attempt (following the various clean make clean
options) a find / -name libllvm discovers no files by that name.

> 
> Does tmp/obj-tools/lib/clang/libllvm/libllvm.a contain a copy of
> InstrProfWriter.o ?

Seemingly yes, but only under ...ProfileData/

As an aside, I tried running make kernel-toolchain, it too failed
promptly with the same error. 

Thanks for writing!

bob prohaska