Re: r344798: c++: error: linker command failed with exit code
On 5 Mar 2019, at 21:54, O. Hartmann wrote: > > Am Tue, 5 Mar 2019 13:16:26 -0500 > Shawn Webb schrieb: > > > 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: > > # > CPUTYPE?= native > # > #CFLAGS+=-O3 > # for the kernel > #COPTFLAGS+= -O3 > # > #CXXFLAGS+= -std=c++11 > # > WITH_CLANG_EXTRAS= YES > WITH_LLDB= YES > WITH_LLD_IS_LD= YES > # > WITH_IDEA= YES > # > #WITH_BSD_GREP= YES > # > WITH_OFED_EXTRA=YES > WITH_NAND= YES > #WITH_CTF= YES > # > WITH_SVN= YES > # > # Enable building openldap support for kerberos. > #WITH_OPENLDAP= YES > # > WITH_SORT_THREADS= YES > # > WITH_EXTRA_TCP_STACKS= YES > # > WITH_ZONEINFO_LEAPSECONDS_SUPPORT= YES > # > MALLOC_PRODUCTION= YES > # > WITHOUT_ASSERT_DEBUG= YES > # > WITHOUT_TESTS= YES > # > WITHOUT_DEBUG_FILES=YES > # > WITHOUT_REPRODUCIBLE_BUILD= YES > # > # mitigation for CVE-2017-5715 in the kernel build > #WITH_KERNEL_RETPOLINE= YES Your original error messages seemed to indicate that you were building with MK_LLVM_TARGET_BPF=yes (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 signature.asc Description: Message signed with OpenPGP
Re: r344798: c++: error: linker command failed with exit code
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am Tue, 5 Mar 2019 13:16:26 -0500 Shawn Webb schrieb: > 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: # CPUTYPE?= native # #CFLAGS+=-O3 # for the kernel #COPTFLAGS+= -O3 # #CXXFLAGS+= -std=c++11 # WITH_CLANG_EXTRAS= YES WITH_LLDB= YES WITH_LLD_IS_LD= YES # WITH_IDEA= YES # #WITH_BSD_GREP= YES # WITH_OFED_EXTRA=YES WITH_NAND= YES #WITH_CTF= YES # WITH_SVN= YES # # Enable building openldap support for kerberos. #WITH_OPENLDAP= YES # WITH_SORT_THREADS= YES # WITH_EXTRA_TCP_STACKS= YES # WITH_ZONEINFO_LEAPSECONDS_SUPPORT= YES # MALLOC_PRODUCTION= YES # WITHOUT_ASSERT_DEBUG= YES # WITHOUT_TESTS= YES # WITHOUT_DEBUG_FILES=YES # WITHOUT_REPRODUCIBLE_BUILD= YES # # mitigation for CVE-2017-5715 in the kernel build #WITH_KERNEL_RETPOLINE= YES - -- O. Hartmann Ich widerspreche der Nutzung oder Übermittlung meiner Daten für Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG). -BEGIN PGP SIGNATURE- iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCXH7iOQAKCRA4N1ZZPba5 R1ClAQD9BXhOGT4bpQcqLjRKr6x+UdlRIOvxTSb/cVx/ZuD0lwEAoMoemwjtCBKf 1emeXLYAWH4Ap4IppF0Q6lehf11BsAE= =vRWV -END PGP SIGNATURE- ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: r344798: c++: error: linker command failed with exit code
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:latt...@is.a.hacker.sx GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE signature.asc Description: PGP signature
Re: r344798: c++: error: linker command failed with exit code
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 r...@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@localhost:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY amd64 Peace, david -- David H. Wolfskill da...@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. signature.asc Description: PGP signature
r344798: c++: error: linker command failed with exit code
-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 - -- O. Hartmann Ich widerspreche der Nutzung oder Übermittlung meiner Daten für Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG). -BEGIN PGP SIGNATURE- iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCXH6nsgAKCRA4N1ZZPba5 R6s4AQDAoPWt0u6Sv7NsgZB078/3F9mCFKWZUTV19/sR+vK5CQD+MIVFZCm839jx k0DtPjrL0JQ1HkqcqLlm+pD8o/E3zQs= =gq9u -END PGP SIGNATURE- ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
FreeBSD CI Weekly Report 2019-03-03
(bcc -current and -stable for more audience) FreeBSD CI Weekly Report 2019-03-03 === Here is a summary of the FreeBSD Continuous Integration results for the period from 2019-02-25 to 2019-03-03. During this period, we have: * 2299 builds (98% passed, 2% failed) were executed on aarch64, amd64, armv6, armv7, i386, mips, mips64, powerpc, powerpc64, powerpcspe, riscv64, sparc64 architectures for head, stable/12, stable/11 branches. * 574 test runs (32.2% passed, 59.6% unstable, 8.2% exception) were executed on amd64, i386, riscv64 architectures for head, stable/12, stable/11 branches. * 9 doc buils (100% passed) If any of the issues found by CI are in your area of interest or expertise please investigate the PRs listed below. Web version of this report is available at https://hackmd.io/s/rytoa05LE and archive is available at http://hackfoldr.org/freebsd-ci-report/, any help is welcome. ## New & Fixed Tests * https://ci.freebsd.org/job/FreeBSD-head-amd64-test/ * sys.netpfil.pf.pass_block.nested_inline See https://bugs.freebsd.org/bugzilla/236223 for more detail. Fixed in https://svnweb.freebsd.org/changeset/base/344764 . ## Failing Tests * https://ci.freebsd.org/job/FreeBSD-head-amd64-test_zfs/ * There are ~60 failing cases, including flakey ones, see https://ci.freebsd.org/job/FreeBSD-head-amd64-test_zfs/lastCompletedBuild/testReport/ for more details * https://ci.freebsd.org/job/FreeBSD-head-amd64-dtrace_test/ * common.rates.t_dtrace_contrib.tst_switchrate_d * common.syscall.t_dtrace_contrib.tst_args_d * common.ip.t_dtrace_contrib.tst_ipv4localsctp_ksh * common.ip.t_dtrace_contrib.tst_localsctpstate_ksh * https://ci.freebsd.org/job/FreeBSD-head-i386-test/ * sys.netmap.ctrl-api-test.main * sys.opencrypto.runtests.main * lib.libc.regex.exhaust_test.regcomp_too_big * lib.libregex.exhaust_test.regcomp_too_big * sys.kern.coredump_phnum_test.coredump_phnum WIP: https://reviews.freebsd.org/D18495 * https://ci.freebsd.org/job/FreeBSD-stable-12-i386-test/ * sbin.bectl.bectl_test.bectl_mount * sys.netmap.ctrl-api-test.main * sys.opencrypto.runtests.main * lib.libc.regex.exhaust_test.regcomp_too_big * lib.libregex.exhaust_test.regcomp_too_big * sys.kern.coredump_phnum_test.coredump_phnum WIP: https://reviews.freebsd.org/D18495 * https://ci.freebsd.org/job/FreeBSD-stable-11-amd64-test/ * usr.bin.procstat.procstat_test.kernel_stacks * https://ci.freebsd.org/job/FreeBSD-stable-11-i386-test/ * sys.netmap.ctrl-api-test.main * sys.opencrypto.runtests.main * usr.bin.procstat.procstat_test.kernel_stacks * local.kyua.* (31 cases) * local.lutok.* (3 cases) ## Disabled Tests * lib.libc.sys.mmap_test.mmap_truncate_signal https://bugs.freebsd.org/211924 * sys.fs.tmpfs.mount_test.large https://bugs.freebsd.org/212862 * sys.fs.tmpfs.link_test.kqueue https://bugs.freebsd.org/213662 * sys.kqueue.libkqueue.kqueue_test.main https://bugs.freebsd.org/233586 * usr.bin.procstat.procstat_test.command_line_arguments https://bugs.freebsd.org/233587 * usr.bin.procstat.procstat_test.environment https://bugs.freebsd.org/233588 ## Open Issues ### Cause build fails * [29: genassym.o build race](https://bugs.freebsd.org/29) * Patch available: https://people.freebsd.org/~bdrewery/patches/PR29.diff * [233735: Possible build race: genoffset.o /usr/src/sys/sys/types.h: error: machine/endian.h: No such file or directory](https://bugs.freebsd.org/233735) * [233769: Possible build race: ld: error: unable to find library -lgcc_s](https://bugs.freebsd.org/233769) ### Others [Tickets related to testing@](https://preview.tinyurl.com/y9maauwg) ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"