Re: r344798: c++: error: linker command failed with exit code

From: Shawn Webb <shawn.webb_at_hardenedbsd.org>
Date: Tue, 5 Mar 2019 13:16:26 -0500
On Tue, Mar 05, 2019 at 05:45:11PM +0100, O. Hartmann wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> Hello,
> 
> recent buildworld on a CURRENT box (FreeBSD 13.0-CURRENT #246 r344742: Sun Mar  3 21:26:44 CET
> 2019 amd64) fails to build due to:
> 
> [...]
> 
> Building /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/usr.bin/clang/clang/clang
> - --- clang ---
> ld: error: undefined symbol: llvm::createBPFMIPreEmitCheckingPass()
> >>> referenced by BPFTargetMachine.cpp
> >>>               BPFTargetMachine.o:((anonymous namespace)::BPFPassConfig::addPreEmitPass())
> >>> in archive /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvm/libllvm.a
> ld: error: undefined symbol: llvm::BTFDebug::BTFDebug(llvm::AsmPrinter*)
> >>> referenced by BPFAsmPrinter.cpp
> >>>               BPFAsmPrinter.o:((anonymous
> >>> namespace)::BPFAsmPrinter::doInitialization(llvm::Module&)) in
> >>> archive /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvm/libllvm.a
> c++: error: linker command failed with exit code 1 (use -v to see invocation)
> *** [clang] Error code 1
> 
> make[4]: stopped in /usr/src/usr.bin/clang/clang
> [...]
> 
> I tried to rebuild world from a fresh /usr/src and /usr/obj but the host gets always stuck at
> the same error.

Do you have a custom src.conf and make.conf?

Thanks,

-- 
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

Tor-ified Signal:    +1 443-546-8752
Tor+XMPP+OTR:        lattera_at_is.a.hacker.sx
GPG Key ID:          0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE

Received on Tue Mar 05 2019 - 17:17:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:20 UTC