From owner-freebsd-current@freebsd.org Tue Mar 5 22:08:43 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DC384151836C for ; Tue, 5 Mar 2019 22:08:42 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1DB048B302 for ; Tue, 5 Mar 2019 22:08:42 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::cd42:157b:c24f:6b] (unknown [IPv6:2001:470:7a58:0:cd42:157b:c24f:6b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 9C22E46950; Tue, 5 Mar 2019 23:08:33 +0100 (CET) From: Dimitry Andric Message-Id: <7E4F2D04-1E91-46DA-9CE5-912FB17C1C24@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_BFE8FC24-5550-4302-87BC-414E5137CDDE"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: r344798: c++: error: linker command failed with exit code Date: Tue, 5 Mar 2019 23:08:32 +0100 In-Reply-To: <20190305215211.2d15aa54@thor.intern.walstatt.dynvpn.de> Cc: Shawn Webb , FreeBSD CURRENT To: "O. Hartmann" References: <20190305174538.5fa6670f@thor.intern.walstatt.dynvpn.de> <20190305181626.5pjq3agu5lrw76vo@mutt-hbsd> <20190305215211.2d15aa54@thor.intern.walstatt.dynvpn.de> X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: 1DB048B302 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.989,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:12859, ipnet:87.251.32.0/19, country:NL] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Mar 2019 22:08:43 -0000 --Apple-Mail=_BFE8FC24-5550-4302-87BC-414E5137CDDE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 5 Mar 2019, at 21:54, O. Hartmann wrote: >=20 > Am Tue, 5 Mar 2019 13:16:26 -0500 > Shawn Webb schrieb: >=20 > > 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, > > > src.conf, yes, make.conf, yes, but make.conf references only ports = tree stuff so far. src.conf: >=20 > # > CPUTYPE?=3D native > # > #CFLAGS+=3D -O3 > # for the kernel > #COPTFLAGS+=3D -O3 > # > #CXXFLAGS+=3D -std=3Dc++11 > # > WITH_CLANG_EXTRAS=3D YES > WITH_LLDB=3D YES > WITH_LLD_IS_LD=3D YES > # > WITH_IDEA=3D YES > # > #WITH_BSD_GREP=3D YES > # > WITH_OFED_EXTRA=3D YES > WITH_NAND=3D YES > #WITH_CTF=3D YES > # > WITH_SVN=3D YES > # > # Enable building openldap support for kerberos. > #WITH_OPENLDAP=3D YES > # > WITH_SORT_THREADS=3D YES > # > WITH_EXTRA_TCP_STACKS=3D YES > # > WITH_ZONEINFO_LEAPSECONDS_SUPPORT=3D YES > # > MALLOC_PRODUCTION=3D YES > # > WITHOUT_ASSERT_DEBUG=3D YES > # > WITHOUT_TESTS=3D YES > # > WITHOUT_DEBUG_FILES=3D YES > # > WITHOUT_REPRODUCIBLE_BUILD=3D YES > # > # mitigation for CVE-2017-5715 in the kernel build > #WITH_KERNEL_RETPOLINE=3D YES Your original error messages seemed to indicate that you were building with MK_LLVM_TARGET_BPF=3Dyes (which is not enabled by default). I = don't see it in your src.conf, but maybe you enabled it in some other way? In any case, I have committed a fix in r344825. -Dimitry --Apple-Mail=_BFE8FC24-5550-4302-87BC-414E5137CDDE Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXH7zYAAKCRCwXqMKLiCW o6qfAKDQG3tafmtPJF6l242Zw3xLh9ziwwCg5AKn9WMa4tK6v91SAYsMAwNd9H4= =PWM2 -----END PGP SIGNATURE----- --Apple-Mail=_BFE8FC24-5550-4302-87BC-414E5137CDDE--