Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Oct 2024 01:01:13 -0500
From:      Larry Rosenman <ler@lerctr.org>
To:        Freebsd current <freebsd-current@freebsd.org>
Subject:   Re: buildworld FAILURE:googletest
Message-ID:  <8fc6573e8789a983517eb024949ec555@lerctr.org>
In-Reply-To: <3defd95fd3c26a76cb5adf68977e30e1@lerctr.org>
References:  <3defd95fd3c26a76cb5adf68977e30e1@lerctr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
on a clean /usr/obj it works.  The below was metamode.



On 10/28/2024 11:20 pm, Larry Rosenman wrote:
> Building 
> /usr/obj/usr/src/amd64.amd64/secure/lib/libcrypto/RSA_sign.3.gz
> 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 sample1_unittest.cc:76 
>>>> (/usr/src/contrib/googletest/googletest/samples/sample1_unittest.cc:76)
>>>>               
>>>> sample1_unittest.o:(_GLOBAL__sub_I_sample1_unittest.cc)
>>>> referenced by sample1_unittest.cc:100 
>>>> (/usr/src/contrib/googletest/googletest/samples/sample1_unittest.cc:100)
>>>>               
>>>> sample1_unittest.o:(_GLOBAL__sub_I_sample1_unittest.cc)
>>>> referenced by sample1_unittest.cc:103 
>>>> (/usr/src/contrib/googletest/googletest/samples/sample1_unittest.cc:103)
>>>>               
>>>> sample1_unittest.o:(_GLOBAL__sub_I_sample1_unittest.cc)
>>>> referenced 3 more times
> Building /usr/obj/usr/src/amd64.amd64/lib/libelf/gelf_newehdr.3.gz
> Building 
> /usr/obj/usr/src/amd64.amd64/secure/lib/libcrypto/RSA_sign_ASN1_OCTET_STRING.3.gz
> Building /usr/obj/usr/src/amd64.amd64/lib/libelf/gelf_newphdr.3.gz
> Building 
> /usr/obj/usr/src/amd64.amd64/secure/lib/libcrypto/RSA_size.3.gz
> c++: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> Building /usr/obj/usr/src/amd64.amd64/kerberos5/libexec/hprop/hprop.o
> Building /usr/obj/usr/src/amd64.amd64/lib/libelf/gelf_update_ehdr.3.gz
> Building /usr/obj/usr/src/amd64.amd64/secure/lib/libcrypto/SCT_new.3.gz
> *** [sample1_unittest.full] Error code 1
> 
> make[8]: stopped making "all" in 
> /usr/src/share/examples/tests/tests/googletest
> .ERROR_TARGET='sample1_unittest.full'
> .ERROR_META_FILE='/usr/obj/usr/src/amd64.amd64/share/examples/tests/tests/googletest/sample1_unittest.full.meta'
> .MAKE.LEVEL='8'
> MAKEFILE=''
> .MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes 
> verbose'
> _ERROR_CMD='c++ -target x86_64-unknown-freebsd15.0 
> --sysroot=/usr/obj/usr/src/amd64.amd64/tmp 
> -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -fno-common -fPIE 
> -g -gz=zlib -Wno-format-zero-length -fstack-protector-strong 
> -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter 
> -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch 
> -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wdate-time 
> -Wmissing-variable-declarations -Wno-empty-body -Wno-string-plus-int 
> -Wno-unused-const-variable -Wno-error=unused-but-set-parameter 
> -Wno-error=cast-function-type-mismatch -Qunused-arguments 
> -I/usr/obj/usr/src/amd64.amd64/tmp/usr/include/private 
> -DGTEST_HAS_POSIX_RE=1 -DGTEST_HAS_PTHREAD=1 
> -DGTEST_HAS_STREAM_REDIRECTION=1 -frtti -fPIE -std=c++14 
> -Wno-c++11-extensions  -Wl,-zrelro -pie   -o sample1_unittest.full  
> sample1_unittest.o sample1.o -lprivategtest_main -lprivategtest;'
> .CURDIR='/usr/src/share/examples/tests/tests/googletest'
> .MAKE='make'
> .OBJDIR='/usr/obj/usr/src/amd64.amd64/share/examples/tests/tests/googletest'
> .TARGETS=' all'
> CPUTYPE=''
> DESTDIR='/usr/obj/usr/src/amd64.amd64/tmp'
> LD_LIBRARY_PATH=''
> MACHINE='amd64'
> MACHINE_ARCH='amd64'
> MACHINE_CPUARCH='amd64'
> MAKEOBJDIRPREFIX=''
> MAKESYSPATH='/usr/src/share/mk'
> MAKE_VERSION='20240711'
> PATH='/usr/obj/usr/src/amd64.amd64/tmp/bin:/usr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin'
> SRCTOP='/usr/src'
> OBJTOP='/usr/obj/usr/src/amd64.amd64'
> .MAKE.MAKEFILES='/usr/src/share/mk/sys.mk 
> /usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk 
> /etc/src-env.conf /usr/src/share/mk/bsd.mkopt.mk 
> /usr/src/share/mk/src.sys.obj.mk /usr/src/share/mk/local.sys.machine.mk 
> /usr/src/share/mk/meta.sys.mk /usr/src/share/mk/local.meta.sys.env.mk 
> /usr/src/share/mk/auto.obj.mk /usr/src/share/mk/bsd.suffixes.mk 
> /etc/make.conf /usr/src/share/mk/local.sys.mk 
> /usr/src/share/mk/src.sys.mk /etc/src.conf 
> /usr/src/share/examples/tests/tests/googletest/Makefile 
> /usr/src/share/mk/bsd.test.mk /usr/src/share/mk/bsd.init.mk 
> /usr/src/share/mk/bsd.opts.mk /usr/src/share/mk/bsd.cpu.mk 
> /usr/src/share/mk/local.init.mk /usr/src/share/mk/src.init.mk 
> /usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.compiler.mk 
> /usr/src/share/mk/bsd.endian.mk /usr/src/share/mk/bsd.linker.mk 
> /usr/src/share/mk/googletest.test.mk 
> /usr/src/share/mk/googletest.test.inc.mk 
> /usr/src/share/mk/plain.test.mk /usr/src/share/mk/tap.test.mk 
> /usr/src/share/mk/atf.test.mk /usr/src/share/mk/suite.test.mk 
> /usr/src/share/mk/bsd.progs.mk /usr/src/share/mk/bsd.prog.mk 
> /usr/src/share/mk/bsd.sanitizer.mk /usr/src/share/mk/bsd.libnames.mk 
> /usr/src/share/mk/src.libnames.mk /usr/src/share/mk/src.opts.mk 
> /usr/src/share/mk/bsd.nls.mk /usr/src/share/mk/bsd.confs.mk 
> /usr/src/share/mk/bsd.files.mk /usr/src/share/mk/bsd.dirs.mk 
> /usr/src/share/mk/bsd.incs.mk /usr/src/share/mk/bsd.links.mk 
> /usr/src/share/mk/bsd.man.mk /usr/src/share/mk/bsd.dep.mk 
> /usr/src/share/mk/bsd.clang-analyze.mk /usr/src/share/mk/bsd.obj.mk 
> /usr/src/share/mk/bsd.subdir.mk /usr/src/share/mk/bsd.sys.mk /dev/null'
> .PATH='. /usr/src/share/examples/tests/tests/googletest 
> /usr/src/contrib/googletest/googletest/samples'
> make[8]: 1 error
>         2.01 real         0.30 user         0.07 sys
> 
> make[1]: stopped making "buildworld" in /usr/src
> 
> make: stopped making "buildworld buildkernel" in /usr/src

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler@lerctr.org
US Mail: 13425 Ranch Road 620 N, Apt 718, Austin, TX 78717-1010



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8fc6573e8789a983517eb024949ec555>