Re: buildworld FAILURE:googletest

From: Simon J. Gerraty <sjg_at_juniper.net>
Date: Wed, 30 Oct 2024 20:42:41 UTC
Would need more context to comment.

Do you have filemon(4) loaded?

meta mode makes very little difference for a clean tree build,
it is only update builds where the .meta files become super useful.

Though they are always good for build failure triage - helps if you have
MK_META_ERROR_TARGET=yes then you would get the failing .meta file(s)
copied to ERROR_LOGDIR which defaults to ${SRCTOP:H}/error/

Lexi Winter <lexi@le-fay.org> wrote:
> i also just ran into this with meta mode + make buildworld-jobs, src
> ~22429a464a5f4f6bb5a056aae1353985db83b721.
> 
> ld: error: undefined symbol:
> testing::internal::MakeAndRegisterTestInfo(char const*, char const*,
> char const*, char const*, testing::internal::CodeLocation, void const*,
> void (*)(), void (*)(), testing::internal::TestFactoryBase*)
> >>> referenced by zfsd_unittest.cc:236
> (/data/build/src/freebsd/lf/main/cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc:236)
> >>>               zfsd_unittest.o:(_GLOBAL__sub_I_zfsd_unittest.cc)
> >>> referenced by zfsd_unittest.cc:242
> (/data/build/src/freebsd/lf/main/cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc:242)
> >>>               zfsd_unittest.o:(_GLOBAL__sub_I_zfsd_unittest.cc)
> >>> referenced by zfsd_unittest.cc:248
> (/data/build/src/freebsd/lf/main/cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc:248)
> >>>               zfsd_unittest.o:(_GLOBAL__sub_I_zfsd_unittest.cc)
> >>> referenced 19 more times
> 
> i've copied sjg@ in case this is a make issue.