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

From: David Wolfskill <david_at_catwhisker.org>
Date: Tue, 5 Mar 2019 08:56:49 -0800
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.
> 
> Kind regards,
> 
> oh

As a data point, I had no issues with either my laptop or my build
machine going from:

FreeBSD localhost 13.0-CURRENT FreeBSD 13.0-CURRENT #280 r344756M/344756: Mon Mar  4 04:33:36 PST 2019     root_at_g1-49.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY  amd64

to

FreeBSD localhost 13.0-CURRENT FreeBSD 13.0-CURRENT #281 r344791M/344793: Tue Mar  5 05:39:24 PST 2019     root_at_localhost:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY  amd64

Peace,
david
-- 
David H. Wolfskill				david_at_catwhisker.org
"I think the President is violating our constitutional system." - Justin Amash

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Received on Tue Mar 05 2019 - 15:56:53 UTC

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